OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "blimp/client/android/blimp_jni_registrar.h" | 5 #include "blimp/client/android/blimp_jni_registrar.h" |
6 | 6 |
7 #include "base/android/jni_registrar.h" | 7 #include "base/android/jni_registrar.h" |
8 #include "blimp/client/android/blimp_library_loader.h" | 8 #include "blimp/client/android/blimp_library_loader.h" |
9 #include "blimp/client/android/blimp_view.h" | 9 #include "blimp/client/android/blimp_view.h" |
| 10 #include "blimp/client/android/toolbar.h" |
10 | 11 |
11 namespace { | 12 namespace { |
12 | 13 |
13 base::android::RegistrationMethod kBlimpRegistrationMethods[] = { | 14 base::android::RegistrationMethod kBlimpRegistrationMethods[] = { |
14 {"BlimpLibraryLoader", blimp::RegisterBlimpLibraryLoaderJni}, | 15 {"BlimpLibraryLoader", blimp::RegisterBlimpLibraryLoaderJni}, |
| 16 {"Toolbar", blimp::Toolbar::RegisterJni}, |
15 {"BlimpView", blimp::BlimpView::RegisterJni}, | 17 {"BlimpView", blimp::BlimpView::RegisterJni}, |
16 }; | 18 }; |
17 | 19 |
18 } // namespace | 20 } // namespace |
19 | 21 |
20 namespace blimp { | 22 namespace blimp { |
21 | 23 |
22 bool RegisterBlimpJni(JNIEnv* env) { | 24 bool RegisterBlimpJni(JNIEnv* env) { |
23 return base::android::RegisterNativeMethods( | 25 return base::android::RegisterNativeMethods( |
24 env, kBlimpRegistrationMethods, arraysize(kBlimpRegistrationMethods)); | 26 env, kBlimpRegistrationMethods, arraysize(kBlimpRegistrationMethods)); |
25 } | 27 } |
26 | 28 |
27 } // namespace blimp | 29 } // namespace blimp |
OLD | NEW |