| 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" | |
| 11 #include "chromecast/base/android/system_time_change_notifier_android.h" | 10 #include "chromecast/base/android/system_time_change_notifier_android.h" |
| 12 #include "chromecast/base/chromecast_config_android.h" | 11 #include "chromecast/base/chromecast_config_android.h" |
| 13 #include "chromecast/browser/android/cast_window_manager.h" | |
| 14 | 12 |
| 15 namespace chromecast { | 13 namespace chromecast { |
| 16 namespace android { | 14 namespace android { |
| 17 | 15 |
| 18 namespace { | 16 namespace { |
| 19 | 17 |
| 20 static base::android::RegistrationMethod kMethods[] = { | 18 static base::android::RegistrationMethod kMethods[] = { |
| 21 { "CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni }, | 19 {"ChromecastConfigAndroid", ChromecastConfigAndroid::RegisterJni}, |
| 22 { "CastWindowManager", shell::RegisterCastWindowManager }, | 20 {"SystemTimeChangeNotifierAndroid", |
| 23 { "ChromecastConfigAndroid", ChromecastConfigAndroid::RegisterJni }, | 21 SystemTimeChangeNotifierAndroid::RegisterJni}, |
| 24 { "SystemTimeChangeNotifierAndroid", | |
| 25 SystemTimeChangeNotifierAndroid::RegisterJni }, | |
| 26 }; | 22 }; |
| 27 | 23 |
| 28 } // namespace | 24 } // namespace |
| 29 | 25 |
| 30 bool RegisterJni(JNIEnv* env) { | 26 bool RegisterJni(JNIEnv* env) { |
| 31 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); | 27 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); |
| 32 } | 28 } |
| 33 | 29 |
| 34 } // namespace android | 30 } // namespace android |
| 35 } // namespace chromecast | 31 } // namespace chromecast |
| OLD | NEW |