| # Copyright 2018 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//chrome/browser/resources/settings/chromeos/os_settings.gni") |
| import("//third_party/closure_compiler/compile_js.gni") |
| import("//tools/polymer/html_to_js.gni") |
| import("../os_settings.gni") |
| |
| js_type_check("closure_compile_module") { |
| closure_flags = os_settings_closure_flags |
| is_polymer3 = true |
| deps = [ |
| ":google_assistant_browser_proxy", |
| ":google_assistant_page", |
| ] |
| } |
| |
| js_library("google_assistant_browser_proxy") { |
| deps = [ "//ui/webui/resources/js:cr.m" ] |
| } |
| |
| js_library("google_assistant_page") { |
| deps = [ |
| ":google_assistant_browser_proxy", |
| "//chrome/browser/resources/settings:router", |
| "//chrome/browser/resources/settings/chromeos:deep_linking_behavior.m", |
| "//chrome/browser/resources/settings/chromeos:metrics_recorder.m", |
| "//chrome/browser/resources/settings/chromeos:os_route.m", |
| "//chrome/browser/resources/settings/controls:controlled_button", |
| "//chrome/browser/resources/settings/controls:settings_toggle_button", |
| "//chrome/browser/resources/settings/prefs:pref_util", |
| "//chrome/browser/resources/settings/prefs:prefs", |
| "//chrome/browser/resources/settings/prefs:prefs_behavior", |
| "//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled", |
| "//ui/webui/resources/cr_elements/cr_link_row:cr_link_row", |
| "//ui/webui/resources/cr_elements/policy:cr_policy_pref_indicator.m", |
| "//ui/webui/resources/js:cr.m", |
| "//ui/webui/resources/js:i18n_behavior.m", |
| "//ui/webui/resources/js:load_time_data.m", |
| "//ui/webui/resources/js:web_ui_listener_behavior.m", |
| ] |
| } |
| |
| html_to_js("web_components") { |
| js_files = [ "google_assistant_page.js" ] |
| } |