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