BUILD.gn 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. assert(!is_android && !is_ios)
  5. component("web_modal") {
  6. sources = [
  7. "modal_dialog_host.cc",
  8. "modal_dialog_host.h",
  9. "single_web_contents_dialog_manager.h",
  10. "web_contents_modal_dialog_host.cc",
  11. "web_contents_modal_dialog_host.h",
  12. "web_contents_modal_dialog_manager.cc",
  13. "web_contents_modal_dialog_manager.h",
  14. "web_contents_modal_dialog_manager_delegate.cc",
  15. "web_contents_modal_dialog_manager_delegate.h",
  16. "web_modal_export.h",
  17. ]
  18. defines = [ "WEB_MODAL_IMPLEMENTATION" ]
  19. public_deps = [
  20. "//base",
  21. "//content/public/browser",
  22. "//ui/gfx",
  23. ]
  24. deps = [
  25. "//components/back_forward_cache",
  26. "//net",
  27. "//skia",
  28. "//ui/gfx/geometry",
  29. ]
  30. }
  31. static_library("test_support") {
  32. testonly = true
  33. sources = [
  34. "test_web_contents_modal_dialog_host.cc",
  35. "test_web_contents_modal_dialog_host.h",
  36. "test_web_contents_modal_dialog_manager_delegate.cc",
  37. "test_web_contents_modal_dialog_manager_delegate.h",
  38. ]
  39. public_deps = [ ":web_modal" ]
  40. deps = [
  41. "//base",
  42. "//ui/gfx",
  43. "//ui/gfx/geometry",
  44. ]
  45. }
  46. source_set("unit_tests") {
  47. testonly = true
  48. sources = [ "web_contents_modal_dialog_manager_unittest.cc" ]
  49. deps = [
  50. ":test_support",
  51. ":web_modal",
  52. "//base",
  53. "//content/test:test_support",
  54. "//testing/gtest",
  55. ]
  56. }