sources = [
"device_data_manager.cc",
"device_data_manager.h",
+ "device_hotplug_event_observer.h",
"event_constants.h",
"event_switches.cc",
"event_switches.h",
"events_base_export.h",
"gesture_event_details.cc",
"gesture_event_details.h",
+ "gestures/fling_curve.cc",
+ "gestures/fling_curve.h",
"gestures/gesture_configuration.cc",
"gestures/gesture_configuration.h",
"keycodes/keyboard_code_conversion.cc",
"keycodes/keyboard_codes.h",
"latency_info.cc",
"latency_info.h",
+ "touchscreen_device.cc",
+ "touchscreen_device.h",
]
defines = [ "EVENTS_BASE_IMPLEMENTATION" ]
deps = [
":dom4_keycode_converter",
- "//base",
"//base/third_party/dynamic_annotations",
"//skia",
+ ]
+
+ public_deps = [
+ "//base",
"//ui/events/platform",
"//ui/gfx",
"//ui/gfx/geometry",
]
- forward_dependent_configs_from = [ "//ui/gfx" ]
-
if (use_x11) {
configs += [ "//build/config/linux:x11" ]
"x/device_data_manager_x11.h",
"x/device_list_cache_x.cc",
"x/device_list_cache_x.h",
+ "x/hotplug_event_handler_x11.cc",
+ "x/hotplug_event_handler_x11.h",
"x/keysym_to_unicode.cc",
"x/keysym_to_unicode.h",
"x/touch_factory_x11.cc",
"x/touch_factory_x11.h",
]
+
+ deps += [ "//ui/gfx/x" ]
}
}
component("events") {
- deps = [
- ":dom4_keycode_converter",
- ":events_base",
- ":gesture_detection",
- "//base/third_party/dynamic_annotations",
- "//skia",
- "//ui/gfx",
- "//ui/gfx/geometry",
- ]
-
- defines = [ "EVENTS_IMPLEMENTATION" ]
-
sources = [
"cocoa/cocoa_event_utils.h",
"cocoa/cocoa_event_utils.mm",
"event_utils.h",
"events_export.h",
"events_stub.cc",
- "gestures/gesture_point.cc",
- "gestures/gesture_point.h",
"gestures/gesture_recognizer_impl_mac.cc",
- "gestures/gesture_sequence.cc",
- "gestures/gesture_sequence.h",
"gestures/gesture_types.h",
- "gestures/unified_gesture_detector_enabled.cc",
- "gestures/unified_gesture_detector_enabled.h",
- "gestures/velocity_calculator.cc",
- "gestures/velocity_calculator.h",
"win/events_win.cc",
- "x/events_x.cc",
+ ]
+
+ defines = [ "EVENTS_IMPLEMENTATION" ]
+
+ public_deps = [
+ ":events_base",
+ ]
+ deps = [
+ ":dom4_keycode_converter",
+ ":gesture_detection",
+ "//base/third_party/dynamic_annotations",
+ "//skia",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
]
if (use_x11) {
+ sources += [ "x/events_x.cc" ]
configs += [
"//build/config/linux:glib",
"//build/config/linux:x11",
]
- } else {
- sources -= [
- "x/events_x.cc",
- ]
+ deps += [ "//ui/gfx/x" ]
}
if (!is_chromeos && is_linux) {
"gesture_detection/gesture_config_helper.h",
"gesture_detection/gesture_provider.cc",
"gesture_detection/gesture_provider.h",
+ "gesture_detection/gesture_touch_uma_histogram.cc",
+ "gesture_detection/gesture_touch_uma_histogram.h",
"gesture_detection/motion_event.cc",
"gesture_detection/motion_event.h",
"gesture_detection/motion_event_buffer.cc",
"test/event_generator.h",
"test/events_test_utils.cc",
"test/events_test_utils.h",
- "test/events_test_utils_x11.cc",
- "test/events_test_utils_x11.h",
"test/mock_motion_event.cc",
"test/mock_motion_event.h",
"test/platform_event_waiter.cc",
"test/test_event_target.h",
]
+ public_deps = [
+ ":events",
+ ":events_base",
+ ":gesture_detection",
+ ]
deps = [
"//base",
"//skia",
"//ui/events/platform",
"//ui/gfx/geometry",
- ":events",
- ":events_base",
- ":gesture_detection",
]
if (is_ios) {
]
}
- if (!use_x11) {
- sources -= [
+ if (use_x11) {
+ sources += [
"test/events_test_utils_x11.cc",
"test/events_test_utils_x11.h",
]
+ deps += [ "//ui/gfx/x" ]
}
}
"event_processor_unittest.cc",
"event_rewriter_unittest.cc",
"event_unittest.cc",
- "gestures/velocity_calculator_unittest.cc",
"gesture_detection/bitset_32_unittest.cc",
"gesture_detection/gesture_event_data_packet_unittest.cc",
"gesture_detection/gesture_provider_unittest.cc",
"gesture_detection/motion_event_generic_unittest.cc",
"gesture_detection/touch_disposition_gesture_filter_unittest.cc",
"gesture_detection/velocity_tracker_unittest.cc",
+ "gestures/fling_curve_unittest.cc",
"keycodes/dom4/keycode_converter_unittest.cc",
"latency_info_unittest.cc",
"platform/platform_event_source_unittest.cc",