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