Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chromecast / android / cast_jni_registrar.cc
blob6fb7515161495f353a016d198912d89db7d88ddf
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chromecast/android/cast_jni_registrar.h"
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h"
9 #include "chromecast/android/cast_metrics_helper_android.h"
10 #include "chromecast/app/android/crash_handler.h"
11 #include "chromecast/base/cast_sys_info_android.h"
12 #include "chromecast/base/chromecast_config_android.h"
13 #include "chromecast/browser/android/cast_window_android.h"
14 #include "chromecast/browser/android/cast_window_manager.h"
15 #include "components/external_video_surface/component_jni_registrar.h"
17 namespace chromecast {
18 namespace android {
20 namespace {
22 static base::android::RegistrationMethod kMethods[] = {
23 { "CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni },
24 { "CastSysInfoAndroid", CastSysInfoAndroid::RegisterJni },
25 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni },
26 { "CastWindowManager", shell::RegisterCastWindowManager },
27 { "ChromecastConfigAndroid", ChromecastConfigAndroid::RegisterJni },
28 { "CrashHandler", CrashHandler::RegisterCastCrashJni },
29 { "ExternalVideoSurfaceContainer",
30 external_video_surface::RegisterExternalVideoSurfaceJni },
33 } // namespace
35 bool RegisterJni(JNIEnv* env) {
36 return RegisterNativeMethods(env, kMethods, arraysize(kMethods));
39 } // namespace android
40 } // namespace chromecast