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 3# found in the LICENSE file. 4 5import("//build/config/ui.gni") 6import("//ui/base/ui_features.gni") 7 8static_library("constrained_window") { 9 sources = [ 10 "constrained_window_views.cc", 11 "constrained_window_views.h", 12 "constrained_window_views_client.h", 13 "native_web_contents_modal_dialog_manager_views.cc", 14 "native_web_contents_modal_dialog_manager_views.h", 15 "show_modal_dialog_views.cc", 16 ] 17 18 deps = [ 19 "//components/web_modal", 20 "//content/public/browser", 21 "//ui/display", 22 "//ui/views", 23 ] 24 public_deps = [ 25 # Skia headers are exposed in the public API. 26 "//skia", 27 ] 28 29 if (use_aura) { 30 deps += [ 31 "//ui/aura", 32 "//ui/compositor", 33 "//ui/wm", 34 ] 35 } 36} 37 38source_set("unit_tests") { 39 testonly = true 40 sources = [ "constrained_window_views_unittest.cc" ] 41 42 deps = [ 43 ":constrained_window", 44 "//components/web_modal:test_support", 45 "//ui/views", 46 "//ui/views:test_support", 47 ] 48} 49