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