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