OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/chromecast_build.gni") | 5 import("//build/config/chromecast_build.gni") |
6 import("//build/config/crypto.gni") | 6 import("//build/config/crypto.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 import("//build/split_static_library.gni") | 9 import("//build/split_static_library.gni") |
10 import("//chrome/common/features.gni") | 10 import("//chrome/common/features.gni") |
(...skipping 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1796 "views/tabs/tab.cc", | 1796 "views/tabs/tab.cc", |
1797 "views/tabs/tab.h", | 1797 "views/tabs/tab.h", |
1798 "views/tabs/tab_controller.h", | 1798 "views/tabs/tab_controller.h", |
1799 "views/tabs/tab_drag_controller.cc", | 1799 "views/tabs/tab_drag_controller.cc", |
1800 "views/tabs/tab_drag_controller.h", | 1800 "views/tabs/tab_drag_controller.h", |
1801 "views/tabs/tab_strip.cc", | 1801 "views/tabs/tab_strip.cc", |
1802 "views/tabs/tab_strip.h", | 1802 "views/tabs/tab_strip.h", |
1803 "views/tabs/tab_strip_controller.h", | 1803 "views/tabs/tab_strip_controller.h", |
1804 "views/tabs/tab_strip_layout.cc", | 1804 "views/tabs/tab_strip_layout.cc", |
1805 "views/tabs/tab_strip_layout.h", | 1805 "views/tabs/tab_strip_layout.h", |
1806 "views/tabs/window_finder.cc", | |
1807 "views/tabs/window_finder.h", | |
1808 "views/tabs/window_finder_chromeos.cc", | |
1809 "views/tabs/window_finder_win.cc", | |
1810 "views/theme_copying_widget.cc", | 1806 "views/theme_copying_widget.cc", |
1811 "views/theme_copying_widget.h", | 1807 "views/theme_copying_widget.h", |
1812 "views/toolbar/app_menu.cc", | 1808 "views/toolbar/app_menu.cc", |
1813 "views/toolbar/app_menu.h", | 1809 "views/toolbar/app_menu.h", |
1814 "views/toolbar/app_menu_button.cc", | 1810 "views/toolbar/app_menu_button.cc", |
1815 "views/toolbar/app_menu_button.h", | 1811 "views/toolbar/app_menu_button.h", |
1816 "views/toolbar/app_menu_observer.h", | 1812 "views/toolbar/app_menu_observer.h", |
1817 "views/toolbar/back_button.cc", | 1813 "views/toolbar/back_button.cc", |
1818 "views/toolbar/back_button.h", | 1814 "views/toolbar/back_button.h", |
1819 "views/toolbar/browser_actions_container.cc", | 1815 "views/toolbar/browser_actions_container.cc", |
(...skipping 25 matching lines...) Expand all Loading... |
1845 "views/website_settings/chooser_bubble_ui_view.cc", | 1841 "views/website_settings/chooser_bubble_ui_view.cc", |
1846 "views/website_settings/chooser_bubble_ui_view.h", | 1842 "views/website_settings/chooser_bubble_ui_view.h", |
1847 "views/website_settings/permission_prompt_impl_views.cc", | 1843 "views/website_settings/permission_prompt_impl_views.cc", |
1848 ] | 1844 ] |
1849 if (use_aura) { | 1845 if (use_aura) { |
1850 deps += [ | 1846 deps += [ |
1851 "//services/ui/public/cpp", | 1847 "//services/ui/public/cpp", |
1852 "//services/ui/public/interfaces", | 1848 "//services/ui/public/interfaces", |
1853 ] | 1849 ] |
1854 } | 1850 } |
1855 | |
1856 # TODO(ellyjones): Mus is not supported on Mac (there is no ui::Window | |
1857 # apart from aura::Window, which is also not supported). | |
1858 if (!is_mac) { | |
1859 sources += [ | |
1860 "views/tabs/window_finder_mus.cc", | |
1861 "views/tabs/window_finder_mus.h", | |
1862 ] | |
1863 | |
1864 deps += [ "//ui/views/mus" ] | |
1865 } | |
1866 } | 1851 } |
1867 if (use_ash) { | 1852 if (use_ash) { |
1868 sources += [ | 1853 sources += [ |
1869 "views/frame/browser_frame_ash.cc", | 1854 "views/frame/browser_frame_ash.cc", |
1870 "views/frame/browser_frame_ash.h", | 1855 "views/frame/browser_frame_ash.h", |
1871 "views/frame/browser_header_painter_ash.cc", | 1856 "views/frame/browser_header_painter_ash.cc", |
1872 "views/frame/browser_header_painter_ash.h", | 1857 "views/frame/browser_header_painter_ash.h", |
1873 "views/frame/browser_non_client_frame_view_ash.cc", | 1858 "views/frame/browser_non_client_frame_view_ash.cc", |
1874 "views/frame/browser_non_client_frame_view_ash.h", | 1859 "views/frame/browser_non_client_frame_view_ash.h", |
1875 "views/frame/immersive_context_mus.cc", | 1860 "views/frame/immersive_context_mus.cc", |
1876 "views/frame/immersive_context_mus.h", | 1861 "views/frame/immersive_context_mus.h", |
1877 "views/frame/immersive_handler_factory_mus.cc", | 1862 "views/frame/immersive_handler_factory_mus.cc", |
1878 "views/frame/immersive_handler_factory_mus.h", | 1863 "views/frame/immersive_handler_factory_mus.h", |
1879 "views/frame/immersive_mode_controller_ash.cc", | 1864 "views/frame/immersive_mode_controller_ash.cc", |
1880 "views/frame/immersive_mode_controller_ash.h", | 1865 "views/frame/immersive_mode_controller_ash.h", |
1881 "views/frame/web_app_left_header_view_ash.cc", | 1866 "views/frame/web_app_left_header_view_ash.cc", |
1882 "views/frame/web_app_left_header_view_ash.h", | 1867 "views/frame/web_app_left_header_view_ash.h", |
1883 "views/tabs/window_finder_ash.cc", | |
1884 ] | 1868 ] |
1885 } | 1869 } |
1886 } | 1870 } |
1887 if (use_gio) { | 1871 if (use_gio) { |
1888 deps += [ "//build/linux/libgio" ] | 1872 deps += [ "//build/linux/libgio" ] |
1889 } | 1873 } |
1890 if (use_aura && !use_ozone && is_desktop_linux) { | 1874 if (use_aura && !use_ozone && is_desktop_linux) { |
1891 deps += [ | 1875 deps += [ |
1892 # gtk2 is the only component that can interact with gtk2 in our new | 1876 # gtk2 is the only component that can interact with gtk2 in our new |
1893 # world. | 1877 # world. |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2344 "views/apps/chrome_app_window_client_views_mac.mm", | 2328 "views/apps/chrome_app_window_client_views_mac.mm", |
2345 "views/certificate_viewer_mac_views.mm", | 2329 "views/certificate_viewer_mac_views.mm", |
2346 "views/dropdown_bar_host_mac.mm", | 2330 "views/dropdown_bar_host_mac.mm", |
2347 "views/frame/browser_frame_mac.h", | 2331 "views/frame/browser_frame_mac.h", |
2348 "views/frame/browser_frame_mac.mm", | 2332 "views/frame/browser_frame_mac.mm", |
2349 "views/frame/browser_non_client_frame_view_factory_mac.mm", | 2333 "views/frame/browser_non_client_frame_view_factory_mac.mm", |
2350 "views/frame/browser_non_client_frame_view_mac.h", | 2334 "views/frame/browser_non_client_frame_view_mac.h", |
2351 "views/frame/browser_non_client_frame_view_mac.mm", | 2335 "views/frame/browser_non_client_frame_view_mac.mm", |
2352 "views/frame/native_browser_frame_factory_mac.mm", | 2336 "views/frame/native_browser_frame_factory_mac.mm", |
2353 "views/infobars/legacy_infobars_mac.cc", | 2337 "views/infobars/legacy_infobars_mac.cc", |
2354 "views/tabs/window_finder_mac.mm", | |
2355 ] | 2338 ] |
2356 deps += [ "//extensions/components/native_app_window" ] | 2339 deps += [ "//extensions/components/native_app_window" ] |
2357 } else { | 2340 } else { |
2358 sources += [ | 2341 sources += [ |
2359 "cocoa/animatable_image.h", | 2342 "cocoa/animatable_image.h", |
2360 "cocoa/animatable_image.mm", | 2343 "cocoa/animatable_image.mm", |
2361 "cocoa/animatable_view.h", | 2344 "cocoa/animatable_view.h", |
2362 "cocoa/animatable_view.mm", | 2345 "cocoa/animatable_view.mm", |
2363 "cocoa/app_menu/app_menu_button_cell.h", | 2346 "cocoa/app_menu/app_menu_button_cell.h", |
2364 "cocoa/app_menu/app_menu_button_cell.mm", | 2347 "cocoa/app_menu/app_menu_button_cell.mm", |
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3038 if (use_aura) { | 3021 if (use_aura) { |
3039 deps += [ "//build/linux:fontconfig" ] | 3022 deps += [ "//build/linux:fontconfig" ] |
3040 if (use_dbus) { | 3023 if (use_dbus) { |
3041 deps += [ "//dbus" ] | 3024 deps += [ "//dbus" ] |
3042 } | 3025 } |
3043 } | 3026 } |
3044 if (use_x11) { | 3027 if (use_x11) { |
3045 sources += [ | 3028 sources += [ |
3046 "views/javascript_app_modal_event_blocker_x11.cc", | 3029 "views/javascript_app_modal_event_blocker_x11.cc", |
3047 "views/javascript_app_modal_event_blocker_x11.h", | 3030 "views/javascript_app_modal_event_blocker_x11.h", |
3048 "views/tabs/window_finder_x11.cc", | |
3049 ] | 3031 ] |
3050 configs += [ "//build/config/linux:x11" ] | 3032 configs += [ "//build/config/linux:x11" ] |
3051 deps += [ | 3033 deps += [ |
3052 "//ui/events/devices", | 3034 "//ui/events/devices", |
3053 "//ui/events/devices/x11", | 3035 "//ui/events/devices/x11", |
3054 ] | 3036 ] |
3055 if (is_chromeos) { | |
3056 sources -= [ "views/tabs/window_finder_x11.cc" ] | |
3057 } | |
3058 } | 3037 } |
3059 } | 3038 } |
3060 | 3039 |
| 3040 # Group window_finder* pick up logic as following: |
| 3041 # - Mus is not support on Mac, so it builds only window_finder.h and |
| 3042 # window_finder_mac.mm. |
| 3043 # - Other platforms (except Android) build window_finder.h/cc as well |
| 3044 # as a platform specific associated file, e.g. window_finder_{win,chromeso}. |
| 3045 if (toolkit_views) { |
| 3046 if (!is_mac) { |
| 3047 sources += [ |
| 3048 "views/tabs/window_finder.cc", |
| 3049 "views/tabs/window_finder.h", |
| 3050 |
| 3051 # TODO(ellyjones): Mus is not supported on Mac (there is no ui::Window |
| 3052 # apart from aura::Window, which is also not supported). |
| 3053 "views/tabs/window_finder_mus.cc", |
| 3054 "views/tabs/window_finder_mus.h", |
| 3055 ] |
| 3056 deps += [ "//ui/views/mus" ] |
| 3057 } |
| 3058 if (is_chromeos) { |
| 3059 sources += [ "views/tabs/window_finder_chromeos.cc" ] |
| 3060 } |
| 3061 if (is_win) { |
| 3062 sources += [ "views/tabs/window_finder_win.cc" ] |
| 3063 } |
| 3064 if (is_desktop_linux && use_x11) { |
| 3065 sources += [ "views/tabs/window_finder_x11.cc" ] |
| 3066 } |
| 3067 if (use_ash) { |
| 3068 sources += [ "views/tabs/window_finder_ash.cc" ] |
| 3069 } |
| 3070 } |
| 3071 if (is_mac && mac_views_browser) { |
| 3072 sources += [ |
| 3073 "views/tabs/window_finder.h", |
| 3074 "views/tabs/window_finder_mac.mm", |
| 3075 ] |
| 3076 } |
| 3077 |
3061 if (use_udev) { | 3078 if (use_udev) { |
3062 deps += [ "//device/udev_linux" ] | 3079 deps += [ "//device/udev_linux" ] |
3063 } | 3080 } |
3064 | 3081 |
3065 if (enable_app_list) { | 3082 if (enable_app_list) { |
3066 sources += [ | 3083 sources += [ |
3067 "app_list/app_context_menu.cc", | 3084 "app_list/app_context_menu.cc", |
3068 "app_list/app_context_menu.h", | 3085 "app_list/app_context_menu.h", |
3069 "app_list/app_context_menu_delegate.h", | 3086 "app_list/app_context_menu_delegate.h", |
3070 "app_list/app_list_controller_delegate.cc", | 3087 "app_list/app_list_controller_delegate.cc", |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3419 "test/test_confirm_bubble_model.cc", | 3436 "test/test_confirm_bubble_model.cc", |
3420 "test/test_confirm_bubble_model.h", | 3437 "test/test_confirm_bubble_model.h", |
3421 ] | 3438 ] |
3422 deps += [ "//chrome/test:test_support_ui" ] | 3439 deps += [ "//chrome/test:test_support_ui" ] |
3423 } | 3440 } |
3424 | 3441 |
3425 if (enable_extensions) { | 3442 if (enable_extensions) { |
3426 deps += [ "//extensions/browser" ] | 3443 deps += [ "//extensions/browser" ] |
3427 } | 3444 } |
3428 } | 3445 } |
OLD | NEW |