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

Side by Side Diff: ui/events/BUILD.gn

Issue 789363004: WindowManagerApp should recognize gestures (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: build fix Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 static_library("dom4_keycode_converter") { 7 static_library("dom4_keycode_converter") {
8 sources = [ 8 sources = [
9 "keycodes/dom4/keycode_converter.cc", 9 "keycodes/dom4/keycode_converter.cc",
10 "keycodes/dom4/keycode_converter.h", 10 "keycodes/dom4/keycode_converter.h",
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 "event_source.h", 104 "event_source.h",
105 "event_target.cc", 105 "event_target.cc",
106 "event_target.h", 106 "event_target.h",
107 "event_target_iterator.h", 107 "event_target_iterator.h",
108 "event_targeter.cc", 108 "event_targeter.cc",
109 "event_targeter.h", 109 "event_targeter.h",
110 "event_utils.cc", 110 "event_utils.cc",
111 "event_utils.h", 111 "event_utils.h",
112 "events_export.h", 112 "events_export.h",
113 "events_stub.cc", 113 "events_stub.cc",
114 "gestures/gesture_provider_aura.cc",
Elliot Glaysher 2015/01/14 00:27:41 While you're here, could you please rename this fi
abarth-chromium 2015/01/14 00:29:02 Sure thing.
115 "gestures/gesture_provider_aura.h",
116 "gestures/gesture_recognizer.h",
117 "gestures/gesture_recognizer_impl.cc",
118 "gestures/gesture_recognizer_impl.h",
114 "gestures/gesture_recognizer_impl_mac.cc", 119 "gestures/gesture_recognizer_impl_mac.cc",
115 "gestures/gesture_types.h", 120 "gestures/gesture_types.h",
121 "gestures/motion_event_aura.cc",
122 "gestures/motion_event_aura.h",
116 "win/events_win.cc", 123 "win/events_win.cc",
117 ] 124 ]
118 125
119 defines = [ "EVENTS_IMPLEMENTATION" ] 126 defines = [ "EVENTS_IMPLEMENTATION" ]
120 127
121 public_deps = [ 128 public_deps = [
122 ":events_base", 129 ":events_base",
123 ] 130 ]
124 deps = [ 131 deps = [
125 ":dom4_keycode_converter", 132 ":dom4_keycode_converter",
(...skipping 19 matching lines...) Expand all
145 "linux/text_edit_command_auralinux.h", 152 "linux/text_edit_command_auralinux.h",
146 "linux/text_edit_key_bindings_delegate_auralinux.cc", 153 "linux/text_edit_key_bindings_delegate_auralinux.cc",
147 "linux/text_edit_key_bindings_delegate_auralinux.h", 154 "linux/text_edit_key_bindings_delegate_auralinux.h",
148 ] 155 ]
149 } 156 }
150 157
151 if (use_ozone) { 158 if (use_ozone) {
152 sources += [ "ozone/events_ozone.cc" ] 159 sources += [ "ozone/events_ozone.cc" ]
153 } 160 }
154 161
155 if (use_aura) {
156 sources += [
157 "gestures/gesture_provider_aura.cc",
158 "gestures/gesture_provider_aura.h",
159 "gestures/motion_event_aura.cc",
160 "gestures/motion_event_aura.h",
161 "gestures/gesture_recognizer.h",
162 "gestures/gesture_recognizer_impl.cc",
163 "gestures/gesture_recognizer_impl.h",
164 ]
165 }
166
167 if (is_win || is_mac || use_x11 || use_ozone) { 162 if (is_win || is_mac || use_x11 || use_ozone) {
168 sources -= [ "events_stub.cc" ] 163 sources -= [ "events_stub.cc" ]
169 } 164 }
170 } 165 }
171 166
172 component("gesture_detection") { 167 component("gesture_detection") {
173 sources = [ 168 sources = [
174 "gesture_detection/bitset_32.h", 169 "gesture_detection/bitset_32.h",
175 "gesture_detection/filtered_gesture_provider.cc", 170 "gesture_detection/filtered_gesture_provider.cc",
176 "gesture_detection/filtered_gesture_provider.h", 171 "gesture_detection/filtered_gesture_provider.h",
(...skipping 22 matching lines...) Expand all
199 "gesture_detection/scale_gesture_listeners.cc", 194 "gesture_detection/scale_gesture_listeners.cc",
200 "gesture_detection/scale_gesture_listeners.h", 195 "gesture_detection/scale_gesture_listeners.h",
201 "gesture_detection/snap_scroll_controller.cc", 196 "gesture_detection/snap_scroll_controller.cc",
202 "gesture_detection/snap_scroll_controller.h", 197 "gesture_detection/snap_scroll_controller.h",
203 "gesture_detection/touch_disposition_gesture_filter.cc", 198 "gesture_detection/touch_disposition_gesture_filter.cc",
204 "gesture_detection/touch_disposition_gesture_filter.h", 199 "gesture_detection/touch_disposition_gesture_filter.h",
205 "gesture_detection/velocity_tracker_state.cc", 200 "gesture_detection/velocity_tracker_state.cc",
206 "gesture_detection/velocity_tracker_state.h", 201 "gesture_detection/velocity_tracker_state.h",
207 "gesture_detection/velocity_tracker.cc", 202 "gesture_detection/velocity_tracker.cc",
208 "gesture_detection/velocity_tracker.h", 203 "gesture_detection/velocity_tracker.h",
204 "gesture_detection/gesture_config_helper_aura.cc",
209 ] 205 ]
210 206
211 deps = [ 207 deps = [
212 ":events_base", 208 ":events_base",
213 "//base", 209 "//base",
214 "//ui/gfx", 210 "//ui/gfx",
215 "//ui/gfx/geometry", 211 "//ui/gfx/geometry",
216 ] 212 ]
217 213
218 defines = [ "GESTURE_DETECTION_IMPLEMENTATION" ] 214 defines = [ "GESTURE_DETECTION_IMPLEMENTATION" ]
219
220 if (is_android) {
221 sources += [ "gesture_detection/gesture_config_helper_android.cc" ]
222 } else if (use_aura) {
223 sources += [ "gesture_detection/gesture_config_helper_aura.cc" ]
224 } else {
225 sources += [ "gesture_detection/gesture_config_helper.cc" ]
226 }
227 } 215 }
228 216
229 source_set("test_support") { 217 source_set("test_support") {
230 sources = [ 218 sources = [
231 "test/cocoa_test_event_utils.h", 219 "test/cocoa_test_event_utils.h",
232 "test/cocoa_test_event_utils.mm", 220 "test/cocoa_test_event_utils.mm",
233 "test/event_generator.cc", 221 "test/event_generator.cc",
234 "test/event_generator.h", 222 "test/event_generator.h",
235 "test/events_test_utils.cc", 223 "test/events_test_utils.cc",
236 "test/events_test_utils.h", 224 "test/events_test_utils.h",
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 sources += [ 309 sources += [
322 "ozone/evdev/key_event_converter_evdev_unittest.cc", 310 "ozone/evdev/key_event_converter_evdev_unittest.cc",
323 "ozone/evdev/touch_event_converter_evdev_unittest.cc", 311 "ozone/evdev/touch_event_converter_evdev_unittest.cc",
324 ] 312 ]
325 } 313 }
326 314
327 if (use_aura) { 315 if (use_aura) {
328 sources += [ "gestures/gesture_provider_aura_unittest.cc" ] 316 sources += [ "gestures/gesture_provider_aura_unittest.cc" ]
329 } 317 }
330 } 318 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698