[Telemetry] Reorganize key_mobile_sites pages and update their names
[chromium-blink-merge.git] / ui / views / views.gyp
blob01c2684bd03a12190b7d86e978666a356b9582b5
1 # Copyright (c) 2012 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.
5   'variables': {
6     'chromium_code': 1,
7     # Sources lists shared with GN build.
8     'views_sources': [
9       'accessibility/native_view_accessibility.cc',
10       'accessibility/native_view_accessibility.h',
11       'accessibility/native_view_accessibility_win.cc',
12       'accessibility/native_view_accessibility_win.h',
13       'accessible_pane_view.cc',
14       'accessible_pane_view.h',
15       'animation/bounds_animator.cc',
16       'animation/bounds_animator.h',
17       'animation/scroll_animator.cc',
18       'animation/scroll_animator.h',
19       'background.cc',
20       'background.h',
21       'border.cc',
22       'border.h',
23       'bubble/bubble_border.cc',
24       'bubble/bubble_border.h',
25       'bubble/bubble_delegate.cc',
26       'bubble/bubble_delegate.h',
27       'bubble/bubble_frame_view.cc',
28       'bubble/bubble_frame_view.h',
29       'button_drag_utils.cc',
30       'button_drag_utils.h',
31       'cocoa/bridged_content_view.h',
32       'cocoa/bridged_content_view.mm',
33       'cocoa/bridged_native_widget.h',
34       'cocoa/bridged_native_widget.mm',
35       'cocoa/views_nswindow_delegate.h',
36       'cocoa/views_nswindow_delegate.mm',
37       'color_chooser/color_chooser_listener.h',
38       'color_chooser/color_chooser_view.cc',
39       'color_chooser/color_chooser_view.h',
40       'color_constants.cc',
41       'color_constants.h',
42       'context_menu_controller.h',
43       'controls/button/blue_button.cc',
44       'controls/button/blue_button.h',
45       'controls/button/button.cc',
46       'controls/button/button.h',
47       'controls/button/checkbox.cc',
48       'controls/button/checkbox.h',
49       'controls/button/custom_button.cc',
50       'controls/button/custom_button.h',
51       'controls/button/image_button.cc',
52       'controls/button/image_button.h',
53       'controls/button/label_button.cc',
54       'controls/button/label_button.h',
55       'controls/button/label_button_border.cc',
56       'controls/button/label_button_border.h',
57       'controls/button/menu_button.cc',
58       'controls/button/menu_button.h',
59       'controls/button/menu_button_listener.h',
60       'controls/button/radio_button.cc',
61       'controls/button/radio_button.h',
62       'controls/combobox/combobox.cc',
63       'controls/combobox/combobox.h',
64       'controls/combobox/combobox_listener.h',
65       'controls/focusable_border.cc',
66       'controls/focusable_border.h',
67       'controls/glow_hover_controller.cc',
68       'controls/glow_hover_controller.h',
69       'controls/image_view.cc',
70       'controls/image_view.h',
71       'controls/label.cc',
72       'controls/label.h',
73       'controls/link.cc',
74       'controls/link.h',
75       'controls/link_listener.h',
76       'controls/menu/display_change_listener_aura.cc',
77       'controls/menu/display_change_listener_mac.cc',
78       'controls/menu/menu.cc',
79       'controls/menu/menu.h',
80       'controls/menu/menu_config.cc',
81       'controls/menu/menu_config.h',
82       'controls/menu/menu_config_aura.cc',
83       'controls/menu/menu_config_mac.cc',
84       'controls/menu/menu_config_win.cc',
85       'controls/menu/menu_controller.cc',
86       'controls/menu/menu_controller.h',
87       'controls/menu/menu_controller_delegate.h',
88       'controls/menu/menu_event_dispatcher_linux.cc',
89       'controls/menu/menu_event_dispatcher_linux.h',
90       'controls/menu/menu_delegate.cc',
91       'controls/menu/menu_delegate.h',
92       'controls/menu/menu_message_pump_dispatcher_win.cc',
93       'controls/menu/menu_message_pump_dispatcher_win.h',
94       'controls/menu/menu_message_loop.h',
95       'controls/menu/menu_message_loop_aura.cc',
96       'controls/menu/menu_message_loop_aura.h',
97       'controls/menu/menu_message_loop_mac.cc',
98       'controls/menu/menu_message_loop_mac.h',
99       'controls/menu/menu_host.cc',
100       'controls/menu/menu_host.h',
101       'controls/menu/menu_host_root_view.cc',
102       'controls/menu/menu_host_root_view.h',
103       'controls/menu/menu_insertion_delegate_win.h',
104       'controls/menu/menu_item_view.cc',
105       'controls/menu/menu_item_view.h',
106       'controls/menu/menu_listener.cc',
107       'controls/menu/menu_listener.h',
108       'controls/menu/menu_model_adapter.cc',
109       'controls/menu/menu_model_adapter.h',
110       'controls/menu/menu_runner.cc',
111       'controls/menu/menu_runner.h',
112       'controls/menu/menu_runner_handler.h',
113       'controls/menu/menu_runner_impl.cc',
114       'controls/menu/menu_runner_impl.h',
115       'controls/menu/menu_runner_impl_adapter.cc',
116       'controls/menu/menu_runner_impl_adapter.h',
117       'controls/menu/menu_runner_impl_cocoa.h',
118       'controls/menu/menu_runner_impl_cocoa.mm',
119       'controls/menu/menu_runner_impl_interface.h',
120       'controls/menu/menu_scroll_view_container.cc',
121       'controls/menu/menu_scroll_view_container.h',
122       'controls/menu/menu_separator.h',
123       'controls/menu/menu_separator_views.cc',
124       'controls/menu/menu_separator_win.cc',
125       'controls/menu/menu_types.h',
126       'controls/menu/native_menu_win.cc',
127       'controls/menu/native_menu_win.h',
128       'controls/menu/menu_image_util.cc',
129       'controls/menu/menu_image_util.h',
130       'controls/menu/submenu_view.cc',
131       'controls/menu/submenu_view.h',
132       'controls/message_box_view.cc',
133       'controls/message_box_view.h',
134       'controls/native/native_view_host.cc',
135       'controls/native/native_view_host.h',
136       'controls/native/native_view_host_aura.cc',
137       'controls/native/native_view_host_aura.h',
138       'controls/native/native_view_host_mac.h',
139       'controls/native/native_view_host_mac.mm',
140       'controls/prefix_delegate.h',
141       'controls/prefix_selector.cc',
142       'controls/prefix_selector.h',
143       'controls/progress_bar.cc',
144       'controls/progress_bar.h',
145       'controls/resize_area.cc',
146       'controls/resize_area.h',
147       'controls/resize_area_delegate.h',
148       'controls/scroll_view.cc',
149       'controls/scroll_view.h',
150       'controls/scrollbar/base_scroll_bar.cc',
151       'controls/scrollbar/base_scroll_bar.h',
152       'controls/scrollbar/base_scroll_bar_button.cc',
153       'controls/scrollbar/base_scroll_bar_button.h',
154       'controls/scrollbar/base_scroll_bar_thumb.cc',
155       'controls/scrollbar/base_scroll_bar_thumb.h',
156       'controls/scrollbar/kennedy_scroll_bar.cc',
157       'controls/scrollbar/kennedy_scroll_bar.h',
158       'controls/scrollbar/native_scroll_bar_views.cc',
159       'controls/scrollbar/native_scroll_bar_views.h',
160       'controls/scrollbar/native_scroll_bar_wrapper.h',
161       'controls/scrollbar/native_scroll_bar.cc',
162       'controls/scrollbar/native_scroll_bar.h',
163       'controls/scrollbar/overlay_scroll_bar.cc',
164       'controls/scrollbar/overlay_scroll_bar.h',
165       'controls/scrollbar/scroll_bar.cc',
166       'controls/scrollbar/scroll_bar.h',
167       'controls/separator.cc',
168       'controls/separator.h',
169       'controls/single_split_view.cc',
170       'controls/single_split_view.h',
171       'controls/single_split_view_listener.h',
172       'controls/slide_out_view.cc',
173       'controls/slide_out_view.h',
174       'controls/slider.cc',
175       'controls/slider.h',
176       'controls/styled_label.cc',
177       'controls/styled_label.h',
178       'controls/styled_label_listener.h',
179       'controls/tabbed_pane/tabbed_pane.cc',
180       'controls/tabbed_pane/tabbed_pane.h',
181       'controls/tabbed_pane/tabbed_pane_listener.h',
182       'controls/table/table_header.cc',
183       'controls/table/table_header.h',
184       'controls/table/table_utils.cc',
185       'controls/table/table_utils.h',
186       'controls/table/table_view.cc',
187       'controls/table/table_view.h',
188       'controls/table/table_view_observer.h',
189       'controls/table/table_view_row_background_painter.h',
190       'controls/textfield/textfield.cc',
191       'controls/textfield/textfield.h',
192       'controls/textfield/textfield_controller.cc',
193       'controls/textfield/textfield_controller.h',
194       'controls/textfield/textfield_model.cc',
195       'controls/textfield/textfield_model.h',
196       'controls/throbber.cc',
197       'controls/throbber.h',
198       'controls/tree/tree_view.cc',
199       'controls/tree/tree_view.h',
200       'controls/tree/tree_view_controller.cc',
201       'controls/tree/tree_view_controller.h',
202       'cull_set.cc',
203       'cull_set.h',
204       'debug_utils.cc',
205       'debug_utils.h',
206       'drag_controller.h',
207       'drag_utils.cc',
208       'drag_utils.h',
209       'drag_utils_aura.cc',
210       'drag_utils_mac.mm',
211       'event_monitor.h',
212       'event_monitor_aura.cc',
213       'event_monitor_aura.h',
214       'event_monitor_mac.h',
215       'event_monitor_mac.mm',
216       'focus/external_focus_tracker.cc',
217       'focus/external_focus_tracker.h',
218       'focus/focus_manager.cc',
219       'focus/focus_manager.h',
220       'focus/focus_manager_delegate.h',
221       'focus/focus_manager_factory.cc',
222       'focus/focus_manager_factory.h',
223       'focus/focus_search.cc',
224       'focus/focus_search.h',
225       'focus/view_storage.cc',
226       'focus/view_storage.h',
227       'focus/widget_focus_manager.cc',
228       'focus/widget_focus_manager.h',
229       'ime/input_method.h',
230       'ime/input_method_base.cc',
231       'ime/input_method_base.h',
232       'ime/input_method_bridge.cc',
233       'ime/input_method_bridge.h',
234       'ime/input_method_delegate.h',
235       'ime/mock_input_method.cc',
236       'ime/mock_input_method.h',
237       'ime/null_input_method.cc',
238       'ime/null_input_method.h',
239       'layout/box_layout.cc',
240       'layout/box_layout.h',
241       'layout/fill_layout.cc',
242       'layout/fill_layout.h',
243       'layout/grid_layout.cc',
244       'layout/grid_layout.h',
245       'layout/layout_constants.h',
246       'layout/layout_manager.cc',
247       'layout/layout_manager.h',
248       'linux_ui/linux_ui.h',
249       'linux_ui/linux_ui.cc',
250       'linux_ui/status_icon_linux.h',
251       'linux_ui/status_icon_linux.cc',
252       'linux_ui/window_button_order_observer.h',
253       'linux_ui/window_button_order_provider.cc',
254       'masked_targeter_delegate.cc',
255       'masked_targeter_delegate.h',
256       'metrics.cc',
257       'metrics.h',
258       'metrics_aura.cc',
259       'metrics_mac.cc',
260       'mouse_constants.h',
261       'mouse_watcher.h',
262       'mouse_watcher.cc',
263       'mouse_watcher_view_host.cc',
264       'mouse_watcher_view_host.h',
265       'native_cursor.h',
266       'native_cursor_aura.cc',
267       'native_cursor_mac.mm',
268       'native_theme_delegate.h',
269       'painter.cc',
270       'painter.h',
271       'rect_based_targeting_utils.cc',
272       'rect_based_targeting_utils.h',
273       'repeat_controller.cc',
274       'repeat_controller.h',
275       'round_rect_painter.cc',
276       'round_rect_painter.h',
277       'shadow_border.cc',
278       'shadow_border.h',
279       'view.cc',
280       'view.h',
281       'view_constants.cc',
282       'view_constants.h',
283       'view_constants_aura.cc',
284       'view_constants_aura.h',
285       'view_model.cc',
286       'view_model.h',
287       'view_model_utils.cc',
288       'view_model_utils.h',
289       'view_targeter.cc',
290       'view_targeter.h',
291       'view_targeter_delegate.cc',
292       'view_targeter_delegate.h',
293       'views_switches.cc',
294       'views_switches.h',
295       'views_delegate.cc',
296       'views_delegate.h',
297       'views_touch_selection_controller_factory.h',
298       'views_touch_selection_controller_factory_aura.cc',
299       'views_touch_selection_controller_factory_mac.cc',
300       'widget/drop_helper.cc',
301       'widget/drop_helper.h',
302       'widget/root_view.cc',
303       'widget/root_view.h',
304       'widget/root_view_targeter.cc',
305       'widget/root_view_targeter.h',
306       'widget/monitor_win.cc',
307       'widget/monitor_win.h',
308       'widget/native_widget.h',
309       'widget/native_widget_aura.cc',
310       'widget/native_widget_aura.h',
311       'widget/native_widget_delegate.h',
312       'widget/native_widget_mac.h',
313       'widget/native_widget_mac.mm',
314       'widget/native_widget_private.h',
315       'widget/tooltip_manager_aura.cc',
316       'widget/tooltip_manager_aura.h',
317       'widget/tooltip_manager.cc',
318       'widget/tooltip_manager.h',
319       'widget/widget.cc',
320       'widget/widget.h',
321       'widget/widget_aura_utils.cc',
322       'widget/widget_aura_utils.h',
323       'widget/widget_delegate.cc',
324       'widget/widget_delegate.h',
325       'widget/widget_deletion_observer.cc',
326       'widget/widget_deletion_observer.h',
327       'widget/widget_observer.h',
328       'widget/widget_removals_observer.h',
329       'window/client_view.cc',
330       'window/client_view.h',
331       'window/custom_frame_view.cc',
332       'window/custom_frame_view.h',
333       'window/dialog_client_view.cc',
334       'window/dialog_client_view.h',
335       'window/dialog_delegate.cc',
336       'window/dialog_delegate.h',
337       'window/frame_background.cc',
338       'window/frame_background.h',
339       'window/frame_buttons.h',
340       'window/native_frame_view.cc',
341       'window/native_frame_view.h',
342       'window/non_client_view.cc',
343       'window/non_client_view.h',
344       'window/window_button_order_provider.cc',
345       'window/window_button_order_provider.h',
346       'window/window_resources.h',
347       'window/window_shape.cc',
348       'window/window_shape.h',
349     ],
350     'views_win_sources': [
351       'controls/menu/menu_wrapper.h',
352       'controls/menu/menu_2.cc',
353       'controls/menu/menu_2.h',
354       'win/fullscreen_handler.cc',
355       'win/fullscreen_handler.h',
356       'win/hwnd_message_handler.cc',
357       'win/hwnd_message_handler.h',
358       'win/hwnd_message_handler_delegate.h',
359       'win/hwnd_util.h',
360       'win/hwnd_util_aurawin.cc',
361       'win/scoped_fullscreen_visibility.cc',
362       'win/scoped_fullscreen_visibility.h',
363       'widget/widget_hwnd_utils.cc',
364       'widget/widget_hwnd_utils.h',
365     ],
366     'views_aura_sources': [
367       'accessibility/ax_aura_obj_cache.cc',
368       'accessibility/ax_aura_obj_cache.h',
369       'accessibility/ax_view_obj_wrapper.cc',
370       'accessibility/ax_view_obj_wrapper.h',
371       'accessibility/ax_widget_obj_wrapper.cc',
372       'accessibility/ax_widget_obj_wrapper.h',
373       'accessibility/ax_window_obj_wrapper.cc',
374       'accessibility/ax_window_obj_wrapper.h',
375       'bubble/bubble_window_targeter.cc',
376       'bubble/bubble_window_targeter.h',
377       'bubble/tray_bubble_view.cc',
378       'bubble/tray_bubble_view.h',
379       'corewm/cursor_height_provider_win.cc',
380       'corewm/cursor_height_provider_win.h',
381       'corewm/tooltip.h',
382       'corewm/tooltip_aura.cc',
383       'corewm/tooltip_aura.h',
384       'corewm/tooltip_controller.cc',
385       'corewm/tooltip_controller.h',
386       'corewm/tooltip_win.cc',
387       'corewm/tooltip_win.h',
388       'touchui/touch_editing_menu.cc',
389       'touchui/touch_editing_menu.h',
390       'touchui/touch_selection_controller_impl.cc',
391       'touchui/touch_selection_controller_impl.h',
392       'widget/window_reorderer.cc',
393       'widget/window_reorderer.h',
394     ],
395     'views_desktop_aura_sources': [
396       'widget/desktop_aura/desktop_capture_client.cc',
397       'widget/desktop_aura/desktop_capture_client.h',
398       'widget/desktop_aura/desktop_cursor_loader_updater.h',
399       'widget/desktop_aura/desktop_cursor_loader_updater_auralinux.cc',
400       'widget/desktop_aura/desktop_cursor_loader_updater_auralinux.h',
401       'widget/desktop_aura/desktop_dispatcher_client.cc',
402       'widget/desktop_aura/desktop_dispatcher_client.h',
403       'widget/desktop_aura/desktop_drop_target_win.cc',
404       'widget/desktop_aura/desktop_drop_target_win.h',
405       'widget/desktop_aura/desktop_event_client.cc',
406       'widget/desktop_aura/desktop_event_client.h',
407       'widget/desktop_aura/desktop_focus_rules.cc',
408       'widget/desktop_aura/desktop_focus_rules.h',
409       'widget/desktop_aura/desktop_native_cursor_manager.cc',
410       'widget/desktop_aura/desktop_native_cursor_manager.h',
411       'widget/desktop_aura/desktop_native_widget_aura.cc',
412       'widget/desktop_aura/desktop_native_widget_aura.h',
413       'widget/desktop_aura/desktop_window_tree_host.h',
414       'widget/desktop_aura/desktop_screen.h',
415       'widget/desktop_aura/desktop_screen_position_client.cc',
416       'widget/desktop_aura/desktop_screen_position_client.h',
417     ],
418     'views_desktop_aura_x11_sources': [
419       'widget/desktop_aura/desktop_drag_drop_client_aurax11.cc',
420       'widget/desktop_aura/desktop_drag_drop_client_aurax11.h',
421       'widget/desktop_aura/desktop_window_tree_host_x11.cc',
422       'widget/desktop_aura/desktop_window_tree_host_x11.h',
423       'widget/desktop_aura/desktop_screen_x11.cc',
424       'widget/desktop_aura/desktop_screen_x11.h',
425       'widget/desktop_aura/x11_desktop_handler.cc',
426       'widget/desktop_aura/x11_desktop_handler.h',
427       'widget/desktop_aura/x11_desktop_window_move_client.cc',
428       'widget/desktop_aura/x11_desktop_window_move_client.h',
429       'widget/desktop_aura/x11_move_loop.h',
430       'widget/desktop_aura/x11_move_loop_delegate.h',
431       'widget/desktop_aura/x11_topmost_window_finder.cc',
432       'widget/desktop_aura/x11_topmost_window_finder.h',
433       'widget/desktop_aura/x11_whole_screen_move_loop.cc',
434       'widget/desktop_aura/x11_whole_screen_move_loop.h',
435       'widget/desktop_aura/x11_window_event_filter.cc',
436       'widget/desktop_aura/x11_window_event_filter.h',
437     ],
438     'views_desktop_aura_win_sources': [
439       'widget/desktop_aura/desktop_cursor_loader_updater_aurawin.cc',
440       'widget/desktop_aura/desktop_drag_drop_client_win.cc',
441       'widget/desktop_aura/desktop_drag_drop_client_win.h',
442       'widget/desktop_aura/desktop_screen_win.cc',
443       'widget/desktop_aura/desktop_screen_win.h',
444       'widget/desktop_aura/desktop_window_tree_host_win.cc',
445       'widget/desktop_aura/desktop_window_tree_host_win.h',
446     ],
447     'views_desktop_aura_ozone_sources': [
448       'widget/desktop_aura/desktop_factory_ozone.cc',
449       'widget/desktop_aura/desktop_factory_ozone.h',
450       'widget/desktop_aura/desktop_screen_ozone.cc',
451       'widget/desktop_aura/desktop_window_tree_host_ozone.cc',
452     ],
453     'views_test_support_sources': [
454       'controls/textfield/textfield_test_api.cc',
455       'controls/textfield/textfield_test_api.h',
456       'test/capture_tracking_view.cc',
457       'test/capture_tracking_view.h',
458       'test/desktop_test_views_delegate.h',
459       'test/desktop_test_views_delegate_aura.cc',
460       'test/desktop_test_views_delegate_mac.mm',
461       'test/event_generator_delegate_mac.h',
462       'test/event_generator_delegate_mac.mm',
463       'test/focus_manager_test.h',
464       'test/focus_manager_test.cc',
465       'test/menu_runner_test_api.cc',
466       'test/menu_runner_test_api.h',
467       'test/slider_test_api.cc',
468       'test/slider_test_api.h',
469       'test/test_views.cc',
470       'test/test_views.h',
471       'test/test_views_delegate.h',
472       'test/test_views_delegate_aura.cc',
473       'test/test_views_delegate_mac.mm',
474       'test/test_widget_observer.cc',
475       'test/test_widget_observer.h',
476       'test/ui_controls_factory_desktop_aurax11.cc',
477       'test/ui_controls_factory_desktop_aurax11.h',
478       'test/views_test_base.cc',
479       'test/views_test_base.h',
480       'test/views_test_helper.cc',
481       'test/views_test_helper.h',
482       'test/views_test_helper_aura.cc',
483       'test/views_test_helper_aura.h',
484       'test/views_test_helper_mac.h',
485       'test/views_test_helper_mac.mm',
486       'test/widget_test.cc',
487       'test/widget_test.h',
488       'test/widget_test_aura.cc',
489       'test/widget_test_mac.mm',
490       'test/x11_property_change_waiter.cc',
491       'test/x11_property_change_waiter.h',
492     ],
493     'views_test_support_aura_sources': [
494       'corewm/tooltip_controller_test_helper.cc',
495       'corewm/tooltip_controller_test_helper.h',
496     ],
497     'views_unittests_sources': [
498       'accessibility/native_view_accessibility_unittest.cc',
499       'accessibility/native_view_accessibility_win_unittest.cc',
500       'accessible_pane_view_unittest.cc',
501       'animation/bounds_animator_unittest.cc',
502       'bubble/bubble_border_unittest.cc',
503       'bubble/bubble_delegate_unittest.cc',
504       'bubble/bubble_frame_view_unittest.cc',
505       'bubble/bubble_window_targeter_unittest.cc',
506       'cocoa/bridged_native_widget_unittest.mm',
507       'controls/button/blue_button_unittest.cc',
508       'controls/button/custom_button_unittest.cc',
509       'controls/button/image_button_unittest.cc',
510       'controls/button/label_button_unittest.cc',
511       'controls/button/menu_button_unittest.cc',
512       'controls/combobox/combobox_unittest.cc',
513       'controls/label_unittest.cc',
514       'controls/menu/menu_controller_unittest.cc',
515       'controls/menu/menu_item_view_unittest.cc',
516       'controls/menu/menu_model_adapter_unittest.cc',
517       'controls/menu/menu_runner_cocoa_unittest.mm',
518       'controls/native/native_view_host_aura_unittest.cc',
519       'controls/native/native_view_host_mac_unittest.mm',
520       'controls/native/native_view_host_test_base.h',
521       'controls/native/native_view_host_test_base.cc',
522       'controls/native/native_view_host_unittest.cc',
523       'controls/prefix_selector_unittest.cc',
524       'controls/progress_bar_unittest.cc',
525       'controls/scrollbar/scrollbar_unittest.cc',
526       'controls/scroll_view_unittest.cc',
527       'controls/single_split_view_unittest.cc',
528       'controls/slider_unittest.cc',
529       'controls/styled_label_unittest.cc',
530       'controls/tabbed_pane/tabbed_pane_unittest.cc',
531       'controls/table/table_utils_unittest.cc',
532       'controls/table/table_view_unittest.cc',
533       'controls/table/test_table_model.cc',
534       'controls/table/test_table_model.h',
535       'controls/textfield/textfield_unittest.cc',
536       'controls/textfield/textfield_model_unittest.cc',
537       'controls/tree/tree_view_unittest.cc',
538       'event_monitor_mac_unittest.mm',
539       'focus/focus_manager_unittest.cc',
540       'focus/focus_traversal_unittest.cc',
541       'ime/input_method_bridge_unittest.cc',
542       'layout/box_layout_unittest.cc',
543       'layout/grid_layout_unittest.cc',
544       'rect_based_targeting_utils_unittest.cc',
545       'run_all_unittests.cc',
546       'view_model_unittest.cc',
547       'view_model_utils_unittest.cc',
548       'view_targeter_unittest.cc',
549       'view_unittest.cc',
550       'view_unittest_aura.cc',
551       'widget/native_widget_aura_unittest.cc',
552       'widget/native_widget_unittest.cc',
553       'widget/root_view_unittest.cc',
554       'widget/widget_unittest.cc',
555       'widget/window_reorderer_unittest.cc',
556       'window/custom_frame_view_unittest.cc',
557       'window/dialog_client_view_unittest.cc',
558       'window/dialog_delegate_unittest.cc',
559     ],
560     'views_unittests_aura_sources': [
561       'corewm/capture_controller_unittest.cc',
562       'corewm/tooltip_aura_unittest.cc',
563       'corewm/tooltip_controller_unittest.cc',
564       'touchui/touch_selection_controller_impl_unittest.cc',
565     ],
566     'views_unittests_desktop_aura_sources': [
567       'widget/desktop_aura/desktop_drag_drop_client_aurax11_unittest.cc',
568       'widget/desktop_aura/desktop_focus_rules_unittest.cc',
569       'widget/desktop_aura/desktop_native_widget_aura_unittest.cc',
570       'widget/desktop_aura/desktop_screen_x11_unittest.cc',
571       'widget/desktop_aura/desktop_screen_position_client_unittest.cc',
572       'widget/desktop_aura/desktop_window_tree_host_x11_unittest.cc',
573     ],
574   },
575   'targets': [
576     {
577       # GN version: //ui/views
578       'target_name': 'views',
579       'type': '<(component)',
580       'dependencies': [
581         '../../base/base.gyp:base',
582         '../../base/base.gyp:base_i18n',
583         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
584         '../../skia/skia.gyp:skia',
585         '../../third_party/icu/icu.gyp:icui18n',
586         '../../third_party/icu/icu.gyp:icuuc',
587         '../../url/url.gyp:url_lib',
588         '../accessibility/accessibility.gyp:accessibility',
589         '../accessibility/accessibility.gyp:ax_gen',
590         '../base/ui_base.gyp:ui_base',
591         '../compositor/compositor.gyp:compositor',
592         '../events/events.gyp:events',
593         '../events/events.gyp:events_base',
594         '../events/platform/events_platform.gyp:events_platform',
595         '../gfx/gfx.gyp:gfx',
596         '../gfx/gfx.gyp:gfx_geometry',
597         '../native_theme/native_theme.gyp:native_theme',
598         '../resources/ui_resources.gyp:ui_resources',
599         '../strings/ui_strings.gyp:ui_strings',
600       ],
601       'export_dependent_settings': [
602         '../accessibility/accessibility.gyp:ax_gen',
603       ],
604       'defines': [
605         'VIEWS_IMPLEMENTATION',
606       ],
607       'sources': [
608         '<@(views_sources)',
609       ],
610       'conditions': [
611         ['use_ash==0', {
612           'sources!': [
613             'bubble/tray_bubble_view.cc',
614             'bubble/tray_bubble_view.h',
615           ],
616         }],
617         ['chromeos==0 and use_x11==1', {
618           'dependencies': [
619             '../display/display.gyp:display_util',
620           ],
621         }],
622         ['OS=="linux" and chromeos==0', {
623           'dependencies': [
624             '../shell_dialogs/shell_dialogs.gyp:shell_dialogs',
625           ],
626           'sources!': [
627             'window/window_button_order_provider.cc',
628           ],
629         }, { # OS=="linux" and chromeos==0
630           'sources/': [
631             ['exclude', 'linux_ui'],
632           ],
633         }],
634         ['OS=="win"', {
635           'sources': [
636             '<@(views_win_sources)',
637           ],
638           'dependencies': [
639             # For accessibility
640             '../../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
641           ],
642           'include_dirs': [
643             '../../third_party/wtl/include',
644           ],
645           'link_settings': {
646             'libraries': [
647               '-limm32.lib',
648               '-loleacc.lib',
649             ],
650             'msvs_settings': {
651               'VCLinkerTool': {
652                 'DelayLoadDLLs': [
653                   'user32.dll',
654                 ],
655               },
656             },
657           },
658           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
659           'msvs_disabled_warnings': [ 4267, ],
660         }],
661         ['use_ozone==1', {
662           'dependencies': [
663             '../ozone/ozone.gyp:ozone',
664           ],
665         }],
666         ['use_x11==1', {
667           'dependencies': [
668             '../../build/linux/system.gyp:x11',
669             '../../build/linux/system.gyp:xrandr',
670             '../events/devices/events_devices.gyp:events_devices',
671             '../events/platform/x11/x11_events_platform.gyp:x11_events_platform',
672           ],
673         }],
674         ['use_aura==1', {
675           'sources': [
676             '<@(views_aura_sources)',
677           ],
678           'dependencies': [
679             '../aura/aura.gyp:aura',
680             '../wm/wm.gyp:wm',
681           ],
682         }],
683         ['use_aura and chromeos == 0', {
684           'sources': [ '<@(views_desktop_aura_sources)' ],
685           'conditions': [
686             ['use_x11 == 1', {
687               'sources': [ '<@(views_desktop_aura_x11_sources)' ],
688             }],
689             ['OS == "win"', {
690               'sources': [ '<@(views_desktop_aura_win_sources)' ],
691             }],
692             ['use_ozone==1', {
693               'sources': [ '<@(views_desktop_aura_ozone_sources)' ],
694             }],
695           ],
696         }],
697       ],
698     }, # target_name: views
699     {
700       # GN version: //ui/views:test_support
701       'target_name': 'views_test_support',
702       'type': 'static_library',
703       'dependencies': [
704         '../../base/base.gyp:base',
705         '../../ipc/ipc.gyp:test_support_ipc',
706         '../../skia/skia.gyp:skia',
707         '../../testing/gtest.gyp:gtest',
708         '../base/ui_base.gyp:ui_base',
709         '../compositor/compositor.gyp:compositor',
710         '../compositor/compositor.gyp:compositor_test_support',
711         '../events/events.gyp:events',
712         '../events/events.gyp:events_test_support',
713         '../events/platform/events_platform.gyp:events_platform',
714         '../gfx/gfx.gyp:gfx',
715         '../gfx/gfx.gyp:gfx_geometry',
716         'views',
717       ],
718       'include_dirs': [
719         '..',
720       ],
721       'sources': [
722         '<@(views_test_support_sources)',
723       ],
724       'conditions': [
725         ['chromeos==1', {
726           'sources!': [
727             'test/ui_controls_factory_desktop_aurax11.cc',
728             'test/ui_controls_factory_desktop_aurax11.h',
729           ],
730         }],
731         ['use_aura==1', {
732           'sources': [ '<@(views_test_support_aura_sources)' ],
733           'dependencies': [
734             '../aura/aura.gyp:aura',
735             '../aura/aura.gyp:aura_test_support',
736             '../wm/wm.gyp:wm',
737           ],
738         }],
739       ],
740     },  # target_name: views_test_support
741     {
742       # GN version: //ui/views:views_unittests
743       'target_name': 'views_unittests',
744       'type': 'executable',
745       'dependencies': [
746         '../../base/base.gyp:base',
747         '../../base/base.gyp:base_i18n',
748         '../../base/base.gyp:test_support_base',
749         '../../skia/skia.gyp:skia',
750         '../../testing/gtest.gyp:gtest',
751         '../../third_party/icu/icu.gyp:icui18n',
752         '../../third_party/icu/icu.gyp:icuuc',
753         '../../url/url.gyp:url_lib',
754         '../accessibility/accessibility.gyp:accessibility',
755         '../base/ui_base.gyp:ui_base',
756         '../base/ui_base.gyp:ui_base_test_support',
757         '../compositor/compositor.gyp:compositor',
758         '../events/events.gyp:events',
759         '../events/events.gyp:events_base',
760         '../events/events.gyp:events_test_support',
761         '../gfx/gfx.gyp:gfx',
762         '../gfx/gfx.gyp:gfx_geometry',
763         '../resources/ui_resources.gyp:ui_resources',
764         '../resources/ui_resources.gyp:ui_test_pak',
765         '../strings/ui_strings.gyp:ui_strings',
766         'views',
767         'views_test_support',
768       ],
769       'include_dirs': [
770         '..',
771       ],
772       'sources': [
773         '<@(views_unittests_sources)',
774       ],
775       'conditions': [
776         ['chromeos==1', {
777           'sources!': [
778             'ime/input_method_bridge_unittest.cc',
779           ],
780         }],
781         ['OS=="win"', {
782           'dependencies': [
783             '../../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
784           ],
785           'link_settings': {
786             'libraries': [
787               '-limm32.lib',
788               '-loleacc.lib',
789               '-lcomctl32.lib',
790             ]
791           },
792           'include_dirs': [
793             '../third_party/wtl/include',
794           ],
795           'msvs_settings': {
796             'VCManifestTool': {
797               'AdditionalManifestFiles': [
798                 '$(ProjectDir)\\test\\views_unittest.manifest',
799               ],
800             },
801           },
802         }],
803         ['OS=="win" and win_use_allocator_shim==1', {
804           'dependencies': [
805             '../../base/allocator/allocator.gyp:allocator',
806           ],
807         }],
808         ['OS=="linux" and use_allocator!="none"', {
809            # See http://crbug.com/162998#c4 for why this is needed.
810           'dependencies': [
811             '../../base/allocator/allocator.gyp:allocator',
812           ],
813         }],
814         ['use_x11==1', {
815           'dependencies': [
816             '../../build/linux/system.gyp:x11',
817             '../../build/linux/system.gyp:xext',
818             '../events/devices/events_devices.gyp:events_devices',
819             '../events/platform/x11/x11_events_platform.gyp:x11_events_platform',
820           ],
821         }],
822         ['use_ozone==1', {
823           'sources!': [
824             'corewm/capture_controller_unittest.cc',
825           ],
826         }],
827         ['use_aura==1', {
828           'sources': [ '<@(views_unittests_aura_sources)' ],
829           'dependencies': [
830             '../aura/aura.gyp:aura',
831             '../aura/aura.gyp:aura_test_support',
832             '../wm/wm.gyp:wm',
833           ],
834           'conditions': [
835             ['chromeos == 0', {
836               'sources': [ '<@(views_unittests_desktop_aura_sources)' ],
837             }],
838           ]
839         }],
840         ['use_x11==1', {
841           'dependencies': [
842             '../events/platform/x11/x11_events_platform.gyp:x11_events_platform',
843           ],
844         }],
845         ['OS=="mac"', {
846           # views_unittests not yet compiling on Mac. http://crbug.com/378134
847           'sources!': [
848             'bubble/bubble_window_targeter_unittest.cc',
849             'controls/button/custom_button_unittest.cc',
850             'controls/native/native_view_host_unittest.cc',
851             'controls/menu/menu_controller_unittest.cc',
852             'ime/input_method_bridge_unittest.cc',
853             'focus/focus_manager_unittest.cc',
854             'widget/window_reorderer_unittest.cc',
855           ]
856         }],
857       ],
858     },  # target_name: views_unittests
859   ],  # targets
860   'conditions': [
861     ['OS=="mac"', {
862       'targets': [
863         {
864           # GN version: //ui/views:macviews_interactive_ui_tests
865           'target_name': 'macviews_interactive_ui_tests',
866           'type': 'executable',
867           'dependencies': [
868             '../../base/base.gyp:base',
869             '../../base/base.gyp:test_support_base',
870             '../../skia/skia.gyp:skia',
871             '../../testing/gtest.gyp:gtest',
872             '../compositor/compositor.gyp:compositor_test_support',
873             '../resources/ui_resources.gyp:ui_resources',
874             '../resources/ui_resources.gyp:ui_test_pak',
875             '../strings/ui_strings.gyp:ui_strings',
876             'views',
877             'views_test_support',
878           ],
879           'sources': [
880             'run_all_unittests.cc',
881             'widget/native_widget_mac_interactive_uitest.mm',
882           ],
883           'conditions': [
884             ['use_aura == 1', {
885               'dependencies': [
886                 '../aura/aura.gyp:aura',
887                 '../wm/wm.gyp:wm',
888               ],
889             }],
890           ],
891         },  # target_name: macviews_interactive_ui_tests
892       ],  # targets
893     }],
894   ],  # conditions