| # Copyright 2025 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//mojo/public/tools/bindings/mojom.gni") |
| |
| assert(!is_android) |
| |
| source_set("feature_flag") { |
| sources = [ "webui_browser.h" ] |
| } |
| |
| source_set("webui_browser") { |
| sources = [ |
| "webui_browser_ui.h", |
| "webui_browser_window.h", |
| "webui_location_bar.h", |
| ] |
| public_deps = [ |
| ":browser_mojo_bindings", |
| ":feature_flag", |
| "//base", |
| "//chrome/browser/ui/exclusive_access", |
| "//chrome/browser/ui/location_bar", |
| "//chrome/browser/ui/views/side_panel", |
| "//components/guest_contents/common:mojom", |
| "//content/public/browser", |
| "//ui/color", |
| "//ui/color:color_provider_key", |
| "//ui/views", |
| "//ui/webui", |
| ] |
| } |
| |
| source_set("impl") { |
| sources = [ |
| "bookmark_bar_page_handler.cc", |
| "bookmark_bar_page_handler.h", |
| "webui_browser.cc", |
| "webui_browser_client_view.cc", |
| "webui_browser_client_view.h", |
| "webui_browser_page_handler.cc", |
| "webui_browser_page_handler.h", |
| "webui_browser_ui.cc", |
| "webui_browser_web_contents_delegate.cc", |
| "webui_browser_web_contents_delegate.h", |
| "webui_browser_window.cc", |
| "webui_location_bar.cc", |
| ] |
| |
| deps = [ |
| ":browser_mojo_bindings", |
| ":webui_browser", |
| "//base", |
| "//chrome/browser:browser_public_dependencies", |
| "//chrome/browser/devtools", |
| "//chrome/browser/profiles", |
| "//chrome/browser/resources/tab_strip_api:resources", |
| "//chrome/browser/resources/webui_browser:resources", |
| "//chrome/browser/themes", |
| "//chrome/browser/ui/bookmarks", |
| "//chrome/browser/ui/find_bar", |
| "//chrome/browser/ui/location_bar", |
| "//chrome/browser/ui/tabs/tab_strip_api", |
| "//chrome/browser/ui/toolbar", |
| "//chrome/browser/ui/views/toolbar", |
| "//chrome/browser/ui/web_applications", |
| "//chrome/browser/ui/webui/searchbox", |
| "//chrome/common:chrome_features", |
| "//components/guest_contents/browser", |
| "//components/input", |
| "//components/sharing_message", |
| "//content/public/browser", |
| "//ui/base", |
| "//ui/views", |
| "//ui/views/controls/webview", |
| ] |
| } |
| |
| mojom("browser_mojo_bindings") { |
| sources = [ |
| "bookmark_bar.mojom", |
| "browser.mojom", |
| ] |
| public_deps = [ |
| "//chrome/browser/ui/tabs/tab_strip_api:mojom", |
| "//mojo/public/mojom/base", |
| "//url/mojom:url_mojom_gurl", |
| ] |
| webui_module_path = "/" |
| } |
| |
| source_set("browser_tests") { |
| testonly = true |
| defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| |
| sources = [ "webui_browser_browsertest.cc" ] |
| |
| deps = [ |
| ":impl", |
| ":webui_browser", |
| "//base/test:test_support", |
| "//chrome/browser/ui", |
| "//chrome/common:chrome_features", |
| "//chrome/test:test_support", |
| "//content/test:test_support", |
| ] |
| } |