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