| 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 "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "chromecast/android/cast_metrics_helper_android.h" | 10 #include "chromecast/android/cast_metrics_helper_android.h" |
| 11 #include "chromecast/base/android/system_time_change_notifier_android.h" | 11 #include "chromecast/base/android/system_time_change_notifier_android.h" |
| 12 #include "chromecast/base/chromecast_config_android.h" | 12 #include "chromecast/base/chromecast_config_android.h" |
| 13 #include "chromecast/browser/android/cast_window_manager.h" | 13 #include "chromecast/browser/android/cast_content_window_android.h" |
| 14 #include "chromecast/browser/android/cast_web_contents_activity.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 {"CastContentWindowAndroid", shell::CastContentWindowAndroid::RegisterJni}, |
| 22 { "CastWindowManager", shell::RegisterCastWindowManager }, | 23 {"CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni}, |
| 23 { "ChromecastConfigAndroid", ChromecastConfigAndroid::RegisterJni }, | 24 {"CastWebContentsActivity", shell::CastWebContentsActivity::RegisterJni}, |
| 24 { "SystemTimeChangeNotifierAndroid", | 25 {"ChromecastConfigAndroid", ChromecastConfigAndroid::RegisterJni}, |
| 25 SystemTimeChangeNotifierAndroid::RegisterJni }, | 26 {"SystemTimeChangeNotifierAndroid", |
| 27 SystemTimeChangeNotifierAndroid::RegisterJni}, |
| 26 }; | 28 }; |
| 27 | 29 |
| 28 } // namespace | 30 } // namespace |
| 29 | 31 |
| 30 bool RegisterJni(JNIEnv* env) { | 32 bool RegisterJni(JNIEnv* env) { |
| 31 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); | 33 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); |
| 32 } | 34 } |
| 33 | 35 |
| 34 } // namespace android | 36 } // namespace android |
| 35 } // namespace chromecast | 37 } // namespace chromecast |
| OLD | NEW |