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 # These are the only components that can interact with gtk. | 1875 # These are the only components that can interact with gtk. |
1892 if (use_gtk3) { | 1876 if (use_gtk3) { |
1893 deps += [ "//chrome/browser/ui/libgtkui:libgtk3ui" ] | 1877 deps += [ "//chrome/browser/ui/libgtkui:libgtk3ui" ] |
(...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 skip window_finder_mus.cc. | |
fwang
2016/10/31 11:46:06
*supported*
tonikitoo
2016/10/31 14:20:29
Done locally. will reupload with further review re
| |
3042 # - Other platforms (except Android) build window_finder.h/cc as well | |
3043 # as a platform specific associated file, window_finder_{win,chromeos,etc}. | |
3044 if (toolkit_views) { | |
3045 if (!is_mac) { | |
3046 sources += [ | |
3047 "views/tabs/window_finder.cc", | |
3048 "views/tabs/window_finder.h", | |
3049 | |
3050 # TODO(ellyjones): Mus is not supported on Mac (there is no ui::Window | |
3051 # apart from aura::Window, which is also not supported). | |
3052 "views/tabs/window_finder_mus.cc", | |
3053 "views/tabs/window_finder_mus.h", | |
3054 ] | |
3055 deps += [ "//ui/views/mus" ] | |
3056 } | |
3057 if (is_chromeos) { | |
3058 sources += [ "views/tabs/window_finder_chromeos.cc" ] | |
3059 } | |
3060 if (is_win) { | |
3061 sources += [ "views/tabs/window_finder_win.cc" ] | |
3062 } | |
3063 if (is_desktop_linux && use_x11) { | |
3064 sources += [ "views/tabs/window_finder_x11.cc" ] | |
3065 } | |
3066 if (use_ash) { | |
3067 sources += [ "views/tabs/window_finder_ash.cc" ] | |
3068 } | |
3069 } | |
3070 if (is_mac && mac_views_browser) { | |
3071 sources += [ | |
3072 "views/tabs/window_finder.h", | |
3073 "views/tabs/window_finder_mac.mm", | |
3074 ] | |
3075 } | |
3076 | |
3061 if (use_udev) { | 3077 if (use_udev) { |
3062 deps += [ "//device/udev_linux" ] | 3078 deps += [ "//device/udev_linux" ] |
3063 } | 3079 } |
3064 | 3080 |
3065 if (enable_app_list) { | 3081 if (enable_app_list) { |
3066 sources += [ | 3082 sources += [ |
3067 "app_list/app_context_menu.cc", | 3083 "app_list/app_context_menu.cc", |
3068 "app_list/app_context_menu.h", | 3084 "app_list/app_context_menu.h", |
3069 "app_list/app_context_menu_delegate.h", | 3085 "app_list/app_context_menu_delegate.h", |
3070 "app_list/app_list_controller_delegate.cc", | 3086 "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", | 3435 "test/test_confirm_bubble_model.cc", |
3420 "test/test_confirm_bubble_model.h", | 3436 "test/test_confirm_bubble_model.h", |
3421 ] | 3437 ] |
3422 deps += [ "//chrome/test:test_support_ui" ] | 3438 deps += [ "//chrome/test:test_support_ui" ] |
3423 } | 3439 } |
3424 | 3440 |
3425 if (enable_extensions) { | 3441 if (enable_extensions) { |
3426 deps += [ "//extensions/browser" ] | 3442 deps += [ "//extensions/browser" ] |
3427 } | 3443 } |
3428 } | 3444 } |
OLD | NEW |