| Index: ui/events/BUILD.gn
|
| diff --git a/ui/events/BUILD.gn b/ui/events/BUILD.gn
|
| index 29b64c54046b0c840cd0e55285ce47acfc1430d3..80097cde04c7c49380322a751e1385a597e60f67 100644
|
| --- a/ui/events/BUILD.gn
|
| +++ b/ui/events/BUILD.gn
|
| @@ -5,6 +5,10 @@
|
| import("//build/config/ui.gni")
|
| import("//testing/test.gni")
|
|
|
| +if (is_android) {
|
| + import("//build/config/android/rules.gni")
|
| +}
|
| +
|
| static_library("dom_keycode_converter") {
|
| sources = [
|
| "keycodes/dom/dom_code.h",
|
| @@ -181,6 +185,16 @@ component("events") {
|
| if (is_win || is_mac || use_x11 || use_ozone || (is_android && use_aura)) {
|
| sources -= [ "events_stub.cc" ]
|
| }
|
| +
|
| + if (is_android) {
|
| + sources += [
|
| + "android/events_jni_registrar.cc",
|
| + "android/events_jni_registrar.h",
|
| + "android/motion_event_android.cc",
|
| + "android/motion_event_android.h",
|
| + ]
|
| + deps += [ ":motionevent_jni_headers" ]
|
| + }
|
| }
|
|
|
| component("gesture_detection") {
|
| @@ -413,4 +427,15 @@ test("events_unittests") {
|
| "gestures/motion_event_aura_unittest.cc",
|
| ]
|
| }
|
| +
|
| + if (is_android) {
|
| + sources += [ "android/motion_event_android_unittest.cc" ]
|
| + }
|
| +}
|
| +
|
| +if (is_android) {
|
| + generate_jar_jni("motionevent_jni_headers") {
|
| + jni_package = "ui"
|
| + classes = [ "android/view/MotionEvent.class" ]
|
| + }
|
| }
|
|
|