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 += [ "show_modal_dialog_cocoa.cc" ] |
| 18 } else { |
| 19 sources += [ "show_modal_dialog_views.cc" ] |
| 20 } |
| 21 |
12 deps = [ | 22 deps = [ |
13 "//components/guest_view/browser", | 23 "//components/guest_view/browser", |
14 "//components/web_modal", | 24 "//components/web_modal", |
15 "//skia", | 25 "//content/public/browser", |
16 "//ui/views", | 26 "//ui/views", |
17 ] | 27 ] |
| 28 public_deps = [ |
| 29 # Skia headers are exposed in the public API. |
| 30 "//skia", |
| 31 ] |
| 32 |
| 33 if (use_aura) { |
| 34 deps += [ |
| 35 "//ui/aura", |
| 36 "//ui/wm", |
| 37 ] |
| 38 } |
18 } | 39 } |
19 | 40 |
20 source_set("unit_tests") { | 41 source_set("unit_tests") { |
21 testonly = true | 42 testonly = true |
22 sources = [ | 43 sources = [ |
23 "constrained_window_views_unittest.cc", | 44 "constrained_window_views_unittest.cc", |
24 ] | 45 ] |
25 | 46 |
| 47 if (is_mac && !mac_views_browser) { |
| 48 sources += [ "test_create_native_web_modal_manager_cocoa.cc" ] |
| 49 } |
| 50 |
26 deps = [ | 51 deps = [ |
27 ":constrained_window", | 52 ":constrained_window", |
28 "//components/web_modal:test_support", | 53 "//components/web_modal:test_support", |
29 "//ui/views:test_support", | 54 "//ui/views:test_support", |
30 ] | 55 ] |
31 } | 56 } |
OLD | NEW |