OLD | NEW |
| (Empty) |
1 // Copyright 2016 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/public/android/blimp_jni_registrar.h" | |
6 | |
7 #include "base/android/jni_registrar.h" | |
8 #include "blimp/client/core/contents/android/blimp_contents_jni_registrar.h" | |
9 #include "blimp/client/core/context/android/blimp_client_context_impl_android.h" | |
10 #include "blimp/client/core/settings/android/blimp_settings_android.h" | |
11 #include "blimp/client/core/settings/android/settings_android.h" | |
12 #include "blimp/client/core/settings/android/settings_observer_proxy.h" | |
13 | |
14 namespace blimp { | |
15 namespace client { | |
16 namespace { | |
17 | |
18 base::android::RegistrationMethod kBlimpRegistrationMethods[] = { | |
19 {"BlimpClientContextImplAndroid", | |
20 BlimpClientContextImplAndroid::RegisterJni}, | |
21 {"BlimpContentsJni", RegisterBlimpContentsJni}, | |
22 {"BlimpSettingsAndroid", BlimpSettingsAndroid::RegisterJni}, | |
23 {"SettingsAndroid", SettingsAndroid::RegisterJni}, | |
24 {"SettingsObserverProxy", SettingsObserverProxy::RegisterJni}, | |
25 }; | |
26 | |
27 } // namespace | |
28 | |
29 // This method is declared in | |
30 // //blimp/client/public/android/blimp_jni_registrar.h, and either this function | |
31 // or the one in //blimp/client/core/android/dummy_blimp_jni_registrar.cc | |
32 // should be linked in to any binary blimp::client::RegisterBlimpJni. | |
33 bool RegisterBlimpJni(JNIEnv* env) { | |
34 return base::android::RegisterNativeMethods( | |
35 env, kBlimpRegistrationMethods, arraysize(kBlimpRegistrationMethods)); | |
36 } | |
37 | |
38 } // namespace client | |
39 } // namespace blimp | |
OLD | NEW |