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/events/android/events_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 "ui/android/resources/resource_manager_impl.h" | 9 #include "ui/events/android/motion_event_android.h" |
10 #include "ui/android/view_android.h" | |
11 #include "ui/android/window_android.h" | |
12 | 10 |
13 namespace ui { | 11 namespace ui { |
| 12 namespace events { |
| 13 namespace android { |
14 | 14 |
15 static base::android::RegistrationMethod kAndroidRegisteredMethods[] = { | 15 static base::android::RegistrationMethod kAndroidRegisteredMethods[] = { |
16 {"ResourceManager", ui::ResourceManagerImpl::RegisterResourceManager}, | 16 {"MotionEventAndroid", ui::MotionEventAndroid::RegisterMotionEventAndroid}, |
17 {"WindowAndroid", WindowAndroid::RegisterWindowAndroid}, | |
18 }; | 17 }; |
19 | 18 |
20 bool RegisterUIAndroidJni(JNIEnv* env) { | 19 bool RegisterJni(JNIEnv* env) { |
21 return RegisterNativeMethods(env, kAndroidRegisteredMethods, | 20 return RegisterNativeMethods(env, kAndroidRegisteredMethods, |
22 arraysize(kAndroidRegisteredMethods)); | 21 arraysize(kAndroidRegisteredMethods)); |
23 } | 22 } |
24 | 23 |
| 24 } // namespace android |
| 25 } // namespace events |
25 } // namespace ui | 26 } // namespace ui |
OLD | NEW |