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