Chromium Code Reviews| 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/android/blimp_jni_registrar.h" | |
| 6 | |
| 7 #include "base/android/jni_registrar.h" | |
| 8 #include "blimp/client/android/blimp_library_loader.h" | |
| 9 #include "blimp/client/android/blimp_view.h" | |
| 10 | |
| 11 namespace { | |
| 12 | |
| 13 static base::android::RegistrationMethod kBlimpRegistrationMethods[] = { | |
|
Wez
2015/08/27 02:01:50
const?
Why does this need to be static if it's al
David Trainor- moved to gerrit
2015/09/03 06:33:20
Ah good point about the static. It's generally sp
| |
| 14 {"BlimpLibraryLoader", blimp::RegisterBlimpLibraryLoaderJni}, | |
| 15 {"BlimpView", blimp::BlimpView::RegisterJni}, | |
| 16 }; | |
| 17 | |
| 18 } // namespace | |
| 19 | |
| 20 namespace blimp { | |
| 21 | |
| 22 bool RegisterBlimpJni(JNIEnv* env) { | |
| 23 return base::android::RegisterNativeMethods( | |
| 24 env, kBlimpRegistrationMethods, arraysize(kBlimpRegistrationMethods)); | |
| 25 } | |
| 26 | |
| 27 } // namespace blimp | |
| OLD | NEW |