summaryrefslogtreecommitdiffstats
path: root/chromium/ui/events/events.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/events/events.gyp')
-rw-r--r--chromium/ui/events/events.gyp221
1 files changed, 180 insertions, 41 deletions
diff --git a/chromium/ui/events/events.gyp b/chromium/ui/events/events.gyp
index b7a43136822..890708dab2f 100644
--- a/chromium/ui/events/events.gyp
+++ b/chromium/ui/events/events.gyp
@@ -25,21 +25,27 @@
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
+ '<(DEPTH)/skia/skia.gyp:skia',
+ '../gfx/gfx.gyp:gfx',
+ '../gfx/gfx.gyp:gfx_geometry',
'dom4_keycode_converter',
],
'defines': [
'EVENTS_BASE_IMPLEMENTATION',
],
'sources': [
- 'events_base_export.h',
+ 'event_constants.h',
'event_switches.cc',
'event_switches.h',
+ 'events_base_export.h',
+ 'gesture_event_details.cc',
+ 'gesture_event_details.h',
+ 'gestures/gesture_configuration.cc',
+ 'gestures/gesture_configuration.h',
'keycodes/keyboard_code_conversion.cc',
'keycodes/keyboard_code_conversion.h',
'keycodes/keyboard_code_conversion_android.cc',
'keycodes/keyboard_code_conversion_android.h',
- 'keycodes/keyboard_code_conversion_gtk.cc',
- 'keycodes/keyboard_code_conversion_gtk.h',
'keycodes/keyboard_code_conversion_mac.h',
'keycodes/keyboard_code_conversion_mac.mm',
'keycodes/keyboard_code_conversion_win.cc',
@@ -49,17 +55,18 @@
'keycodes/keyboard_codes.h',
'latency_info.cc',
'latency_info.h',
- 'x/device_list_cache_x.cc',
- 'x/device_list_cache_x.h',
'x/device_data_manager.cc',
'x/device_data_manager.h',
+ 'x/device_list_cache_x.cc',
+ 'x/device_list_cache_x.h',
'x/touch_factory_x11.cc',
'x/touch_factory_x11.h',
],
'conditions': [
['use_x11==1', {
'dependencies': [
- '<(DEPTH)/build/linux/system.gyp:x11',
+ '../../build/linux/system.gyp:x11',
+ '../gfx/x/gfx_x11.gyp:gfx_x11',
],
}],
],
@@ -72,21 +79,26 @@
'<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'<(DEPTH)/skia/skia.gyp:skia',
'../gfx/gfx.gyp:gfx',
+ '../gfx/gfx.gyp:gfx_geometry',
'events_base',
+ 'gesture_detection',
],
'defines': [
'EVENTS_IMPLEMENTATION',
],
'sources': [
+ 'cocoa/cocoa_event_utils.h',
+ 'cocoa/cocoa_event_utils.mm',
+ 'cocoa/events_mac.mm',
'event.cc',
'event.h',
- 'event_constants.h',
'event_dispatcher.cc',
'event_dispatcher.h',
'event_handler.cc',
'event_handler.h',
'event_processor.cc',
'event_processor.h',
+ 'event_rewriter.h',
'event_source.cc',
'event_source.h',
'event_target.cc',
@@ -98,54 +110,113 @@
'event_utils.h',
'events_export.h',
'events_stub.cc',
- 'gestures/gesture_configuration.cc',
- 'gestures/gesture_configuration.h',
'gestures/gesture_point.cc',
'gestures/gesture_point.h',
+ 'gestures/gesture_provider_aura.cc',
+ 'gestures/gesture_provider_aura.h',
'gestures/gesture_recognizer.h',
'gestures/gesture_recognizer_impl.cc',
'gestures/gesture_recognizer_impl.h',
+ 'gestures/gesture_recognizer_impl_mac.cc',
'gestures/gesture_sequence.cc',
'gestures/gesture_sequence.h',
- 'gestures/gesture_types.cc',
'gestures/gesture_types.h',
- 'gestures/gesture_util.cc',
- 'gestures/gesture_util.h',
+ 'gestures/motion_event_aura.cc',
+ 'gestures/motion_event_aura.h',
+ 'gestures/unified_gesture_detector_enabled.cc',
+ 'gestures/unified_gesture_detector_enabled.h',
'gestures/velocity_calculator.cc',
'gestures/velocity_calculator.h',
- 'ozone/evdev/event_device_info.cc',
- 'ozone/evdev/event_device_info.h',
- 'ozone/evdev/event_factory.cc',
- 'ozone/evdev/event_factory.h',
- 'ozone/evdev/event_modifiers.cc',
- 'ozone/evdev/event_modifiers.h',
- 'ozone/evdev/key_event_converter.cc',
- 'ozone/evdev/key_event_converter.h',
- 'ozone/evdev/touch_event_converter.cc',
- 'ozone/evdev/touch_event_converter.h',
- 'ozone/event_converter_ozone.cc',
- 'ozone/event_converter_ozone.h',
- 'ozone/event_factory_ozone.cc',
- 'ozone/event_factory_ozone.h',
'ozone/events_ozone.cc',
'win/events_win.cc',
'x/events_x.cc',
+ 'linux/text_edit_command_auralinux.cc',
+ 'linux/text_edit_command_auralinux.h',
+ 'linux/text_edit_key_bindings_delegate_auralinux.cc',
+ 'linux/text_edit_key_bindings_delegate_auralinux.h',
],
'conditions': [
+ ['use_aura==0', {
+ 'sources!': [
+ 'gestures/gesture_point.cc',
+ 'gestures/gesture_point.h',
+ 'gestures/gesture_provider_aura.cc',
+ 'gestures/gesture_provider_aura.h',
+ 'gestures/gesture_recognizer.h',
+ 'gestures/gesture_recognizer_impl.cc',
+ 'gestures/gesture_recognizer_impl.h',
+ 'gestures/gesture_sequence.cc',
+ 'gestures/gesture_sequence.h',
+ 'gestures/gesture_types.h',
+ 'gestures/motion_event_aura.cc',
+ 'gestures/motion_event_aura.h',
+ 'gestures/velocity_calculator.cc',
+ 'gestures/velocity_calculator.h',
+ ],
+ }],
# We explicitly enumerate the platforms we _do_ provide native cracking
# for here.
- ['OS=="win" or use_x11==1 or use_ozone==1', {
+ ['OS=="win" or OS=="mac" or use_x11==1 or use_ozone==1', {
'sources!': [
'events_stub.cc',
],
}],
- ['use_x11==1', {
- 'dependencies': [
- '<(DEPTH)/build/linux/system.gyp:x11',
+ ['chromeos==1', {
+ 'sources!': [
+ 'linux/text_edit_command_auralinux.cc',
+ 'linux/text_edit_command_auralinux.h',
+ 'linux/text_edit_key_bindings_delegate_auralinux.cc',
+ 'linux/text_edit_key_bindings_delegate_auralinux.h',
],
}],
- ['use_ozone_evdev==1', {
- 'defines': ['USE_OZONE_EVDEV=1'],
+ ],
+ },
+ {
+ 'target_name': 'gesture_detection',
+ 'type': '<(component)',
+ 'dependencies': [
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
+ '../gfx/gfx.gyp:gfx',
+ '../gfx/gfx.gyp:gfx_geometry',
+ 'events_base',
+ ],
+ 'defines': [
+ 'GESTURE_DETECTION_IMPLEMENTATION',
+ ],
+ 'sources': [
+ 'gesture_detection/bitset_32.h',
+ 'gesture_detection/filtered_gesture_provider.cc',
+ 'gesture_detection/filtered_gesture_provider.h',
+ 'gesture_detection/gesture_config_helper.h',
+ 'gesture_detection/gesture_config_helper_android.cc',
+ 'gesture_detection/gesture_config_helper_aura.cc',
+ 'gesture_detection/gesture_detection_export.h',
+ 'gesture_detection/gesture_detector.cc',
+ 'gesture_detection/gesture_detector.h',
+ 'gesture_detection/gesture_event_data.cc',
+ 'gesture_detection/gesture_event_data.h',
+ 'gesture_detection/gesture_event_data_packet.cc',
+ 'gesture_detection/gesture_event_data_packet.h',
+ 'gesture_detection/gesture_provider.cc',
+ 'gesture_detection/gesture_provider.h',
+ 'gesture_detection/motion_event.h',
+ 'gesture_detection/scale_gesture_detector.cc',
+ 'gesture_detection/scale_gesture_detector.h',
+ 'gesture_detection/snap_scroll_controller.cc',
+ 'gesture_detection/snap_scroll_controller.h',
+ 'gesture_detection/touch_disposition_gesture_filter.cc',
+ 'gesture_detection/touch_disposition_gesture_filter.h',
+ 'gesture_detection/velocity_tracker_state.cc',
+ 'gesture_detection/velocity_tracker_state.h',
+ 'gesture_detection/velocity_tracker.cc',
+ 'gesture_detection/velocity_tracker.h',
+ ],
+ 'conditions': [
+ ['use_aura!=1 and OS!="android"', {
+ 'sources': [
+ 'gesture_detection/gesture_config_helper.cc',
+ ],
}],
],
},
@@ -153,14 +224,22 @@
'target_name': 'events_test_support',
'type': 'static_library',
'dependencies': [
+ '<(DEPTH)/skia/skia.gyp:skia',
'events',
'events_base',
+ 'platform/events_platform.gyp:events_platform',
],
'sources': [
+ 'test/cocoa_test_event_utils.h',
+ 'test/cocoa_test_event_utils.mm',
'test/events_test_utils.cc',
'test/events_test_utils.h',
'test/events_test_utils_x11.cc',
'test/events_test_utils_x11.h',
+ 'test/platform_event_waiter.cc',
+ 'test/platform_event_waiter.h',
+ 'test/test_event_handler.cc',
+ 'test/test_event_handler.h',
'test/test_event_processor.cc',
'test/test_event_processor.h',
'test/test_event_target.cc',
@@ -169,9 +248,14 @@
'conditions': [
['use_x11==1', {
'dependencies': [
- '<(DEPTH)/build/linux/system.gyp:x11',
+ '../../build/linux/system.gyp:x11',
+ '../gfx/x/gfx_x11.gyp:gfx_x11',
],
}],
+ ['OS=="ios"', {
+ # The cocoa files don't apply to iOS.
+ 'sources/': [['exclude', 'cocoa']],
+ }],
],
},
{
@@ -179,35 +263,90 @@
'type': '<(gtest_target_type)',
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/base/base.gyp:run_all_unittests',
'<(DEPTH)/base/base.gyp:test_support_base',
+ '<(DEPTH)/skia/skia.gyp:skia',
'<(DEPTH)/testing/gtest.gyp:gtest',
- '../gfx/gfx.gyp:gfx',
+ '../gfx/gfx.gyp:gfx_geometry',
+ '../gfx/gfx.gyp:gfx_test_support',
'dom4_keycode_converter',
- 'events_base',
'events',
+ 'events_base',
'events_test_support',
+ 'gesture_detection',
+ 'platform/events_platform.gyp:events_platform',
],
'sources': [
+ 'cocoa/events_mac_unittest.mm',
'event_dispatcher_unittest.cc',
'event_processor_unittest.cc',
+ 'event_rewriter_unittest.cc',
'event_unittest.cc',
+ 'gestures/motion_event_aura_unittest.cc',
'gestures/velocity_calculator_unittest.cc',
+ 'gesture_detection/bitset_32_unittest.cc',
+ 'gesture_detection/gesture_provider_unittest.cc',
+ 'gesture_detection/mock_motion_event.h',
+ 'gesture_detection/mock_motion_event.cc',
+ 'gesture_detection/velocity_tracker_unittest.cc',
+ 'gesture_detection/touch_disposition_gesture_filter_unittest.cc',
'keycodes/dom4/keycode_converter_unittest.cc',
'latency_info_unittest.cc',
- 'test/run_all_unittests.cc',
- 'test/test_suite.cc',
- 'test/test_suite.h',
- 'ozone/evdev/key_event_converter_unittest.cc',
- 'ozone/evdev/touch_event_converter_unittest.cc',
+ 'platform/platform_event_source_unittest.cc',
'x/events_x_unittest.cc',
],
'conditions': [
- ['OS=="linux" and linux_use_tcmalloc==1', {
+ ['use_ozone==1', {
+ 'sources': [
+ 'ozone/evdev/key_event_converter_evdev_unittest.cc',
+ 'ozone/evdev/touch_event_converter_evdev_unittest.cc',
+ ],
+ 'dependencies': [
+ 'ozone/events_ozone.gyp:events_ozone',
+ 'ozone/events_ozone.gyp:events_ozone_evdev',
+ ]
+ }],
+ ['use_aura==0', {
+ 'sources!': [
+ 'gestures/motion_event_aura_unittest.cc',
+ 'gestures/velocity_calculator_unittest.cc',
+ ],
+ }],
+ ['OS=="linux" and use_allocator!="none"', {
'dependencies': [
'<(DEPTH)/base/allocator/allocator.gyp:allocator',
],
}],
+ # Exclude tests that rely on event_utils.h for platforms that do not
+ # provide native cracking, i.e., platforms that use events_stub.cc.
+ ['OS!="win" and use_x11!=1 and use_ozone!=1', {
+ 'sources!': [
+ 'event_unittest.cc',
+ ],
+ }],
+ ['OS == "android"', {
+ 'dependencies': [
+ '../../testing/android/native_test.gyp:native_test_native_code',
+ ],
+ }],
],
},
],
+ 'conditions': [
+ ['OS == "android"', {
+ 'targets': [
+ {
+ 'target_name': 'events_unittests_apk',
+ 'type': 'none',
+ 'dependencies': [
+ 'events_unittests',
+ ],
+ 'variables': {
+ 'test_suite_name': 'events_unittests',
+ },
+ 'includes': [ '../../build/apk_test.gypi' ],
+ },
+ ],
+ }],
+ ],
}