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

Unified Diff: ui/events/BUILD.gn

Issue 1417173008: Move MotionEventAndroid to ui/events/android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Copyright date fix. Created 5 years, 1 month 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
« no previous file with comments | « content/public/test/content_test_suite_base.cc ('k') | ui/events/android/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" ]
+ }
}
« no previous file with comments | « content/public/test/content_test_suite_base.cc ('k') | ui/events/android/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698