# 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("//third_party/closure_compiler/compile_js.gni") js_type_check("closure_compile") { deps = [ ":device_page", ":device_page_browser_proxy", ":display", ":display_layout", ":display_overscan_dialog", ":display_size_slider", ":drag_behavior", ":drive_cache_dialog", ":keyboard", ":layout_behavior", ":night_light_slider", ":pointers", ":power", ":storage", ":stylus", ] } js_library("device_page") { deps = [ ":device_page_browser_proxy", "..:route", "//ui/webui/resources/js:i18n_behavior", "//ui/webui/resources/js:web_ui_listener_behavior", ] } js_library("device_page_browser_proxy") { deps = [ "//ui/webui/resources/js:cr", ] } js_library("pointers") { deps = [ ":device_page_browser_proxy", "../controls:settings_toggle_button", ] } js_library("keyboard") { deps = [ ":device_page_browser_proxy", "..:route", "../controls:settings_dropdown_menu", "../prefs:prefs_types", "//ui/webui/resources/js:assert", "//ui/webui/resources/js:cr", "//ui/webui/resources/js:load_time_data", ] externs_list = [ "$externs_path/settings_private.js" ] } js_library("stylus") { deps = [ ":device_page_browser_proxy", "../prefs:prefs_types", "//ui/webui/resources/cr_elements/policy:cr_policy_indicator", "//ui/webui/resources/js:cr", "//ui/webui/resources/js:load_time_data", ] } js_library("display") { deps = [ ":display_layout", ":display_size_slider", "../controls:settings_dropdown_menu", "../prefs:prefs_behavior", "//ui/webui/resources/js:assert", "//ui/webui/resources/js:cr", "//ui/webui/resources/js:i18n_behavior", "//ui/webui/resources/js/cr/ui:focus_without_ink", ] externs_list = [ "$externs_path/settings_private.js", "$externs_path/system_display.js", ] extra_sources = [ "$interfaces_path/system_display_interface.js" ] } js_library("display_layout") { deps = [ ":drag_behavior", ":layout_behavior", "//third_party/polymer/v1_0/components-chromium/iron-resizable-behavior:iron-resizable-behavior-extracted", "//ui/webui/resources/js:cr", ] externs_list = [ "$externs_path/system_display.js" ] extra_sources = [ "$interfaces_path/system_display_interface.js" ] } js_library("display_overscan_dialog") { deps = [ ":display", "//ui/webui/resources/js:cr", ] externs_list = [ "$externs_path/system_display.js" ] extra_sources = [ "$interfaces_path/system_display_interface.js" ] } js_library("drag_behavior") { deps = [ "//ui/webui/resources/js:cr", ] } js_library("layout_behavior") { deps = [ "//ui/webui/resources/js:cr", ] externs_list = [ "$externs_path/system_display.js" ] extra_sources = [ "$interfaces_path/system_display_interface.js" ] } js_library("night_light_slider") { deps = [ "../prefs:prefs_behavior", "//third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior:iron-a11y-keys-behavior-extracted", "//third_party/polymer/v1_0/components-chromium/iron-resizable-behavior:iron-resizable-behavior-extracted", "//third_party/polymer/v1_0/components-chromium/paper-behaviors:paper-inky-focus-behavior-extracted", ] } js_library("display_size_slider") { deps = [ "../prefs:prefs_behavior", "//third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior:iron-a11y-keys-behavior-extracted", "//third_party/polymer/v1_0/components-chromium/iron-range-behavior:iron-range-behavior-extracted", "//third_party/polymer/v1_0/components-chromium/iron-resizable-behavior:iron-resizable-behavior-extracted", "//third_party/polymer/v1_0/components-chromium/paper-behaviors:paper-inky-focus-behavior-extracted", "//third_party/polymer/v1_0/components-chromium/paper-progress:paper-progress-extracted", "//ui/webui/resources/cr_elements/policy:cr_policy_pref_behavior", ] } js_library("power") { deps = [ ":device_page_browser_proxy", "..:route", "../prefs:prefs_types", "//ui/webui/resources/js:i18n_behavior", "//ui/webui/resources/js:web_ui_listener_behavior", ] externs_list = [ "$externs_path/settings_private.js" ] } js_library("storage") { deps = [ "..:route", "//ui/webui/resources/js:assert", "//ui/webui/resources/js:load_time_data", "//ui/webui/resources/js:web_ui_listener_behavior", "//ui/webui/resources/js/cr/ui:focus_without_ink", ] } js_library("drive_cache_dialog") { deps = [ "//ui/webui/resources/js:i18n_behavior", ] externs_list = [ "$externs_path/chrome_send.js" ] }