| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chromecast/android/cast_jni_registrar.h" | 5 #include "chromecast/android/cast_jni_registrar.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_registrar.h" | 8 #include "base/android/jni_registrar.h" |
| 9 #include "chromecast/android/cast_metrics_helper_android.h" | 9 #include "chromecast/android/cast_metrics_helper_android.h" |
| 10 #include "chromecast/base/cast_sys_info_android.h" |
| 10 #include "chromecast/browser/android/cast_window_android.h" | 11 #include "chromecast/browser/android/cast_window_android.h" |
| 11 #include "chromecast/browser/android/cast_window_manager.h" | 12 #include "chromecast/browser/android/cast_window_manager.h" |
| 12 #include "chromecast/crash/android/crash_handler.h" | 13 #include "chromecast/crash/android/crash_handler.h" |
| 13 #include "components/external_video_surface/component_jni_registrar.h" | 14 #include "components/external_video_surface/component_jni_registrar.h" |
| 14 | 15 |
| 15 namespace chromecast { | 16 namespace chromecast { |
| 16 namespace android { | 17 namespace android { |
| 17 | 18 |
| 18 namespace { | 19 namespace { |
| 19 | 20 |
| 20 static base::android::RegistrationMethod kMethods[] = { | 21 static base::android::RegistrationMethod kMethods[] = { |
| 21 { "CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni }, | 22 { "CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni }, |
| 23 { "CastSysInfoAndroid", CastSysInfoAndroid::RegisterJni }, |
| 22 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni }, | 24 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni }, |
| 23 { "CastWindowManager", shell::RegisterCastWindowManager }, | 25 { "CastWindowManager", shell::RegisterCastWindowManager }, |
| 24 { "CrashHandler", CrashHandler::RegisterCastCrashJni }, | 26 { "CrashHandler", CrashHandler::RegisterCastCrashJni }, |
| 25 { "ExternalVideoSurfaceContainer", | 27 { "ExternalVideoSurfaceContainer", |
| 26 external_video_surface::RegisterExternalVideoSurfaceJni }, | 28 external_video_surface::RegisterExternalVideoSurfaceJni }, |
| 27 }; | 29 }; |
| 28 | 30 |
| 29 } // namespace | 31 } // namespace |
| 30 | 32 |
| 31 bool RegisterJni(JNIEnv* env) { | 33 bool RegisterJni(JNIEnv* env) { |
| 32 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); | 34 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); |
| 33 } | 35 } |
| 34 | 36 |
| 35 } // namespace android | 37 } // namespace android |
| 36 } // namespace chromecast | 38 } // namespace chromecast |
| OLD | NEW |