| Index: ui/events/BUILD.gn
|
| diff --git a/ui/events/BUILD.gn b/ui/events/BUILD.gn
|
| index 867a513c927480ed22e427e88103172937bd2ed1..8497819b890620787bb450f1648247b4cb0a041c 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",
|
| @@ -174,6 +178,16 @@ component("events") {
|
| if (is_win || is_mac || use_x11 || use_ozone) {
|
| sources -= [ "events_stub.cc" ]
|
| }
|
| +
|
| + if (is_android) {
|
| + sources += [
|
| + "android/motion_event_android.cc",
|
| + "android/motion_event_android.h",
|
| + "android/events_jni_registrar.cc",
|
| + "android/events_jni_registrar.h",
|
| + ]
|
| + deps += [ ":motionevent_jni_headers" ]
|
| + }
|
| }
|
|
|
| component("gesture_detection") {
|
| @@ -406,4 +420,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" ]
|
| + }
|
| }
|
|
|