OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "blimp/client/app/android/blimp_jni_registrar.h" | |
6 | |
7 #include "base/android/jni_registrar.h" | |
8 #include "blimp/client/app/android/blimp_client_session_android.h" | |
9 #include "blimp/client/app/android/blimp_library_loader.h" | |
10 #include "blimp/client/app/android/blimp_view.h" | |
11 #include "blimp/client/app/android/tab_control_feature_android.h" | |
12 #include "blimp/client/app/android/toolbar.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" | |
19 | |
20 namespace blimp { | |
21 namespace client { | |
22 namespace { | |
23 | |
24 base::android::RegistrationMethod kBlimpRegistrationMethods[] = { | |
25 {"BlimpClientSessionAndroid", BlimpClientSessionAndroid::RegisterJni}, | |
26 {"BlimpContentsFactory", RegisterBlimpContentsFactoryJni}, | |
27 {"BlimpContentsImpl", BlimpContentsImplAndroid::RegisterJni}, | |
28 {"BlimpContentsObserverProxy", BlimpContentsObserverProxy::RegisterJni}, | |
29 {"BlimpLibraryLoader", RegisterBlimpLibraryLoaderJni}, | |
30 {"BlimpNavigationControllerImplAndroid", | |
31 BlimpNavigationControllerImplAndroid::RegisterJni}, | |
32 {"BlimpView", BlimpView::RegisterJni}, | |
33 {"SafeJson", safe_json::android::RegisterSafeJsonJni}, | |
34 {"TabControlFeatureAndroid", TabControlFeatureAndroid::RegisterJni}, | |
35 {"Toolbar", Toolbar::RegisterJni}, | |
36 {"WebInputBox", WebInputBox::RegisterJni}, | |
37 }; | |
38 | |
39 } // namespace | |
40 | |
41 bool RegisterBlimpJni(JNIEnv* env) { | |
42 return base::android::RegisterNativeMethods( | |
43 env, kBlimpRegistrationMethods, arraysize(kBlimpRegistrationMethods)); | |
44 } | |
45 | |
46 } // namespace client | |
47 } // namespace blimp | |
OLD | NEW |