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