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/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//ui/base/ui_features.gni") | 6 import("//ui/base/ui_features.gni") |
7 | 7 |
8 static_library("constrained_window") { | 8 static_library("constrained_window") { |
9 sources = [ | 9 sources = [ |
10 "constrained_window_views.cc", | 10 "constrained_window_views.cc", |
11 "constrained_window_views.h", | 11 "constrained_window_views.h", |
12 "constrained_window_views_client.h", | 12 "constrained_window_views_client.h", |
13 "native_web_contents_modal_dialog_manager_views.cc", | 13 "native_web_contents_modal_dialog_manager_views.cc", |
14 "native_web_contents_modal_dialog_manager_views.h", | 14 "native_web_contents_modal_dialog_manager_views.h", |
15 "native_web_contents_modal_dialog_manager_views_mac.mm", | 15 "native_web_contents_modal_dialog_manager_views_mac.mm", |
16 ] | 16 ] |
17 | 17 |
18 if (is_mac && !mac_views_browser) { | 18 if (is_mac && !mac_views_browser) { |
19 sources += [ "show_modal_dialog_cocoa.cc" ] | 19 sources += [ "show_modal_dialog_cocoa.cc" ] |
20 } else { | 20 } else { |
21 sources += [ "show_modal_dialog_views.cc" ] | 21 sources += [ "show_modal_dialog_views.cc" ] |
22 } | 22 } |
23 | 23 |
24 deps = [ | 24 deps = [ |
25 "//components/guest_view/browser", | 25 "//components/guest_view/browser", |
26 "//components/web_modal", | 26 "//components/web_modal", |
27 "//content/public/browser", | 27 "//content/public/browser", |
| 28 "//ui/display", |
28 "//ui/views", | 29 "//ui/views", |
29 ] | 30 ] |
30 public_deps = [ | 31 public_deps = [ |
31 # Skia headers are exposed in the public API. | 32 # Skia headers are exposed in the public API. |
32 "//skia", | 33 "//skia", |
33 ] | 34 ] |
34 | 35 |
35 if (use_aura) { | 36 if (use_aura) { |
36 deps += [ | 37 deps += [ |
37 "//ui/aura", | 38 "//ui/aura", |
(...skipping 11 matching lines...) Expand all Loading... |
49 if (is_mac && !mac_views_browser) { | 50 if (is_mac && !mac_views_browser) { |
50 sources += [ "test_create_native_web_modal_manager_cocoa.cc" ] | 51 sources += [ "test_create_native_web_modal_manager_cocoa.cc" ] |
51 } | 52 } |
52 | 53 |
53 deps = [ | 54 deps = [ |
54 ":constrained_window", | 55 ":constrained_window", |
55 "//components/web_modal:test_support", | 56 "//components/web_modal:test_support", |
56 "//ui/views:test_support", | 57 "//ui/views:test_support", |
57 ] | 58 ] |
58 } | 59 } |
OLD | NEW |