OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/android/ui_android_jni_registrar.h" | 5 #include "ui/android/ui_android_jni_registrar.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_registrar.h" | 8 #include "base/android/jni_registrar.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "ui/android/event_forwarder.h" | 10 #include "ui/android/event_forwarder.h" |
| 11 #include "ui/android/resources/resource_factory.h" |
11 #include "ui/android/resources/resource_manager_impl.h" | 12 #include "ui/android/resources/resource_manager_impl.h" |
12 #include "ui/android/screen_android.h" | 13 #include "ui/android/screen_android.h" |
13 #include "ui/android/view_android.h" | 14 #include "ui/android/view_android.h" |
14 #include "ui/android/window_android.h" | 15 #include "ui/android/window_android.h" |
15 | 16 |
16 namespace ui { | 17 namespace ui { |
17 | 18 |
18 static base::android::RegistrationMethod kAndroidRegisteredMethods[] = { | 19 static base::android::RegistrationMethod kAndroidRegisteredMethods[] = { |
19 {"DisplayAndroidManager", ui::RegisterScreenAndroid}, | 20 {"DisplayAndroidManager", ui::RegisterScreenAndroid}, |
20 {"EventForwarder", ui::RegisterEventForwarder}, | 21 {"EventForwarder", ui::RegisterEventForwarder}, |
| 22 {"ResourceFactory", ui::RegisterResourceFactory}, |
21 {"ResourceManager", ui::ResourceManagerImpl::RegisterResourceManager}, | 23 {"ResourceManager", ui::ResourceManagerImpl::RegisterResourceManager}, |
22 {"WindowAndroid", WindowAndroid::RegisterWindowAndroid}, | 24 {"WindowAndroid", WindowAndroid::RegisterWindowAndroid}, |
23 }; | 25 }; |
24 | 26 |
25 bool RegisterUIAndroidJni(JNIEnv* env) { | 27 bool RegisterUIAndroidJni(JNIEnv* env) { |
26 return RegisterNativeMethods(env, kAndroidRegisteredMethods, | 28 return RegisterNativeMethods(env, kAndroidRegisteredMethods, |
27 arraysize(kAndroidRegisteredMethods)); | 29 arraysize(kAndroidRegisteredMethods)); |
28 } | 30 } |
29 | 31 |
30 } // namespace ui | 32 } // namespace ui |
OLD | NEW |