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