OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "blimp/client/app/android/blimp_jni_registrar.h" | 5 #include "blimp/client/app/android/blimp_app_jni_registrar.h" |
6 | 6 |
7 #include "base/android/jni_registrar.h" | 7 #include "base/android/jni_registrar.h" |
8 #include "blimp/client/app/android/blimp_client_session_android.h" | 8 #include "blimp/client/app/android/blimp_client_session_android.h" |
9 #include "blimp/client/app/android/blimp_library_loader.h" | 9 #include "blimp/client/app/android/blimp_library_loader.h" |
10 #include "blimp/client/app/android/blimp_view.h" | 10 #include "blimp/client/app/android/blimp_view.h" |
11 #include "blimp/client/app/android/tab_control_feature_android.h" | 11 #include "blimp/client/app/android/tab_control_feature_android.h" |
12 #include "blimp/client/app/android/toolbar.h" | 12 #include "blimp/client/app/android/toolbar.h" |
13 #include "blimp/client/app/android/web_input_box.h" | 13 #include "blimp/client/app/android/web_input_box.h" |
14 #include "blimp/client/core/android/blimp_contents_factory.h" | |
15 #include "blimp/client/core/android/blimp_contents_impl_android.h" | |
16 #include "blimp/client/core/android/blimp_contents_observer_proxy.h" | |
17 #include "blimp/client/core/android/blimp_navigation_controller_impl_android.h" | |
18 #include "components/safe_json/android/component_jni_registrar.h" | 14 #include "components/safe_json/android/component_jni_registrar.h" |
19 | 15 |
20 namespace blimp { | 16 namespace blimp { |
21 namespace client { | 17 namespace client { |
22 namespace { | 18 namespace { |
23 | 19 |
24 base::android::RegistrationMethod kBlimpRegistrationMethods[] = { | 20 base::android::RegistrationMethod kBlimpRegistrationMethods[] = { |
25 {"BlimpClientSessionAndroid", BlimpClientSessionAndroid::RegisterJni}, | 21 {"BlimpClientSessionAndroid", BlimpClientSessionAndroid::RegisterJni}, |
26 {"BlimpContentsFactory", RegisterBlimpContentsFactoryJni}, | |
27 {"BlimpContentsImpl", BlimpContentsImplAndroid::RegisterJni}, | |
28 {"BlimpContentsObserverProxy", BlimpContentsObserverProxy::RegisterJni}, | |
29 {"BlimpLibraryLoader", RegisterBlimpLibraryLoaderJni}, | 22 {"BlimpLibraryLoader", RegisterBlimpLibraryLoaderJni}, |
30 {"BlimpNavigationControllerImplAndroid", | |
31 BlimpNavigationControllerImplAndroid::RegisterJni}, | |
32 {"BlimpView", BlimpView::RegisterJni}, | 23 {"BlimpView", BlimpView::RegisterJni}, |
33 {"SafeJson", safe_json::android::RegisterSafeJsonJni}, | 24 {"SafeJson", safe_json::android::RegisterSafeJsonJni}, |
34 {"TabControlFeatureAndroid", TabControlFeatureAndroid::RegisterJni}, | 25 {"TabControlFeatureAndroid", TabControlFeatureAndroid::RegisterJni}, |
35 {"Toolbar", Toolbar::RegisterJni}, | 26 {"Toolbar", Toolbar::RegisterJni}, |
36 {"WebInputBox", WebInputBox::RegisterJni}, | 27 {"WebInputBox", WebInputBox::RegisterJni}, |
37 }; | 28 }; |
38 | 29 |
39 } // namespace | 30 } // namespace |
40 | 31 |
41 bool RegisterBlimpJni(JNIEnv* env) { | 32 bool RegisterBlimpAppJni(JNIEnv* env) { |
42 return base::android::RegisterNativeMethods( | 33 return base::android::RegisterNativeMethods( |
43 env, kBlimpRegistrationMethods, arraysize(kBlimpRegistrationMethods)); | 34 env, kBlimpRegistrationMethods, arraysize(kBlimpRegistrationMethods)); |
44 } | 35 } |
45 | 36 |
46 } // namespace client | 37 } // namespace client |
47 } // namespace blimp | 38 } // namespace blimp |
OLD | NEW |