Upstream version 6.34.113.0
[platform/framework/web/crosswalk.git] / src / ui / views / views.gyp
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.
4 {
5   'variables': {
6     'chromium_code': 1,
7     'external_ozone_views_files': [],
8   },
9   'target_defaults': {
10     'conditions': [
11       ['use_aura==1', {
12         'sources/': [ ['exclude', '_win\\.(h|cc)$'] ],
13         'dependencies': [ '../aura/aura.gyp:aura', ],
14       }],
15       ['OS!="linux" or chromeos==1', {
16         'sources/': [ ['exclude', '_linux\\.(h|cc)$'] ],
17       }],
18     ],
19   },
20   'targets': [
21     {
22       'target_name': 'views',
23       'type': '<(component)',
24       'dependencies': [
25         '../../base/base.gyp:base',
26         '../../base/base.gyp:base_i18n',
27         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
28         '../../skia/skia.gyp:skia',
29         '../../third_party/icu/icu.gyp:icui18n',
30         '../../third_party/icu/icu.gyp:icuuc',
31         '../../url/url.gyp:url_lib',
32         '../base/strings/ui_strings.gyp:ui_strings',
33         '../compositor/compositor.gyp:compositor',
34         '../events/events.gyp:events',
35         '../events/events.gyp:events_base',
36         '../gfx/gfx.gyp:gfx',
37         '../gfx/gfx.gyp:gfx_geometry',
38         '../native_theme/native_theme.gyp:native_theme',
39         '../resources/ui_resources.gyp:ui_resources',
40         '../ui.gyp:ui',
41         '../wm/wm.gyp:wm_public',
42       ],
43       'defines': [
44         'VIEWS_IMPLEMENTATION',
45       ],
46       'sources': [
47         # All .cc, .h under views, except unittests
48         'accessibility/native_view_accessibility.cc',
49         'accessibility/native_view_accessibility.h',
50         'accessibility/native_view_accessibility_win.cc',
51         'accessibility/native_view_accessibility_win.h',
52         'accessible_pane_view.cc',
53         'accessible_pane_view.h',
54         'animation/bounds_animator.cc',
55         'animation/bounds_animator.h',
56         'animation/scroll_animator.cc',
57         'animation/scroll_animator.h',
58         'background.cc',
59         'background.h',
60         'border.cc',
61         'border.h',
62         'bubble/bubble_border.cc',
63         'bubble/bubble_border.h',
64         'bubble/bubble_delegate.cc',
65         'bubble/bubble_delegate.h',
66         'bubble/bubble_frame_view.cc',
67         'bubble/bubble_frame_view.h',
68         'bubble/bubble_window_targeter.cc',
69         'bubble/bubble_window_targeter.h',
70         'bubble/tray_bubble_view.cc',
71         'bubble/tray_bubble_view.h',
72         'button_drag_utils.cc',
73         'button_drag_utils.h',
74         'color_chooser/color_chooser_listener.h',
75         'color_chooser/color_chooser_view.cc',
76         'color_chooser/color_chooser_view.h',
77         'color_constants.cc',
78         'color_constants.h',
79         'context_menu_controller.h',
80         'controls/button/blue_button.cc',
81         'controls/button/blue_button.h',
82         'controls/button/button.cc',
83         'controls/button/button.h',
84         'controls/button/checkbox.cc',
85         'controls/button/checkbox.h',
86         'controls/button/custom_button.cc',
87         'controls/button/custom_button.h',
88         'controls/button/image_button.cc',
89         'controls/button/image_button.h',
90         'controls/button/label_button.cc',
91         'controls/button/label_button.h',
92         'controls/button/label_button_border.cc',
93         'controls/button/label_button_border.h',
94         'controls/button/menu_button.cc',
95         'controls/button/menu_button.h',
96         'controls/button/menu_button_listener.h',
97         'controls/button/radio_button.cc',
98         'controls/button/radio_button.h',
99         'controls/button/text_button.cc',
100         'controls/button/text_button.h',
101         'controls/combobox/combobox.cc',
102         'controls/combobox/combobox.h',
103         'controls/combobox/combobox_listener.h',
104         'controls/focusable_border.cc',
105         'controls/focusable_border.h',
106         'controls/glow_hover_controller.cc',
107         'controls/glow_hover_controller.h',
108         'controls/image_view.cc',
109         'controls/image_view.h',
110         'controls/label.cc',
111         'controls/label.h',
112         'controls/link.cc',
113         'controls/link.h',
114         'controls/link_listener.h',
115         'controls/menu/display_change_listener_aura.cc',
116         'controls/menu/menu.cc',
117         'controls/menu/menu.h',
118         'controls/menu/menu_2.cc',
119         'controls/menu/menu_2.h',
120         'controls/menu/menu_config.cc',
121         'controls/menu/menu_config.h',
122         'controls/menu/menu_config_views.cc',
123         'controls/menu/menu_config_win.cc',
124         'controls/menu/menu_controller.cc',
125         'controls/menu/menu_controller.h',
126         'controls/menu/menu_controller_aura.cc',
127         'controls/menu/menu_controller_delegate.h',
128         'controls/menu/menu_controller_win.cc',
129         'controls/menu/menu_delegate.cc',
130         'controls/menu/menu_delegate.h',
131         'controls/menu/menu_host.cc',
132         'controls/menu/menu_host.h',
133         'controls/menu/menu_host_root_view.cc',
134         'controls/menu/menu_host_root_view.h',
135         'controls/menu/menu_insertion_delegate_win.h',
136         'controls/menu/menu_item_view.cc',
137         'controls/menu/menu_item_view.h',
138         'controls/menu/menu_listener.cc',
139         'controls/menu/menu_listener.h',
140         'controls/menu/menu_model_adapter.cc',
141         'controls/menu/menu_model_adapter.h',
142         'controls/menu/menu_runner.cc',
143         'controls/menu/menu_runner.h',
144         'controls/menu/menu_runner_handler.h',
145         'controls/menu/menu_scroll_view_container.cc',
146         'controls/menu/menu_scroll_view_container.h',
147         'controls/menu/menu_separator.h',
148         'controls/menu/menu_separator_views.cc',
149         'controls/menu/menu_separator_win.cc',
150         'controls/menu/menu_win.cc',
151         'controls/menu/menu_win.h',
152         'controls/menu/menu_wrapper.h',
153         'controls/menu/native_menu_win.cc',
154         'controls/menu/native_menu_win.h',
155         'controls/menu/menu_image_util.cc',
156         'controls/menu/menu_image_util.h',
157         'controls/menu/submenu_view.cc',
158         'controls/menu/submenu_view.h',
159         'controls/message_box_view.cc',
160         'controls/message_box_view.h',
161         'controls/native/native_view_host.cc',
162         'controls/native/native_view_host.h',
163         'controls/native/native_view_host_aura.cc',
164         'controls/native/native_view_host_aura.h',
165         'controls/native/native_view_host_win.cc',
166         'controls/native/native_view_host_win.h',
167         'controls/prefix_delegate.h',
168         'controls/prefix_selector.cc',
169         'controls/prefix_selector.h',
170         'controls/progress_bar.cc',
171         'controls/progress_bar.h',
172         'controls/resize_area.cc',
173         'controls/resize_area.h',
174         'controls/resize_area_delegate.h',
175         'controls/scroll_view.cc',
176         'controls/scroll_view.h',
177         'controls/scrollbar/base_scroll_bar.cc',
178         'controls/scrollbar/base_scroll_bar.h',
179         'controls/scrollbar/base_scroll_bar_button.cc',
180         'controls/scrollbar/base_scroll_bar_button.h',
181         'controls/scrollbar/base_scroll_bar_thumb.cc',
182         'controls/scrollbar/base_scroll_bar_thumb.h',
183         'controls/scrollbar/bitmap_scroll_bar.cc',
184         'controls/scrollbar/bitmap_scroll_bar.h',
185         'controls/scrollbar/kennedy_scroll_bar.cc',
186         'controls/scrollbar/kennedy_scroll_bar.h',
187         'controls/scrollbar/native_scroll_bar_views.cc',
188         'controls/scrollbar/native_scroll_bar_views.h',
189         'controls/scrollbar/native_scroll_bar_wrapper.h',
190         'controls/scrollbar/native_scroll_bar.cc',
191         'controls/scrollbar/native_scroll_bar.h',
192         'controls/scrollbar/overlay_scroll_bar.cc',
193         'controls/scrollbar/overlay_scroll_bar.h',
194         'controls/scrollbar/scroll_bar.cc',
195         'controls/scrollbar/scroll_bar.h',
196         'controls/separator.cc',
197         'controls/separator.h',
198         'controls/single_split_view.cc',
199         'controls/single_split_view.h',
200         'controls/single_split_view_listener.h',
201         'controls/slide_out_view.cc',
202         'controls/slide_out_view.h',
203         'controls/slider.cc',
204         'controls/slider.h',
205         'controls/styled_label.cc',
206         'controls/styled_label.h',
207         'controls/styled_label_listener.h',
208         'controls/tabbed_pane/tabbed_pane.cc',
209         'controls/tabbed_pane/tabbed_pane.h',
210         'controls/tabbed_pane/tabbed_pane_listener.h',
211         'controls/table/table_header.cc',
212         'controls/table/table_header.h',
213         'controls/table/table_utils.cc',
214         'controls/table/table_utils.h',
215         'controls/table/table_view.cc',
216         'controls/table/table_view.h',
217         'controls/table/table_view_observer.h',
218         'controls/table/table_view_row_background_painter.h',
219         'controls/textfield/textfield.cc',
220         'controls/textfield/textfield.h',
221         'controls/textfield/textfield_controller.cc',
222         'controls/textfield/textfield_controller.h',
223         'controls/textfield/textfield_model.cc',
224         'controls/textfield/textfield_model.h',
225         'controls/throbber.cc',
226         'controls/throbber.h',
227         'controls/tree/tree_view.cc',
228         'controls/tree/tree_view.h',
229         'controls/tree/tree_view_controller.cc',
230         'controls/tree/tree_view_controller.h',
231         'corewm/base_focus_rules.cc',
232         'corewm/base_focus_rules.h',
233         'corewm/capture_controller.cc',
234         'corewm/capture_controller.h',
235         'corewm/compound_event_filter.cc',
236         'corewm/compound_event_filter.h',
237         'corewm/corewm_switches.cc',
238         'corewm/corewm_switches.h',
239         'corewm/cursor_manager.cc',
240         'corewm/cursor_manager.h',
241         'corewm/focus_controller.cc',
242         'corewm/focus_controller.h',
243         'corewm/focus_rules.h',
244         'corewm/image_grid.cc',
245         'corewm/image_grid.h',
246         'corewm/input_method_event_filter.cc',
247         'corewm/input_method_event_filter.h',
248         'corewm/native_cursor_manager.h',
249         'corewm/native_cursor_manager_delegate.h',
250         'corewm/shadow.cc',
251         'corewm/shadow.h',
252         'corewm/shadow_controller.cc',
253         'corewm/shadow_controller.h',
254         'corewm/shadow_types.cc',
255         'corewm/shadow_types.h',
256         'corewm/tooltip.h',
257         'corewm/tooltip_aura.cc',
258         'corewm/tooltip_aura.h',
259         'corewm/tooltip_controller.cc',
260         'corewm/tooltip_controller.h',
261         'corewm/tooltip_win.cc',
262         'corewm/tooltip_win.h',
263         'corewm/transient_window_controller.cc',
264         'corewm/transient_window_controller.h',
265         'corewm/transient_window_manager.cc',
266         'corewm/transient_window_manager.h',
267         'corewm/transient_window_observer.h',
268         'corewm/transient_window_stacking_client.cc',
269         'corewm/transient_window_stacking_client.h',
270         'corewm/visibility_controller.cc',
271         'corewm/visibility_controller.h',
272         'corewm/window_animations.cc',
273         'corewm/window_animations.h',
274         'corewm/window_modality_controller.cc',
275         'corewm/window_modality_controller.h',
276         'corewm/window_util.cc',
277         'corewm/window_util.h',
278         'corewm/wm_state.cc',
279         'corewm/wm_state.h',
280         'debug_utils.cc',
281         'debug_utils.h',
282         'drag_controller.h',
283         'drag_utils.cc',
284         'drag_utils.h',
285         'event_utils.h',
286         'event_utils_aura.cc',
287         'event_utils_win.cc',
288         'focus/external_focus_tracker.cc',
289         'focus/external_focus_tracker.h',
290         'focus/focus_manager.cc',
291         'focus/focus_manager.h',
292         'focus/focus_manager_delegate.h',
293         'focus/focus_manager_factory.cc',
294         'focus/focus_manager_factory.h',
295         'focus/focus_search.cc',
296         'focus/focus_search.h',
297         'focus/view_storage.cc',
298         'focus/view_storage.h',
299         'focus/widget_focus_manager.cc',
300         'focus/widget_focus_manager.h',
301         'ime/input_method_base.cc',
302         'ime/input_method_base.h',
303         'ime/input_method_bridge.cc',
304         'ime/input_method_bridge.h',
305         'ime/input_method_delegate.h',
306         'ime/input_method.h',
307         'ime/mock_input_method.cc',
308         'ime/mock_input_method.h',
309         'layout/box_layout.cc',
310         'layout/box_layout.h',
311         'layout/fill_layout.cc',
312         'layout/fill_layout.h',
313         'layout/grid_layout.cc',
314         'layout/grid_layout.h',
315         'layout/layout_constants.h',
316         'layout/layout_manager.cc',
317         'layout/layout_manager.h',
318         'linux_ui/linux_ui.h',
319         'linux_ui/linux_ui.cc',
320         'linux_ui/status_icon_linux.h',
321         'linux_ui/status_icon_linux.cc',
322         'linux_ui/window_button_order_observer.h',
323         'metrics.cc',
324         'metrics.h',
325         'metrics_aura.cc',
326         'metrics_win.cc',
327         'mouse_constants.h',
328         'mouse_watcher.cc',
329         'mouse_watcher.h',
330         'mouse_watcher_view_host.cc',
331         'mouse_watcher_view_host.h',
332         'native_theme_delegate.h',
333         'painter.cc',
334         'painter.h',
335         'rect_based_targeting_utils.cc',
336         'rect_based_targeting_utils.h',
337         'repeat_controller.cc',
338         'repeat_controller.h',
339         'round_rect_painter.cc',
340         'round_rect_painter.h',
341         'shadow_border.cc',
342         'shadow_border.h',
343         'touchui/touch_editing_menu.cc',
344         'touchui/touch_editing_menu.h',
345         'touchui/touch_selection_controller_impl.cc',
346         'touchui/touch_selection_controller_impl.h',
347         'view.cc',
348         'view.h',
349         'view_aura.cc',
350         'view_constants.cc',
351         'view_constants.h',
352         'view_constants_aura.cc',
353         'view_constants_aura.h',
354         'view_model.cc',
355         'view_model.h',
356         'view_model_utils.cc',
357         'view_model_utils.h',
358         'view_win.cc',
359         'views_switches.cc',
360         'views_switches.h',
361         'views_delegate.cc',
362         'views_delegate.h',
363         'widget/aero_tooltip_manager.cc',
364         'widget/aero_tooltip_manager.h',
365         'widget/child_window_message_processor.cc',
366         'widget/child_window_message_processor.h',
367         'widget/desktop_aura/desktop_capture_client.cc',
368         'widget/desktop_aura/desktop_capture_client.h',
369         'widget/desktop_aura/desktop_cursor_loader_updater.h',
370         'widget/desktop_aura/desktop_cursor_loader_updater_auralinux.cc',
371         'widget/desktop_aura/desktop_cursor_loader_updater_auralinux.h',
372         'widget/desktop_aura/desktop_cursor_loader_updater_aurawin.cc',
373         'widget/desktop_aura/desktop_dispatcher_client.cc',
374         'widget/desktop_aura/desktop_dispatcher_client.h',
375         'widget/desktop_aura/desktop_drag_drop_client_aurax11.cc',
376         'widget/desktop_aura/desktop_drag_drop_client_aurax11.h',
377         'widget/desktop_aura/desktop_drag_drop_client_win.cc',
378         'widget/desktop_aura/desktop_drag_drop_client_win.h',
379         'widget/desktop_aura/desktop_drop_target_win.cc',
380         'widget/desktop_aura/desktop_drop_target_win.h',
381         'widget/desktop_aura/desktop_event_client.cc',
382         'widget/desktop_aura/desktop_event_client.h',
383         'widget/desktop_aura/desktop_factory_ozone.cc',
384         'widget/desktop_aura/desktop_factory_ozone.h',
385         'widget/desktop_aura/desktop_focus_rules.cc',
386         'widget/desktop_aura/desktop_focus_rules.h',
387         'widget/desktop_aura/desktop_native_cursor_manager.cc',
388         'widget/desktop_aura/desktop_native_cursor_manager.h',
389         'widget/desktop_aura/desktop_native_widget_aura.cc',
390         'widget/desktop_aura/desktop_native_widget_aura.h',
391         'widget/desktop_aura/desktop_window_tree_host.h',
392         'widget/desktop_aura/desktop_window_tree_host_ozone.cc',
393         'widget/desktop_aura/desktop_window_tree_host_win.cc',
394         'widget/desktop_aura/desktop_window_tree_host_win.h',
395         'widget/desktop_aura/desktop_window_tree_host_x11.cc',
396         'widget/desktop_aura/desktop_window_tree_host_x11.h',
397         'widget/desktop_aura/desktop_screen.h',
398         'widget/desktop_aura/desktop_screen_ozone.cc',
399         'widget/desktop_aura/desktop_screen_position_client.cc',
400         'widget/desktop_aura/desktop_screen_position_client.h',
401         'widget/desktop_aura/desktop_screen_win.cc',
402         'widget/desktop_aura/desktop_screen_win.h',
403         'widget/desktop_aura/desktop_screen_x11.cc',
404         'widget/desktop_aura/desktop_screen_x11.h',
405         'widget/desktop_aura/x11_desktop_handler.cc',
406         'widget/desktop_aura/x11_desktop_handler.h',
407         'widget/desktop_aura/x11_desktop_window_move_client.cc',
408         'widget/desktop_aura/x11_desktop_window_move_client.h',
409         'widget/desktop_aura/x11_scoped_capture.cc',
410         'widget/desktop_aura/x11_scoped_capture.h',
411         'widget/desktop_aura/x11_whole_screen_move_loop.cc',
412         'widget/desktop_aura/x11_whole_screen_move_loop.h',
413         'widget/desktop_aura/x11_whole_screen_move_loop_delegate.h',
414         'widget/desktop_aura/x11_window_event_filter.cc',
415         'widget/desktop_aura/x11_window_event_filter.h',
416         'widget/drop_helper.cc',
417         'widget/drop_helper.h',
418         'widget/drop_target_win.cc',
419         'widget/drop_target_win.h',
420         'widget/root_view.cc',
421         'widget/root_view.h',
422         'widget/monitor_win.cc',
423         'widget/monitor_win.h',
424         'widget/native_widget.h',
425         'widget/native_widget_aura.cc',
426         'widget/native_widget_aura.h',
427         'widget/native_widget_delegate.h',
428         'widget/native_widget_private.h',
429         'widget/tooltip_manager_aura.cc',
430         'widget/tooltip_manager_aura.h',
431         'widget/tooltip_manager_win.cc',
432         'widget/tooltip_manager_win.h',
433         'widget/tooltip_manager.cc',
434         'widget/tooltip_manager.h',
435         'widget/widget.cc',
436         'widget/widget.h',
437         'widget/widget_aura_utils.cc',
438         'widget/widget_aura_utils.h',
439         'widget/widget_delegate.cc',
440         'widget/widget_delegate.h',
441         'widget/widget_deletion_observer.cc',
442         'widget/widget_deletion_observer.h',
443         'widget/widget_hwnd_utils.cc',
444         'widget/widget_hwnd_utils.h',
445         'widget/widget_observer.h',
446         'widget/window_reorderer.cc',
447         'widget/window_reorderer.h',
448         'win/appbar.cc',
449         'win/appbar.h',
450         'win/fullscreen_handler.cc',
451         'win/fullscreen_handler.h',
452         'win/hwnd_message_handler.cc',
453         'win/hwnd_message_handler.h',
454         'win/hwnd_message_handler_delegate.h',
455         'win/hwnd_util.h',
456         'win/hwnd_util_aurawin.cc',
457         'win/hwnd_util_win.cc',
458         'win/scoped_fullscreen_visibility.cc',
459         'win/scoped_fullscreen_visibility.h',
460         'window/client_view.cc',
461         'window/client_view.h',
462         'window/custom_frame_view.cc',
463         'window/custom_frame_view.h',
464         'window/dialog_client_view.cc',
465         'window/dialog_client_view.h',
466         'window/dialog_delegate.cc',
467         'window/dialog_delegate.h',
468         'window/frame_background.cc',
469         'window/frame_background.h',
470         'window/frame_buttons.h',
471         'window/native_frame_view.cc',
472         'window/native_frame_view.h',
473         'window/non_client_view.cc',
474         'window/non_client_view.h',
475         'window/window_resources.h',
476         'window/window_shape.cc',
477         'window/window_shape.h',
478       ],
479       'include_dirs': [
480         '../../third_party/wtl/include',
481       ],
482       'conditions': [
483         ['use_aura==1', {
484           'sources!': [
485             'controls/native_control.cc',
486             'controls/native_control.h',
487             'controls/scrollbar/bitmap_scroll_bar.cc',
488             'controls/scrollbar/bitmap_scroll_bar.h',
489             'controls/table/table_view_observer.h',
490             'widget/aero_tooltip_manager.cc',
491             'widget/aero_tooltip_manager.h',
492             'widget/child_window_message_processor.cc',
493             'widget/child_window_message_processor.h',
494             'widget/tooltip_manager_win.cc',
495             'widget/tooltip_manager_win.h',
496           ],
497           'conditions': [
498             ['OS=="win"', {
499               'sources/': [
500                 ['include', 'controls/menu/menu_insertion_delegate_win.h'],
501                 ['include', 'controls/menu/native_menu_win.cc'],
502                 ['include', 'controls/menu/native_menu_win.h'],
503                 ['include', 'corewm/tooltip_win.cc'],
504                 ['include', 'corewm/tooltip_win.h'],
505                 ['include', 'event_utils_win.cc'],
506                 ['include', 'widget/desktop_aura/desktop_screen_win.cc'],
507                 ['include', 'widget/desktop_aura/desktop_drag_drop_client_win.cc'],
508                 ['include', 'widget/desktop_aura/desktop_drop_target_win.cc'],
509                 ['include', 'widget/desktop_aura/desktop_window_tree_host_win.cc'],
510                 ['include', 'widget/monitor_win.cc'],
511                 ['include', 'widget/monitor_win.h'],
512                 ['include', 'win/appbar.cc'],
513                 ['include', 'win/appbar.h'],
514               ],
515             }],
516           ],
517         }],
518         ['use_aura==0', {
519           'sources/': [
520             ['exclude', 'corewm'],
521             ['exclude', 'widget/desktop_aura'],
522             ['exclude', 'widget/window_reorderer.h'],
523             ['exclude', 'widget/window_reorderer.cc'],
524           ],
525           'sources!': [
526             'widget/widget_aura_utils.cc',
527             'widget/widget_aura_utils.h',
528           ],
529         }],
530         ['chromeos==1', {
531           'sources/': [
532             ['exclude', 'widget/desktop_aura'],
533           ],
534         }],
535         ['use_ash==0', {
536           'sources!': [
537             'bubble/tray_bubble_view.cc',
538             'bubble/tray_bubble_view.h',
539           ],
540         }],
541         ['use_aura==0 and OS=="win"', {
542           'sources!': [
543             'controls/menu/menu_config_views.cc',
544             'controls/menu/menu_separator_views.cc',
545           ],
546         }],
547         ['use_aura==1 and OS=="win"', {
548           'sources/': [
549             ['include', 'controls/menu/menu_config_win.cc'],
550             ['include', 'controls/menu/menu_separator_win.cc'],
551             ['include', 'accessibility/native_view_accessibility_win.cc'],
552             ['include', 'accessibility/native_view_accessibility_win.h'],
553           ],
554         }],
555         ['OS=="linux" and chromeos==0', {
556           'dependencies': [
557             '../shell_dialogs/shell_dialogs.gyp:shell_dialogs',
558           ],
559         }, { # OS=="linux" and chromeos==0
560           'sources/': [
561             ['exclude', 'linux_ui'],
562           ],
563         }],
564         ['OS=="win"', {
565           'dependencies': [
566             # For accessibility
567             '../../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
568           ],
569           'include_dirs': [
570             '../../third_party/wtl/include',
571           ],
572           'link_settings': {
573             'libraries': [
574               '-limm32.lib',
575               '-loleacc.lib',
576             ],
577             'msvs_settings': {
578               'VCLinkerTool': {
579                 'DelayLoadDLLs': [
580                   'user32.dll',
581                 ],
582               },
583             },
584           },
585           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
586           'msvs_disabled_warnings': [ 4267, ],
587         }],
588         ['OS!="win"', {
589           'sources!': [
590             'controls/menu/menu_wrapper.h',
591             'controls/menu/menu_2.cc',
592             'controls/menu/menu_2.h',
593             'win/fullscreen_handler.cc',
594             'win/fullscreen_handler.h',
595             'win/hwnd_message_handler.cc',
596             'win/hwnd_message_handler.h',
597             'win/hwnd_message_handler_delegate.h',
598             'win/scoped_fullscreen_visibility.cc',
599             'win/scoped_fullscreen_visibility.h',
600             'widget/widget_hwnd_utils.cc',
601             'widget/widget_hwnd_utils.h',
602           ],
603         }],
604         ['use_ozone==1', {
605           'sources': [
606             '<@(external_ozone_views_files)',
607           ],
608           'dependencies': [
609             '../ozone/ozone.gyp:ozone',
610           ],
611         }],
612         ['use_x11==1', {
613           'dependencies': [
614             '../../build/linux/system.gyp:x11',
615             '../../build/linux/system.gyp:xrandr',
616           ],
617         }],
618       ],
619     }, # target_name: views
620     {
621       'target_name': 'views_test_support',
622       'type': 'static_library',
623       'dependencies': [
624         '../../base/base.gyp:base',
625         '../../ipc/ipc.gyp:test_support_ipc',
626         '../../skia/skia.gyp:skia',
627         '../../testing/gtest.gyp:gtest',
628         '../events/events.gyp:events',
629         '../gfx/gfx.gyp:gfx',
630         '../gfx/gfx.gyp:gfx_geometry',
631         '../ui.gyp:ui',
632         'views',
633       ],
634       'include_dirs': [
635         '..',
636       ],
637       'sources': [
638         'corewm/tooltip_controller_test_helper.cc',
639         'corewm/tooltip_controller_test_helper.h',
640         'test/capture_tracking_view.cc',
641         'test/capture_tracking_view.h',
642         'test/child_modal_window.cc',
643         'test/child_modal_window.h',
644         'test/desktop_test_views_delegate.cc',
645         'test/desktop_test_views_delegate.h',
646         'test/menu_runner_test_api.cc',
647         'test/menu_runner_test_api.h',
648         'test/test_views.cc',
649         'test/test_views.h',
650         'test/test_views_delegate.cc',
651         'test/test_views_delegate.h',
652         'test/test_widget_observer.cc',
653         'test/test_widget_observer.h',
654         'test/ui_controls_factory_desktop_aurax11.cc',
655         'test/ui_controls_factory_desktop_aurax11.h',
656         'test/views_test_base.cc',
657         'test/views_test_base.h',
658         'test/widget_test.cc',
659         'test/widget_test.h',
660         'widget/root_view_test_helper.h',
661       ],
662       'conditions': [
663         ['chromeos==1', {
664           'sources!': [
665             'test/ui_controls_factory_desktop_aurax11.cc',
666             'test/ui_controls_factory_desktop_aurax11.h',
667           ],
668         }],
669         ['use_aura==1', {
670           'dependencies': [
671             '../aura/aura.gyp:aura_test_support',
672             '../compositor/compositor.gyp:compositor',
673           ],
674         }, {  # use_aura==0
675           'sources!': [
676             'corewm/tooltip_controller_test_helper.cc',
677             'corewm/tooltip_controller_test_helper.h',
678             'test/child_modal_window.cc',
679             'test/child_modal_window.h',
680           ],
681         }],
682       ],
683     },  # target_name: views_test_support
684     {
685       'target_name': 'views_with_content_test_support',
686       'type': 'static_library',
687       'dependencies': [
688         '../../base/base.gyp:base',
689         '../../content/content.gyp:content',
690         '../../content/content_shell_and_tests.gyp:test_support_content',
691         '../../ipc/ipc.gyp:test_support_ipc',
692         '../../skia/skia.gyp:skia',
693         '../../testing/gtest.gyp:gtest',
694         '../events/events.gyp:events',
695         '../gfx/gfx.gyp:gfx',
696         '../gfx/gfx.gyp:gfx_geometry',
697         '../ui.gyp:ui',
698         'controls/webview/webview.gyp:webview',
699         'views_test_support',
700         'views',
701       ],
702       'include_dirs': [
703         '..',
704       ],
705       'sources': [
706         'test/webview_test_helper.cc',
707         'test/webview_test_helper.h',
708       ],
709     },  # target_name: views_with_content_test_support
710     {
711       'target_name': 'views_unittests',
712       'type': 'executable',
713       'dependencies': [
714         '../../base/base.gyp:base',
715         '../../base/base.gyp:base_i18n',
716         '../../base/base.gyp:test_support_base',
717         '../../skia/skia.gyp:skia',
718         '../../testing/gtest.gyp:gtest',
719         '../../third_party/icu/icu.gyp:icui18n',
720         '../../third_party/icu/icu.gyp:icuuc',
721         '../../url/url.gyp:url_lib',
722         '../base/strings/ui_strings.gyp:ui_strings',
723         '../compositor/compositor.gyp:compositor',
724         '../compositor/compositor.gyp:compositor_test_support',
725         '../events/events.gyp:events',
726         '../gfx/gfx.gyp:gfx',
727         '../gfx/gfx.gyp:gfx_geometry',
728         '../resources/ui_resources.gyp:ui_resources',
729         '../resources/ui_resources.gyp:ui_test_pak',
730         '../ui.gyp:ui',
731         '../ui_unittests.gyp:ui_test_support',
732         '../wm/wm.gyp:wm_public',
733         'views',
734         'views_test_support',
735       ],
736       'include_dirs': [
737         '..',
738       ],
739       'sources': [
740         'accessibility/native_view_accessibility_win_unittest.cc',
741         'accessible_pane_view_unittest.cc',
742         'animation/bounds_animator_unittest.cc',
743         'bubble/bubble_border_unittest.cc',
744         'bubble/bubble_delegate_unittest.cc',
745         'bubble/bubble_frame_view_unittest.cc',
746         'bubble/bubble_window_targeter_unittest.cc',
747         'controls/button/custom_button_unittest.cc',
748         'controls/button/image_button_unittest.cc',
749         'controls/button/label_button_unittest.cc',
750         'controls/combobox/combobox_unittest.cc',
751         'controls/label_unittest.cc',
752         'controls/menu/menu_model_adapter_unittest.cc',
753         'controls/native/native_view_host_aura_unittest.cc',
754         'controls/native/native_view_host_unittest.cc',
755         'controls/prefix_selector_unittest.cc',
756         'controls/progress_bar_unittest.cc',
757         'controls/scrollbar/scrollbar_unittest.cc',
758         'controls/scroll_view_unittest.cc',
759         'controls/single_split_view_unittest.cc',
760         'controls/slider_unittest.cc',
761         'controls/styled_label_unittest.cc',
762         'controls/tabbed_pane/tabbed_pane_unittest.cc',
763         'controls/table/table_utils_unittest.cc',
764         'controls/table/table_view_unittest.cc',
765         'controls/table/test_table_model.cc',
766         'controls/table/test_table_model.h',
767         'controls/textfield/textfield_unittest.cc',
768         'controls/textfield/textfield_model_unittest.cc',
769         'controls/tree/tree_view_unittest.cc',
770         'corewm/capture_controller_unittest.cc',
771         'corewm/compound_event_filter_unittest.cc',
772         'corewm/cursor_manager_unittest.cc',
773         'corewm/focus_controller_unittest.cc',
774         'corewm/image_grid_unittest.cc',
775         'corewm/input_method_event_filter_unittest.cc',
776         'corewm/shadow_controller_unittest.cc',
777         'corewm/tooltip_aura_unittest.cc',
778         'corewm/tooltip_controller_unittest.cc',
779         'corewm/transient_window_manager_unittest.cc',
780         'corewm/transient_window_stacking_client_unittest.cc',
781         'corewm/visibility_controller_unittest.cc',
782         'corewm/window_animations_unittest.cc',
783         'corewm/window_util_unittest.cc',
784         'focus/focus_manager_test.h',
785         'focus/focus_manager_test.cc',
786         'focus/focus_manager_unittest.cc',
787         'focus/focus_manager_unittest_win.cc',
788         'focus/focus_traversal_unittest.cc',
789         'ime/input_method_bridge_unittest.cc',
790         'layout/box_layout_unittest.cc',
791         'layout/grid_layout_unittest.cc',
792         'rect_based_targeting_utils_unittest.cc',
793         'run_all_unittests.cc',
794         'touchui/touch_selection_controller_impl_unittest.cc',
795         'view_model_unittest.cc',
796         'view_model_utils_unittest.cc',
797         'view_unittest.cc',
798         'widget/desktop_aura/desktop_native_widget_aura_unittest.cc',
799         'widget/desktop_aura/desktop_window_tree_host_win_unittest.cc',
800         'widget/desktop_aura/desktop_screen_x11_unittest.cc',
801         'widget/desktop_aura/desktop_screen_position_client_unittest.cc',
802         'widget/native_widget_aura_unittest.cc',
803         'widget/native_widget_unittest.cc',
804         'widget/native_widget_win_unittest.cc',
805         'widget/root_view_unittest.cc',
806         'widget/widget_unittest.cc',
807         'widget/window_reorderer_unittest.cc',
808         'window/dialog_client_view_unittest.cc',
809         'window/dialog_delegate_unittest.cc',
810       ],
811       'conditions': [
812         ['chromeos==0', {
813           'sources!': [
814             'touchui/touch_selection_controller_impl_unittest.cc',
815           ],
816         }, { # use_chromeos==1
817           'sources/': [
818             ['exclude', 'ime/input_method_bridge_unittest.cc'],
819             ['exclude', 'widget/desktop_aura'],
820           ],
821         }],
822         ['OS=="win"', {
823           'link_settings': {
824             'libraries': [
825               '-limm32.lib',
826               '-loleacc.lib',
827               '-lcomctl32.lib',
828             ]
829           },
830           'include_dirs': [
831             '../third_party/wtl/include',
832           ],
833           'msvs_settings': {
834             'VCManifestTool': {
835               'AdditionalManifestFiles': [
836                 '$(ProjectDir)\\test\\views_unittest.manifest',
837               ],
838             },
839           },
840         }],
841         ['OS=="win" and win_use_allocator_shim==1', {
842           'dependencies': [
843             '../../base/allocator/allocator.gyp:allocator',
844           ],
845         }],
846         ['OS=="linux" and linux_use_tcmalloc==1', {
847            # See http://crbug.com/162998#c4 for why this is needed.
848           'dependencies': [
849             '../../base/allocator/allocator.gyp:allocator',
850           ],
851         }],
852         [ 'use_aura==1', {
853           'dependencies': [
854             '../aura/aura.gyp:aura_test_support',
855           ],
856           'sources!': [
857             'widget/native_widget_win_unittest.cc',
858           ],
859         }, {  # use_aura==0
860           'sources!': [
861             'controls/native/native_view_host_aura_unittest.cc',
862             'widget/native_widget_aura_unittest.cc',
863           ],
864           'sources/': [
865             ['exclude', 'corewm'],
866             ['exclude', 'ime/input_method_bridge_unittest.cc'],
867             ['exclude', 'widget/desktop_aura'],
868             ['exclude', 'widget/window_reorderer_unittest.cc']
869           ],
870         }],
871         ['use_ozone==1', {
872           'sources!': [
873             'corewm/capture_controller_unittest.cc',
874           ],
875         }],
876       ],
877     },  # target_name: views_unittests
878     {
879       'target_name': 'views_examples_lib',
880       'type': '<(component)',
881       'dependencies': [
882         '../../base/base.gyp:base',
883         '../../skia/skia.gyp:skia',
884         '../../third_party/icu/icu.gyp:icui18n',
885         '../../third_party/icu/icu.gyp:icuuc',
886         '../events/events.gyp:events',
887         '../gfx/gfx.gyp:gfx',
888         '../gfx/gfx.gyp:gfx_geometry',
889         '../resources/ui_resources.gyp:ui_resources',
890         '../resources/ui_resources.gyp:ui_test_pak',
891         '../ui.gyp:ui',
892         'views',
893       ],
894       'include_dirs': [
895         '..',
896       ],
897       'defines': [
898         'VIEWS_EXAMPLES_IMPLEMENTATION',
899       ],
900       'sources': [
901         'examples/bubble_example.cc',
902         'examples/bubble_example.h',
903         'examples/button_example.cc',
904         'examples/button_example.h',
905         'examples/checkbox_example.cc',
906         'examples/checkbox_example.h',
907         'examples/combobox_example.cc',
908         'examples/combobox_example.h',
909         'examples/double_split_view_example.cc',
910         'examples/double_split_view_example.h',
911         'examples/example_base.cc',
912         'examples/example_base.h',
913         'examples/example_combobox_model.cc',
914         'examples/example_combobox_model.h',
915         'examples/examples_window.cc',
916         'examples/examples_window.h',
917         'examples/label_example.cc',
918         'examples/label_example.h',
919         'examples/link_example.cc',
920         'examples/link_example.h',
921         'examples/message_box_example.cc',
922         'examples/message_box_example.h',
923         'examples/menu_example.cc',
924         'examples/menu_example.h',
925         'examples/multiline_example.cc',
926         'examples/multiline_example.h',
927         'examples/progress_bar_example.cc',
928         'examples/progress_bar_example.h',
929         'examples/radio_button_example.cc',
930         'examples/radio_button_example.h',
931         'examples/scroll_view_example.cc',
932         'examples/scroll_view_example.h',
933         'examples/single_split_view_example.cc',
934         'examples/single_split_view_example.h',
935         'examples/slider_example.cc',
936         'examples/slider_example.h',
937         'examples/tabbed_pane_example.cc',
938         'examples/tabbed_pane_example.h',
939         'examples/table_example.cc',
940         'examples/table_example.h',
941         'examples/text_example.cc',
942         'examples/text_example.h',
943         'examples/textfield_example.cc',
944         'examples/textfield_example.h',
945         'examples/throbber_example.cc',
946         'examples/throbber_example.h',
947         'examples/tree_view_example.cc',
948         'examples/tree_view_example.h',
949         'examples/views_examples_export.h',
950         'examples/widget_example.cc',
951         'examples/widget_example.h',
952       ],
953       'conditions': [
954         ['OS=="win"', {
955           'include_dirs': [
956             '../third_party/wtl/include',
957           ],
958           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
959           'msvs_disabled_warnings': [ 4267, ],
960         }],
961       ],
962     },  # target_name: views_examples_lib
963     {
964       'target_name': 'views_examples_exe',
965       'type': 'executable',
966       'dependencies': [
967         '../../base/base.gyp:base',
968         '../../base/base.gyp:base_i18n',
969         '../compositor/compositor.gyp:compositor',
970         '../compositor/compositor.gyp:compositor_test_support',
971         '../gfx/gfx.gyp:gfx',
972         '../resources/ui_resources.gyp:ui_test_pak',
973         '../ui.gyp:ui',
974         'views',
975         'views_examples_lib',
976         'views_test_support',
977       ],
978       'sources': [
979         'examples/examples_main.cc',
980       ],
981     },  # target_name: views_examples_exe
982     {
983       'target_name': 'views_examples_with_content_lib',
984       'type': '<(component)',
985       'dependencies': [
986         '../../base/base.gyp:base',
987         '../../base/base.gyp:base_i18n',
988         '../../content/content.gyp:content',
989         '../../skia/skia.gyp:skia',
990         '../../third_party/icu/icu.gyp:icui18n',
991         '../../third_party/icu/icu.gyp:icuuc',
992         '../../url/url.gyp:url_lib',
993         '../events/events.gyp:events',
994         '../gfx/gfx.gyp:gfx',
995         '../gfx/gfx.gyp:gfx_geometry',
996         '../resources/ui_resources.gyp:ui_resources',
997         '../resources/ui_resources.gyp:ui_test_pak',
998         '../ui.gyp:ui',
999         'controls/webview/webview.gyp:webview',
1000         'views',
1001         'views_examples_lib',
1002       ],
1003       'include_dirs': [
1004         '..',
1005       ],
1006       'defines': [
1007         'VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION',
1008       ],
1009       'sources': [
1010         'examples/examples_window_with_content.cc',
1011         'examples/examples_window_with_content.h',
1012         'examples/views_examples_with_content_export.h',
1013         'examples/webview_example.cc',
1014         'examples/webview_example.h',
1015       ],
1016       'conditions': [
1017         ['OS=="win"', {
1018           'include_dirs': [
1019             '../third_party/wtl/include',
1020           ],
1021           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1022           'msvs_disabled_warnings': [ 4267, ],
1023         }],
1024       ],
1025     },  # target_name: views_examples_with_content_lib
1026     {
1027       'target_name': 'views_examples_with_content_exe',
1028       'type': 'executable',
1029       'dependencies': [
1030         '../../base/base.gyp:base',
1031         '../../base/base.gyp:base_i18n',
1032         '../../content/content.gyp:content',
1033         '../../content/content_shell_and_tests.gyp:content_shell_lib',
1034         '../../content/content_shell_and_tests.gyp:test_support_content',
1035         '../../skia/skia.gyp:skia',
1036         '../../third_party/icu/icu.gyp:icui18n',
1037         '../../third_party/icu/icu.gyp:icuuc',
1038         '../events/events.gyp:events',
1039         '../gfx/gfx.gyp:gfx',
1040         '../gfx/gfx.gyp:gfx_geometry',
1041         '../resources/ui_resources.gyp:ui_resources',
1042         '../resources/ui_resources.gyp:ui_test_pak',
1043         '../ui.gyp:ui',
1044         '../wm/wm.gyp:wm_test_support',
1045         'views',
1046         'views_examples_with_content_lib',
1047         'views_test_support'
1048       ],
1049       'include_dirs': [
1050         '../..',
1051       ],
1052       'sources': [
1053         '../../content/app/startup_helper_win.cc',
1054         'examples/content_client/examples_browser_main_parts.cc',
1055         'examples/content_client/examples_browser_main_parts.h',
1056         'examples/content_client/examples_content_browser_client.cc',
1057         'examples/content_client/examples_content_browser_client.h',
1058         'examples/content_client/examples_main_delegate.cc',
1059         'examples/content_client/examples_main_delegate.h',
1060         'examples/content_client/examples_main.cc',
1061       ],
1062       'conditions': [
1063         ['OS=="win"', {
1064           'link_settings': {
1065             'libraries': [
1066               '-limm32.lib',
1067               '-loleacc.lib',
1068             ]
1069           },
1070           'msvs_settings': {
1071             'VCManifestTool': {
1072               'AdditionalManifestFiles': [
1073                 'examples\\views_examples.exe.manifest',
1074               ],
1075             },
1076             'VCLinkerTool': {
1077               'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
1078             },
1079           },
1080           'dependencies': [
1081             '../../sandbox/sandbox.gyp:sandbox',
1082           ],
1083         }],
1084         ['use_aura==1', {
1085           'dependencies': [
1086             '../compositor/compositor.gyp:compositor',
1087           ],
1088         }],
1089         ['OS=="win"', {
1090           'sources/': [
1091             # This is needed because the aura rule strips it from the default
1092             # sources list.
1093             ['include', '^../../content/app/startup_helper_win.cc'],
1094           ],
1095         }],
1096       ],
1097     },  # target_name: views_examples_with_content_exe
1098   ],
1099 }