BUILD.gn 1.2 KB

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