| 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/browser/android/cast_window_android.h" | 9 #include "chromecast/browser/android/cast_window_android.h" |
| 10 #include "chromecast/browser/android/cast_window_manager.h" | 10 #include "chromecast/browser/android/cast_window_manager.h" |
| 11 #include "chromecast/browser/android/external_video_surface_container_impl.h" | |
| 12 #include "chromecast/crash/android/crash_handler.h" | 11 #include "chromecast/crash/android/crash_handler.h" |
| 12 #include "components/external_video_surface/component_jni_registrar.h" |
| 13 | 13 |
| 14 namespace chromecast { | 14 namespace chromecast { |
| 15 namespace android { | 15 namespace android { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 static base::android::RegistrationMethod kMethods[] = { | 19 static base::android::RegistrationMethod kMethods[] = { |
| 20 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni }, | 20 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni }, |
| 21 { "CastWindowManager", shell::RegisterCastWindowManager }, | 21 { "CastWindowManager", shell::RegisterCastWindowManager }, |
| 22 { "CrashHandler", CrashHandler::RegisterCastCrashJni }, | 22 { "CrashHandler", CrashHandler::RegisterCastCrashJni }, |
| 23 { "ExternalVideoSurfaceContainer", | 23 { "ExternalVideoSurfaceContainer", |
| 24 shell::RegisterExternalVideoSurfaceContainer }, | 24 external_video_surface::RegisterExternalVideoSurfaceJni }, |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 } // namespace | 27 } // namespace |
| 28 | 28 |
| 29 bool RegisterJni(JNIEnv* env) { | 29 bool RegisterJni(JNIEnv* env) { |
| 30 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); | 30 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); |
| 31 } | 31 } |
| 32 | 32 |
| 33 } // namespace android | 33 } // namespace android |
| 34 } // namespace chromecast | 34 } // namespace chromecast |
| OLD | NEW |