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