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") |
| 6 |
5 source_set("constrained_window") { | 7 source_set("constrained_window") { |
6 sources = [ | 8 sources = [ |
7 "constrained_window_views.cc", | 9 "constrained_window_views.cc", |
8 "constrained_window_views.h", | 10 "constrained_window_views.h", |
9 "constrained_window_views_client.h", | 11 "constrained_window_views_client.h", |
| 12 "native_web_contents_modal_dialog_manager_views.cc", |
| 13 "native_web_contents_modal_dialog_manager_views.h", |
10 ] | 14 ] |
11 | 15 |
| 16 if (!is_mac || mac_views_browser) { |
| 17 sources += [ "web_contents_modal_dialog_manager_views.cc" ] |
| 18 } |
| 19 |
12 deps = [ | 20 deps = [ |
13 "//components/guest_view/browser", | 21 "//components/guest_view/browser", |
14 "//components/web_modal", | 22 "//components/web_modal", |
| 23 "//content/public/browser", |
15 "//skia", | 24 "//skia", |
16 "//ui/views", | 25 "//ui/views", |
17 ] | 26 ] |
| 27 |
| 28 if (use_aura) { |
| 29 deps += [ |
| 30 "//ui/aura", |
| 31 "//ui/wm", |
| 32 ] |
| 33 } |
18 } | 34 } |
19 | 35 |
20 source_set("unit_tests") { | 36 source_set("unit_tests") { |
21 testonly = true | 37 testonly = true |
22 sources = [ | 38 sources = [ |
23 "constrained_window_views_unittest.cc", | 39 "constrained_window_views_unittest.cc", |
24 ] | 40 ] |
25 | 41 |
26 deps = [ | 42 deps = [ |
27 ":constrained_window", | 43 ":constrained_window", |
28 "//components/web_modal:test_support", | 44 "//components/web_modal:test_support", |
29 "//ui/views:test_support", | 45 "//ui/views:test_support", |
30 ] | 46 ] |
31 } | 47 } |
OLD | NEW |