BUILD.gn 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Copyright 2018 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. static_library("webui") {
  5. sources = [
  6. "mojo_bubble_web_ui_controller.cc",
  7. "mojo_bubble_web_ui_controller.h",
  8. "mojo_web_ui_controller.cc",
  9. "mojo_web_ui_controller.h",
  10. "untrusted_bubble_web_ui_controller.cc",
  11. "untrusted_bubble_web_ui_controller.h",
  12. "untrusted_web_ui_controller.cc",
  13. "untrusted_web_ui_controller.h",
  14. "untrusted_web_ui_controller_factory.cc",
  15. "untrusted_web_ui_controller_factory.h",
  16. "webui_allowlist.cc",
  17. "webui_allowlist.h",
  18. "webui_allowlist_provider.cc",
  19. "webui_allowlist_provider.h",
  20. ]
  21. deps = [
  22. "//base",
  23. "//components/content_settings/core/browser",
  24. "//content/public/browser",
  25. "//services/service_manager/public/cpp",
  26. ]
  27. public_deps = [
  28. "//ui/webui/resources/js/browser_command:mojo_bindings",
  29. "//ui/webui/resources/js/metrics_reporter:mojo_bindings",
  30. ]
  31. if (!is_android && !is_ios) {
  32. public_deps += [
  33. "//ui/webui/resources/cr_components/color_change_listener:mojom",
  34. "//ui/webui/resources/cr_components/customize_themes:mojom",
  35. "//ui/webui/resources/cr_components/history_clusters:mojo_bindings",
  36. "//ui/webui/resources/cr_components/most_visited:mojom",
  37. ]
  38. }
  39. }
  40. source_set("test_support") {
  41. testonly = true
  42. sources = [
  43. "untrusted_web_ui_browsertest_util.cc",
  44. "untrusted_web_ui_browsertest_util.h",
  45. ]
  46. deps = [
  47. ":webui",
  48. "//base",
  49. "//content/public/browser",
  50. "//content/test:test_support",
  51. ]
  52. }