1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
11 # GN version: //ui/events:dom_keycode_converter
12 'target_name': 'dom_keycode_converter',
13 'type': 'static_library',
15 '<(DEPTH)/base/base.gyp:base',
18 # Note: sources list duplicated in GN build.
19 'keycodes/dom/dom_code.h',
20 'keycodes/dom/dom_key.h',
21 'keycodes/dom/dom_key_data.inc',
22 'keycodes/dom/keycode_converter.cc',
23 'keycodes/dom/keycode_converter.h',
24 'keycodes/dom/keycode_converter_data.inc',
28 # GN version: //ui/events:events_base
29 'target_name': 'events_base',
30 'type': '<(component)',
32 '<(DEPTH)/base/base.gyp:base',
33 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
34 '<(DEPTH)/skia/skia.gyp:skia',
36 '../gfx/gfx.gyp:gfx_geometry',
37 'dom_keycode_converter',
40 'EVENTS_BASE_IMPLEMENTATION',
43 # Note: sources list duplicated in GN build.
44 'android/scroller.cc',
46 'base_event_utils.cc',
51 'events_base_export.h',
53 'gesture_event_details.cc',
54 'gesture_event_details.h',
55 'gestures/fling_curve.cc',
56 'gestures/fling_curve.h',
57 'keycodes/dom_us_layout_data.h',
58 'keycodes/keyboard_code_conversion.cc',
59 'keycodes/keyboard_code_conversion.h',
60 'keycodes/keyboard_code_conversion_android.cc',
61 'keycodes/keyboard_code_conversion_android.h',
62 'keycodes/keyboard_code_conversion_mac.h',
63 'keycodes/keyboard_code_conversion_mac.mm',
64 'keycodes/keyboard_code_conversion_win.cc',
65 'keycodes/keyboard_code_conversion_win.h',
66 'keycodes/keyboard_code_conversion_x.cc',
67 'keycodes/keyboard_code_conversion_x.h',
68 'keycodes/keyboard_codes.h',
71 'x/keysym_to_unicode.cc',
72 'x/keysym_to_unicode.h',
74 'export_dependent_settings': [
75 '../../ui/gfx/gfx.gyp:gfx',
80 '../../build/linux/system.gyp:x11',
81 '../gfx/x/gfx_x11.gyp:gfx_x11',
84 ['use_x11==1 or use_xkbcommon==1', {
86 'keycodes/keyboard_code_conversion_xkb.cc',
87 'keycodes/keyboard_code_conversion_xkb.h',
88 'keycodes/xkb_keysym.h',
94 # GN version: //ui/events
95 'target_name': 'events',
96 'type': '<(component)',
98 '<(DEPTH)/base/base.gyp:base',
99 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
100 '<(DEPTH)/skia/skia.gyp:skia',
101 '../gfx/gfx.gyp:gfx',
102 '../gfx/gfx.gyp:gfx_geometry',
103 'dom_keycode_converter',
108 'EVENTS_IMPLEMENTATION',
111 # Note: sources list duplicated in GN build.
112 'cocoa/cocoa_event_utils.h',
113 'cocoa/cocoa_event_utils.mm',
114 'cocoa/events_mac.mm',
117 'event_dispatcher.cc',
118 'event_dispatcher.h',
121 'event_processor.cc',
128 'event_target_iterator.h',
134 'gestures/gesture_provider_aura.cc',
135 'gestures/gesture_provider_aura.h',
136 'gestures/gesture_recognizer.h',
137 'gestures/gesture_recognizer_impl.cc',
138 'gestures/gesture_recognizer_impl.h',
139 'gestures/gesture_recognizer_impl_mac.cc',
140 'gestures/gesture_types.h',
141 'gestures/motion_event_aura.cc',
142 'gestures/motion_event_aura.h',
143 'linux/text_edit_command_auralinux.cc',
144 'linux/text_edit_command_auralinux.h',
145 'linux/text_edit_key_bindings_delegate_auralinux.cc',
146 'linux/text_edit_key_bindings_delegate_auralinux.h',
147 'null_event_targeter.cc',
148 'null_event_targeter.h',
149 'ozone/events_ozone.cc',
156 'devices/events_devices.gyp:events_devices',
157 '../gfx/x/gfx_x11.gyp:gfx_x11',
158 '../../build/linux/system.gyp:x11',
163 'gestures/gesture_provider_aura.cc',
164 'gestures/gesture_provider_aura.h',
165 'gestures/gesture_recognizer.h',
166 'gestures/gesture_recognizer_impl.cc',
167 'gestures/gesture_recognizer_impl.h',
168 'gestures/gesture_types.h',
169 'gestures/motion_event_aura.cc',
170 'gestures/motion_event_aura.h',
173 # We explicitly enumerate the platforms we _do_ provide native cracking
175 ['OS=="win" or OS=="mac" or use_x11==1 or use_ozone==1', {
182 'linux/text_edit_command_auralinux.cc',
183 'linux/text_edit_command_auralinux.h',
184 'linux/text_edit_key_bindings_delegate_auralinux.cc',
185 'linux/text_edit_key_bindings_delegate_auralinux.h',
190 'ozone/events_ozone.gyp:events_ozone_layout',
196 # GN version: //ui/events/blink
197 'target_name': 'blink',
198 'type': 'static_library',
200 '../../third_party/WebKit/public/blink_headers.gyp:blink_headers',
201 '../gfx/gfx.gyp:gfx_geometry',
206 # Note: sources list duplicated in GN build.
207 'blink/blink_event_util.cc',
208 'blink/blink_event_util.h',
212 # GN version: //ui/events/gestures/blink
213 'target_name': 'gestures_blink',
214 'type': 'static_library',
216 '../../base/base.gyp:base',
217 '../../third_party/WebKit/public/blink_headers.gyp:blink_headers',
218 '../gfx/gfx.gyp:gfx_geometry',
223 # Note: sources list duplicated in GN build.
224 'gestures/blink/web_gesture_curve_impl.cc',
225 'gestures/blink/web_gesture_curve_impl.h',
229 # GN version: //ui/events:gesture_detection
230 'target_name': 'gesture_detection',
231 'type': '<(component)',
233 '<(DEPTH)/base/base.gyp:base',
234 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
235 '../gfx/gfx.gyp:gfx',
236 '../gfx/gfx.gyp:gfx_geometry',
240 'GESTURE_DETECTION_IMPLEMENTATION',
243 # Note: sources list duplicated in GN build.
244 'gesture_detection/bitset_32.h',
245 'gesture_detection/filtered_gesture_provider.cc',
246 'gesture_detection/filtered_gesture_provider.h',
247 'gesture_detection/gesture_configuration.cc',
248 'gesture_detection/gesture_configuration.h',
249 'gesture_detection/gesture_configuration_android.cc',
250 'gesture_detection/gesture_configuration_aura.cc',
251 'gesture_detection/gesture_detection_export.h',
252 'gesture_detection/gesture_detector.cc',
253 'gesture_detection/gesture_detector.h',
254 'gesture_detection/gesture_event_data.cc',
255 'gesture_detection/gesture_event_data.h',
256 'gesture_detection/gesture_event_data_packet.cc',
257 'gesture_detection/gesture_event_data_packet.h',
258 'gesture_detection/gesture_listeners.cc',
259 'gesture_detection/gesture_listeners.h',
260 'gesture_detection/gesture_provider.cc',
261 'gesture_detection/gesture_provider.h',
262 'gesture_detection/gesture_provider_config_helper.cc',
263 'gesture_detection/gesture_provider_config_helper.h',
264 'gesture_detection/gesture_touch_uma_histogram.cc',
265 'gesture_detection/gesture_touch_uma_histogram.h',
266 'gesture_detection/motion_event.cc',
267 'gesture_detection/motion_event.h',
268 'gesture_detection/motion_event_buffer.cc',
269 'gesture_detection/motion_event_buffer.h',
270 'gesture_detection/motion_event_generic.cc',
271 'gesture_detection/motion_event_generic.h',
272 'gesture_detection/scale_gesture_detector.cc',
273 'gesture_detection/scale_gesture_detector.h',
274 'gesture_detection/scale_gesture_listeners.cc',
275 'gesture_detection/scale_gesture_listeners.h',
276 'gesture_detection/snap_scroll_controller.cc',
277 'gesture_detection/snap_scroll_controller.h',
278 'gesture_detection/touch_disposition_gesture_filter.cc',
279 'gesture_detection/touch_disposition_gesture_filter.h',
280 'gesture_detection/velocity_tracker.cc',
281 'gesture_detection/velocity_tracker.h',
282 'gesture_detection/velocity_tracker_state.cc',
283 'gesture_detection/velocity_tracker_state.h',
286 ['use_aura!=1 and OS!="android"', {
288 'gesture_detection/gesture_configuration_default.cc',
294 # GN version: //ui/events:test_support
295 'target_name': 'events_test_support',
296 'type': 'static_library',
298 '<(DEPTH)/base/base.gyp:base',
299 '<(DEPTH)/skia/skia.gyp:skia',
300 '../gfx/gfx.gyp:gfx_geometry',
304 'platform/events_platform.gyp:events_platform',
307 # Note: sources list duplicated in GN build.
308 'test/cocoa_test_event_utils.h',
309 'test/cocoa_test_event_utils.mm',
310 'test/event_generator.cc',
311 'test/event_generator.h',
312 'test/events_test_utils.cc',
313 'test/events_test_utils.h',
314 'test/events_test_utils_x11.cc',
315 'test/events_test_utils_x11.h',
316 'test/motion_event_test_utils.cc',
317 'test/motion_event_test_utils.h',
318 'test/platform_event_waiter.cc',
319 'test/platform_event_waiter.h',
320 'test/test_event_handler.cc',
321 'test/test_event_handler.h',
322 'test/test_event_processor.cc',
323 'test/test_event_processor.h',
324 'test/test_event_target.cc',
325 'test/test_event_target.h',
326 'test/test_event_targeter.cc',
327 'test/test_event_targeter.h',
331 # The cocoa files don't apply to iOS.
332 'sources/': [['exclude', 'cocoa']],
336 'devices/events_devices.gyp:events_devices',
342 # GN version: //ui/events:events_unittests
343 'target_name': 'events_unittests',
344 'type': '<(gtest_target_type)',
346 '<(DEPTH)/base/base.gyp:base',
347 '<(DEPTH)/base/base.gyp:run_all_unittests',
348 '<(DEPTH)/base/base.gyp:test_support_base',
349 '<(DEPTH)/skia/skia.gyp:skia',
350 '<(DEPTH)/testing/gtest.gyp:gtest',
351 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa',
352 '../gfx/gfx.gyp:gfx',
353 '../gfx/gfx.gyp:gfx_geometry',
354 '../gfx/gfx.gyp:gfx_test_support',
355 'devices/events_devices.gyp:events_devices',
356 'dom_keycode_converter',
359 'events_test_support',
362 'platform/events_platform.gyp:events_platform',
365 # Note: sources list duplicated in GN build.
366 'android/scroller_unittest.cc',
367 'cocoa/events_mac_unittest.mm',
368 'devices/x11/device_data_manager_x11_unittest.cc',
369 'event_dispatcher_unittest.cc',
370 'event_processor_unittest.cc',
371 'event_rewriter_unittest.cc',
373 'gesture_detection/bitset_32_unittest.cc',
374 'gesture_detection/filtered_gesture_provider_unittest.cc',
375 'gesture_detection/gesture_event_data_packet_unittest.cc',
376 'gesture_detection/gesture_provider_unittest.cc',
377 'gesture_detection/motion_event_buffer_unittest.cc',
378 'gesture_detection/motion_event_generic_unittest.cc',
379 'gesture_detection/snap_scroll_controller_unittest.cc',
380 'gesture_detection/touch_disposition_gesture_filter_unittest.cc',
381 'gesture_detection/velocity_tracker_unittest.cc',
382 'gestures/blink/web_gesture_curve_impl_unittest.cc',
383 'gestures/fling_curve_unittest.cc',
384 'gestures/gesture_provider_aura_unittest.cc',
385 'gestures/motion_event_aura_unittest.cc',
386 'keycodes/dom/keycode_converter_unittest.cc',
387 'keycodes/keyboard_code_conversion_unittest.cc',
388 'latency_info_unittest.cc',
389 'platform/platform_event_source_unittest.cc',
390 'x/events_x_unittest.cc',
393 '../../testing/gmock/include',
398 '../../build/linux/system.gyp:x11',
399 '../gfx/x/gfx_x11.gyp:gfx_x11',
404 'ozone/chromeos/cursor_controller_unittest.cc',
405 'ozone/evdev/event_converter_evdev_impl_unittest.cc',
406 'ozone/evdev/event_converter_test_util.cc',
407 'ozone/evdev/event_device_info_unittest.cc',
408 'ozone/evdev/event_device_test_util.cc',
409 'ozone/evdev/input_injector_evdev_unittest.cc',
410 'ozone/evdev/tablet_event_converter_evdev_unittest.cc',
411 'ozone/evdev/touch_event_converter_evdev_unittest.cc',
412 'ozone/evdev/touch_noise/touch_noise_finder_unittest.cc',
415 'ozone/events_ozone.gyp:events_ozone',
416 'ozone/events_ozone.gyp:events_ozone_evdev',
417 'ozone/events_ozone.gyp:events_ozone_layout',
420 ['use_xkbcommon==1', {
422 'ozone/layout/xkb/xkb_keyboard_layout_engine_unittest.cc',
427 'gestures/gesture_provider_aura_unittest.cc',
428 'gestures/motion_event_aura_unittest.cc',
431 ['OS=="linux" and use_allocator!="none"', {
433 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
436 # Exclude tests that rely on event_utils.h for platforms that do not
437 # provide native cracking, i.e., platforms that use events_stub.cc.
438 ['OS!="win" and use_x11!=1 and use_ozone!=1', {
443 ['OS == "android"', {
445 '../../testing/android/native_test.gyp:native_test_native_code',
452 ['OS == "android"', {
455 'target_name': 'events_unittests_apk',
461 'test_suite_name': 'events_unittests',
463 'includes': [ '../../build/apk_test.gypi' ],
467 ['test_isolation_mode != "noop"', {
470 'target_name': 'events_unittests_run',
476 '../../build/isolate.gypi',
479 'events_unittests.isolate',
484 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',