Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Unified Diff: ui/events/BUILD.gn

Issue 1430623004: blimp: Add support for input handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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" ]
+ }
}

Powered by Google App Engine
This is Rietveld 408576698