Roll src/third_party/WebKit a3b4a2e:7441784 (svn 202551:202552)
[chromium-blink-merge.git] / chromecast / android / cast_jni_registrar.cc
blob32c700590b575569216d7e510d2864a795b7c251
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/android/dumpstate_writer.h"
12 #include "chromecast/base/android/system_time_change_notifier_android.h"
13 #include "chromecast/base/cast_sys_info_android.h"
14 #include "chromecast/base/chromecast_config_android.h"
15 #include "chromecast/browser/android/cast_window_android.h"
16 #include "chromecast/browser/android/cast_window_manager.h"
17 #include "components/external_video_surface/component_jni_registrar.h"
19 namespace chromecast {
20 namespace android {
22 namespace {
24 static base::android::RegistrationMethod kMethods[] = {
25 { "CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni },
26 { "CastSysInfoAndroid", CastSysInfoAndroid::RegisterJni },
27 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni },
28 { "CastWindowManager", shell::RegisterCastWindowManager },
29 { "ChromecastConfigAndroid", ChromecastConfigAndroid::RegisterJni },
30 { "CrashHandler", CrashHandler::RegisterCastCrashJni },
31 { "DumpstateWriter", DumpstateWriter::RegisterJni },
32 { "ExternalVideoSurfaceContainer",
33 external_video_surface::RegisterExternalVideoSurfaceJni },
34 { "SystemTimeChangeNotifierAndroid",
35 SystemTimeChangeNotifierAndroid::RegisterJni },
38 } // namespace
40 bool RegisterJni(JNIEnv* env) {
41 return RegisterNativeMethods(env, kMethods, arraysize(kMethods));
44 } // namespace android
45 } // namespace chromecast