Commit 673e013b authored by Christopher Lam's avatar Christopher Lam Committed by Commit Bot

[Closure GN] Convert simple WebUI Closure Compilation to GN.

See go/closure-compile-gn for details.

This CL converts the Closure Compilation from GYP to GN for the following:
- cryptotoken
- download_internals
- md_downloads
- md_extensions
- md_history
- md_user_manager
- offline_pages
- signin
- webapks
- welcome

A local closure compile can be run by setting closure_compile = true in
args.gn, and then running ninja -C out/Default webui_closure_compile.
Individual projects can be compiled via, for example,
ninja -C out/Default chrome/browser/resources/md_extensions:closure_compile

Bug: 632206
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I401fc54ee6c5202bd27855ba28d886677e52210e
Reviewed-on: https://chromium-review.googlesource.com/954772
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550956}
parent dcb5b1f4
......@@ -10,8 +10,17 @@ assert(!is_ios, "Chromium/iOS shouldn't use anything in //chrome")
if (closure_compile) {
group("closure_compile") {
deps = [
"cryptotoken:closure_compile",
"engagement:closure_compile",
"md_bookmarks:closure_compile",
"md_downloads:closure_compile",
"md_extensions:closure_compile",
"md_history:closure_compile",
"md_user_manager:closure_compile",
"offline_pages:closure_compile",
"signin/dice_sync_confirmation:closure_compile",
"webapks:closure_compile",
"welcome/dice_welcome:closure_compile",
]
}
}
......
# 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 = [
":approvedorigins",
":b64",
":closeable",
":countdown",
":errorcodes",
":inherits",
":origincheck",
":sha256",
":textfetcher",
":timer",
]
}
js_library("errorcodes") {
}
js_library("b64") {
}
js_library("approvedorigins") {
}
js_library("closeable") {
}
js_library("countdown") {
}
js_library("inherits") {
}
js_library("origincheck") {
}
js_library("sha256") {
}
js_library("textfetcher") {
}
js_library("timer") {
}
# Copyright 2017 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.
{
'targets': [
{
'target_name': 'errorcodes',
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'b64',
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'approvedorigins',
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'closeable',
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'countdown',
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'inherits',
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'origincheck',
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'sha256',
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'textfetcher',
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'timer',
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
]
}
# 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 = [
":download_internals",
":download_internals_browser_proxy",
":download_internals_visuals",
]
}
js_library("download_internals") {
deps = [
":download_internals_browser_proxy",
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:load_time_data",
"//ui/webui/resources/js:util",
]
}
js_library("download_internals_browser_proxy") {
deps = [
"//ui/webui/resources/js:cr",
]
}
js_library("download_internals_visuals") {
deps = [
":download_internals_browser_proxy",
"//ui/webui/resources/js:cr",
]
}
# Copyright 2017 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.
{
'targets': [
{
'target_name': 'download_internals',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:assert',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:load_time_data',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:util',
'download_internals_browser_proxy',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'download_internals_browser_proxy',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'download_internals_visuals',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'download_internals_browser_proxy',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
],
}
# 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")
import("../optimize_webui.gni")
optimize_webui("build") {
......@@ -9,3 +14,87 @@ optimize_webui("build") {
insert_in_head = "<base href=chrome://downloads>"
js_out_files = [ "crisper.js" ]
}
js_type_check("closure_compile") {
deps = [
":browser_proxy",
":constants",
":downloads",
":externs",
":item",
":manager",
":search_service",
":toolbar",
]
}
js_library("browser_proxy") {
deps = [
"//ui/webui/resources/js:cr",
]
}
js_library("constants") {
deps = [
"//ui/webui/resources/js:cr",
]
}
js_library("downloads") {
deps = [
":manager",
"//ui/webui/resources/js:cr",
]
}
js_library("externs") {
}
js_library("item") {
deps = [
":browser_proxy",
":constants",
":externs",
"//third_party/polymer/v1_0/components-chromium/paper-behaviors:paper-inky-focus-behavior-extracted",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:load_time_data",
"//ui/webui/resources/js:util",
]
}
js_library("manager") {
deps = [
":browser_proxy",
":externs",
":item",
":search_service",
":toolbar",
"//third_party/polymer/v1_0/components-chromium/iron-list:iron-list-extracted",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:load_time_data",
"//ui/webui/resources/js:util",
"//ui/webui/resources/js/cr:ui",
"//ui/webui/resources/js/cr/ui:command",
]
externs_list = [ "$externs_path/chrome_send.js" ]
}
js_library("search_service") {
deps = [
":browser_proxy",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:load_time_data",
]
}
js_library("toolbar") {
deps = [
":browser_proxy",
":search_service",
"//third_party/polymer/v1_0/components-chromium/iron-a11y-announcer:iron-a11y-announcer-extracted",
"//ui/webui/resources/cr_elements/cr_action_menu:cr_action_menu",
"//ui/webui/resources/cr_elements/cr_toolbar:cr_toolbar",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:util",
]
}
# Copyright 2015 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.
{
'targets': [
{
'target_name': 'browser_proxy',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'constants',
'dependencies': ['<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr'],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'downloads',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'manager',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'externs',
'includes': ['../../../../third_party/closure_compiler/include_js.gypi'],
},
{
'target_name': 'item',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:load_time_data',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:util',
'<(DEPTH)/third_party/polymer/v1_0/components-chromium/paper-behaviors/compiled_resources2.gyp:paper-inky-focus-behavior-extracted',
'constants',
'browser_proxy',
'externs',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'manager',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:load_time_data',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:util',
'<(DEPTH)/ui/webui/resources/js/cr/compiled_resources2.gyp:ui',
'<(DEPTH)/ui/webui/resources/js/cr/ui/compiled_resources2.gyp:command',
'<(DEPTH)/third_party/polymer/v1_0/components-chromium/iron-list/compiled_resources2.gyp:iron-list-extracted',
'browser_proxy',
'item',
'search_service',
'toolbar',
'<(EXTERNS_GYP):chrome_send',
'externs',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'search_service',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:load_time_data',
'browser_proxy',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'toolbar',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:util',
'<(DEPTH)/ui/webui/resources/cr_elements/cr_action_menu/compiled_resources2.gyp:cr_action_menu',
'<(DEPTH)/ui/webui/resources/cr_elements/cr_toolbar/compiled_resources2.gyp:cr_toolbar',
'<(DEPTH)/third_party/polymer/v1_0/components-chromium/iron-a11y-announcer/compiled_resources2.gyp:iron-a11y-announcer-extracted',
'browser_proxy',
'search_service',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
],
}
# 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")
import("../optimize_webui.gni")
import("//tools/grit/grit_rule.gni")
import("//chrome/common/features.gni")
......@@ -42,3 +47,292 @@ grit("flattened_resources") {
]
output_dir = "$root_gen_dir/chrome/browser/resources/md_extensions"
}
js_type_check("closure_compile") {
deps = [
":code_section",
":detail_view",
":drag_and_drop_handler",
":drop_overlay",
":error_page",
":install_warnings_dialog",
":item",
":item_behavior",
":item_list",
":item_util",
":keyboard_shortcuts",
":kiosk_browser_proxy",
":kiosk_dialog",
":load_error",
":manager",
":navigation_helper",
":options_dialog",
":pack_dialog",
":pack_dialog_alert",
":service",
":shortcut_input",
":shortcut_util",
":sidebar",
":toolbar",
":view_manager",
]
}
js_library("code_section") {
deps = [
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:i18n_behavior",
"//ui/webui/resources/js:load_time_data",
]
externs_list = [ "$externs_path/developer_private.js" ]
}
js_library("detail_view") {
deps = [
":item",
":item_behavior",
":item_util",
":navigation_helper",
"//ui/webui/resources/cr_elements:cr_container_shadow_behavior",
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:load_time_data",
]
externs_list = [ "$externs_path/developer_private.js" ]
}
js_library("drag_and_drop_handler") {
deps = [
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js/cr/ui:drag_wrapper",
]
externs_list = [ "$externs_path/developer_private.js" ]
}
js_library("drop_overlay") {
deps = [
":drag_and_drop_handler",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:load_time_data",
"//ui/webui/resources/js/cr/ui:drag_wrapper",
]
}
js_library("error_page") {
deps = [
":code_section",
":item_util",
":navigation_helper",
"//ui/webui/resources/cr_elements:cr_container_shadow_behavior",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js/cr/ui:focus_outline_manager",
]
externs_list = [ "$externs_path/developer_private.js" ]
}
js_library("install_warnings_dialog") {
deps = [
"//ui/webui/resources/js:cr",
]
}
js_library("item") {
deps = [
":item_behavior",
":item_util",
":navigation_helper",
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:i18n_behavior",
"//ui/webui/resources/js:load_time_data",
]
externs_list = [ "$externs_path/developer_private.js" ]
}
js_library("item_behavior") {
deps = [
"//ui/webui/resources/js:cr",
]
externs_list = [ "$externs_path/developer_private.js" ]
}
js_library("item_list") {
deps = [
":item",
"//third_party/polymer/v1_0/components-chromium/iron-a11y-announcer:iron-a11y-announcer-extracted",
"//ui/webui/resources/cr_elements:cr_container_shadow_behavior",
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:i18n_behavior",
]
externs_list = [
"$externs_path/developer_private.js",
"$externs_path/metrics_private.js",
]
}
js_library("item_util") {
deps = [
":navigation_helper",
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:load_time_data",
]
externs_list = [ "$externs_path/developer_private.js" ]
}
js_library("keyboard_shortcuts") {
deps = [
":item_behavior",
"//ui/webui/resources/cr_elements:cr_container_shadow_behavior",
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
]
externs_list = [
"$externs_path/developer_private.js",
"$externs_path/metrics_private.js",
]
}
js_library("kiosk_browser_proxy") {
deps = [
":item_behavior",
"//ui/webui/resources/js:cr",
]
}
js_library("kiosk_dialog") {
deps = [
":kiosk_browser_proxy",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:web_ui_listener_behavior",
]
}
js_library("load_error") {
deps = [
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog",
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
]
externs_list = [ "$externs_path/developer_private.js" ]
}
js_library("manager") {
deps = [
":detail_view",
":item",
":item_list",
":item_util",
":keyboard_shortcuts",
":kiosk_browser_proxy",
":load_error",
":navigation_helper",
":service",
":sidebar",
":toolbar",
":view_manager",
"//ui/webui/resources/cr_elements/cr_drawer:cr_drawer",
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
]
externs_list = [ "$externs_path/developer_private.js" ]
}
js_library("navigation_helper") {
deps = [
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:load_time_data",
]
}
js_library("options_dialog") {
deps = [
":item_behavior",
":navigation_helper",
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog",
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
]
externs_list = [ "$externs_path/developer_private.js" ]
}
js_library("pack_dialog") {
deps = [
"//ui/webui/resources/js:cr",
]
externs_list = [ "$externs_path/developer_private.js" ]
}
js_library("pack_dialog_alert") {
deps = [
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:load_time_data",
]
externs_list = [ "$externs_path/developer_private.js" ]
}
js_library("service") {
deps = [
":error_page",
":item",
":load_error",
":navigation_helper",
":pack_dialog",
":toolbar",
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:load_time_data",
]
externs_list = [
"$externs_path/developer_private.js",
"$externs_path/management.js",
"$externs_path/metrics_private.js",
]
}
js_library("shortcut_input") {
deps = [
":shortcut_util",
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
]
externs_list = [ "$externs_path/developer_private.js" ]
}
js_library("shortcut_util") {
deps = [
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
]
}
js_library("sidebar") {
deps = [
":navigation_helper",
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
]
externs_list = [ "$externs_path/metrics_private.js" ]
}
js_library("toolbar") {
deps = [
"//third_party/polymer/v1_0/components-chromium/iron-a11y-announcer:iron-a11y-announcer-extracted",
"//ui/webui/resources/cr_elements/cr_toast:cr_toast",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:i18n_behavior",
"//ui/webui/resources/js:util",
]
externs_list = [ "$externs_path/metrics_private.js" ]
}
js_library("view_manager") {
deps = [
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
]
externs_list = [ "$externs_path/web_animations.js" ]
}
......@@ -41,6 +41,6 @@
<extensions-manager></extensions-manager>
<link rel="stylesheet" href="chrome://resources/css/md_colors.css">
<link rel="stylesheet" href="chrome://resources/css/text_defaults_md.css">
<link rel="import" href="manager.html">
<link rel="import" href="chrome://extensions/manager.html">
</body>
</html>
......@@ -2,17 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/** @enum {number} */
const ShortcutError = {
NO_ERROR: 0,
INCLUDE_START_MODIFIER: 1,
TOO_MANY_MODIFIERS: 2,
NEED_CHARACTER: 3,
};
cr.define('extensions', function() {
'use strict';
/** @enum {number} */
const ShortcutError = {
NO_ERROR: 0,
INCLUDE_START_MODIFIER: 1,
TOO_MANY_MODIFIERS: 2,
NEED_CHARACTER: 3,
};
// The UI to display and manage keyboard shortcuts set for extension commands.
const ShortcutInput = Polymer({
is: 'extensions-shortcut-input',
......
# 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")
import("../optimize_webui.gni")
optimize_webui("build") {
......@@ -24,3 +29,148 @@ optimize_webui("build") {
deps = []
}
js_type_check("closure_compile") {
deps = [
":app",
":browser_service",
":constants",
":externs",
":history",
":history_item",
":history_list",
":history_toolbar",
":query_manager",
":router",
":side_bar",
":synced_device_card",
":synced_device_manager",
]
}
js_library("constants") {
}
js_library("browser_service") {
deps = [
":externs",
"//ui/webui/resources/js:cr",
]
}
js_library("externs") {
deps = [
":constants",
]
}
js_library("history_item") {
deps = [
":browser_service",
":constants",
":externs",
"//ui/webui/resources/js:icon",
"//ui/webui/resources/js:load_time_data",
"//ui/webui/resources/js:util",
"//ui/webui/resources/js/cr/ui:focus_row",
]
}
js_library("history_list") {
deps = [
":browser_service",
":constants",
":externs",
":history_item",
"//third_party/polymer/v1_0/components-chromium/iron-a11y-announcer:iron-a11y-announcer-extracted",
"//third_party/polymer/v1_0/components-chromium/iron-list:iron-list-extracted",
"//third_party/polymer/v1_0/components-chromium/iron-scroll-threshold:iron-scroll-threshold-extracted",
"//ui/webui/resources/cr_elements/cr_action_menu:cr_action_menu",
"//ui/webui/resources/cr_elements/cr_lazy_render:cr_lazy_render",
"//ui/webui/resources/js:load_time_data",
"//ui/webui/resources/js:util",
]
}
js_library("history_toolbar") {
deps = [
":constants",
":externs",
"//ui/webui/resources/cr_elements/cr_toolbar:cr_toolbar",
"//ui/webui/resources/cr_elements/cr_toolbar:cr_toolbar_selection_overlay",
"//ui/webui/resources/js:load_time_data",
"//ui/webui/resources/js:util",
]
}
js_library("history") {
deps = [
":app",
":constants",
":externs",
"//ui/webui/resources/js:icon",
"//ui/webui/resources/js:load_time_data",
]
externs_list = [ "$externs_path/chrome_send.js" ]
}
js_library("app") {
deps = [
":constants",
":externs",
":history_list",
":history_toolbar",
":side_bar",
":synced_device_card",
":synced_device_manager",
"//ui/webui/resources/cr_elements/cr_drawer:cr_drawer",
"//ui/webui/resources/js:util",
"//ui/webui/resources/js/cr/ui:command",
]
}
js_library("query_manager") {
deps = [
":browser_service",
":externs",
":router",
]
}
js_library("router") {
deps = [
":constants",
":externs",
]
}
js_library("side_bar") {
deps = [
":browser_service",
"//third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior:iron-a11y-keys-behavior-extracted",
"//third_party/polymer/v1_0/components-chromium/iron-selector:iron-selector-extracted",
"//third_party/polymer/v1_0/components-chromium/paper-ripple:paper-ripple-extracted",
"//ui/webui/resources/js:load_time_data",
]
}
js_library("synced_device_card") {
deps = [
":browser_service",
":constants",
":externs",
"//ui/webui/resources/js:icon",
"//ui/webui/resources/js:load_time_data",
"//ui/webui/resources/js/cr/ui:focus_row",
]
}
js_library("synced_device_manager") {
deps = [
":browser_service",
":synced_device_card",
"//ui/webui/resources/cr_elements/cr_action_menu:cr_action_menu",
"//ui/webui/resources/cr_elements/cr_lazy_render:cr_lazy_render",
"//ui/webui/resources/js/cr/ui:focus_grid",
]
}
# Copyright 2015 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.
{
'targets': [
{
'target_name': 'constants',
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'browser_service',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'externs',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'externs',
'dependencies': [
'constants',
],
'includes': ['../../../../third_party/closure_compiler/include_js.gypi'],
},
{
'target_name': 'history_item',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:icon',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:load_time_data',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:util',
'<(DEPTH)/ui/webui/resources/js/cr/ui/compiled_resources2.gyp:focus_row',
'constants',
'browser_service',
'externs',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'history_list',
'dependencies': [
'<(DEPTH)/third_party/polymer/v1_0/components-chromium/iron-a11y-announcer/compiled_resources2.gyp:iron-a11y-announcer-extracted',
'<(DEPTH)/third_party/polymer/v1_0/components-chromium/iron-list/compiled_resources2.gyp:iron-list-extracted',
'<(DEPTH)/third_party/polymer/v1_0/components-chromium/iron-scroll-threshold/compiled_resources2.gyp:iron-scroll-threshold-extracted',
'<(DEPTH)/ui/webui/resources/cr_elements/cr_action_menu/compiled_resources2.gyp:cr_action_menu',
'<(DEPTH)/ui/webui/resources/cr_elements/cr_lazy_render/compiled_resources2.gyp:cr_lazy_render',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:load_time_data',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:util',
'browser_service',
'constants',
'externs',
'history_item',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'history_toolbar',
'dependencies': [
'<(DEPTH)/ui/webui/resources/cr_elements/cr_toolbar/compiled_resources2.gyp:cr_toolbar',
'<(DEPTH)/ui/webui/resources/cr_elements/cr_toolbar/compiled_resources2.gyp:cr_toolbar_selection_overlay',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:load_time_data',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:util',
'constants',
'externs',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'history',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:icon',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:load_time_data',
'app',
'constants',
'externs',
'<(EXTERNS_GYP):chrome_send',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'app',
'dependencies': [
'<(DEPTH)/ui/webui/resources/cr_elements/cr_drawer/compiled_resources2.gyp:cr_drawer',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:util',
'<(DEPTH)/ui/webui/resources/js/cr/ui/compiled_resources2.gyp:command',
'constants',
'externs',
'history_toolbar',
'history_list',
'side_bar',
'synced_device_card',
'synced_device_manager',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'query_manager',
'dependencies': [
'browser_service',
'externs',
'router',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'router',
'dependencies': [
'constants',
'externs',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'side_bar',
'dependencies': [
'<(DEPTH)/third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior/compiled_resources2.gyp:iron-a11y-keys-behavior-extracted',
'<(DEPTH)/third_party/polymer/v1_0/components-chromium/iron-selector/compiled_resources2.gyp:iron-selector-extracted',
'<(DEPTH)/third_party/polymer/v1_0/components-chromium/paper-ripple/compiled_resources2.gyp:paper-ripple-extracted',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:load_time_data',
'browser_service',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'synced_device_card',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:icon',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:load_time_data',
'<(DEPTH)/ui/webui/resources/js/cr/ui/compiled_resources2.gyp:focus_row',
'browser_service',
'constants',
'externs',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'synced_device_manager',
'dependencies': [
'<(DEPTH)/ui/webui/resources/cr_elements/cr_lazy_render/compiled_resources2.gyp:cr_lazy_render',
'<(DEPTH)/ui/webui/resources/cr_elements/cr_action_menu/compiled_resources2.gyp:cr_action_menu',
'<(DEPTH)/ui/webui/resources/js/cr/ui/compiled_resources2.gyp:focus_grid',
'browser_service',
'synced_device_card',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
],
}
# 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 = [
":control_bar",
":create_profile",
":error_dialog",
":import_supervised_user",
":profile_browser_proxy",
":supervised_user_create_confirm",
":supervised_user_learn_more",
":user_manager_pages",
":user_manager_tutorial",
]
}
js_library("control_bar") {
deps = [
":profile_browser_proxy",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:i18n_behavior",
]
}
js_library("create_profile") {
deps = [
":profile_browser_proxy",
"//ui/webui/resources/cr_elements/cr_profile_avatar_selector:cr_profile_avatar_selector",
"//ui/webui/resources/js:i18n_behavior",
"//ui/webui/resources/js:util",
"//ui/webui/resources/js:web_ui_listener_behavior",
]
}
js_library("error_dialog") {
}
js_library("import_supervised_user") {
deps = [
":profile_browser_proxy",
"//ui/webui/resources/js:i18n_behavior",
]
}
js_library("profile_browser_proxy") {
deps = [
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
]
}
js_library("supervised_user_create_confirm") {
deps = [
":profile_browser_proxy",
"//ui/webui/resources/js:i18n_behavior",
"//ui/webui/resources/js:util",
]
}
js_library("supervised_user_learn_more") {
deps = [
":profile_browser_proxy",
]
}
js_library("user_manager_pages") {
}
js_library("user_manager_tutorial") {
deps = [
"//ui/webui/resources/js:i18n_behavior",
"//ui/webui/resources/js:util",
]
}
# Copyright 2016 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.
{
'targets': [
{
'target_name': 'control_bar',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:i18n_behavior',
'profile_browser_proxy',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'create_profile',
'dependencies': [
'<(DEPTH)/ui/webui/resources/cr_elements/cr_profile_avatar_selector/compiled_resources2.gyp:cr_profile_avatar_selector',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:i18n_behavior',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:util',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:web_ui_listener_behavior',
'profile_browser_proxy',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'error_dialog',
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'import_supervised_user',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:i18n_behavior',
'profile_browser_proxy',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'profile_browser_proxy',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:assert',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'supervised_user_create_confirm',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:i18n_behavior',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:util',
'profile_browser_proxy',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'supervised_user_learn_more',
'dependencies': [
'profile_browser_proxy',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'user_manager_pages',
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'user_manager_tutorial',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:i18n_behavior',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:util',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
],
}
......@@ -2,12 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview 'user-manager-tutorial' is the element that controls the
* tutorial steps for the user manager page.
*/
(function() {
/** @enum {string} */
const TutorialSteps = {
YOUR_CHROME: 'yourChrome',
......@@ -17,6 +11,11 @@ const TutorialSteps = {
NOT_YOU: 'notYou'
};
/**
* @fileoverview 'user-manager-tutorial' is the element that controls the
* tutorial steps for the user manager page.
*/
(function() {
Polymer({
is: 'user-manager-tutorial',
......
# 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 = [
":offline_internals",
":offline_internals_browser_proxy",
]
}
js_library("offline_internals") {
deps = [
":offline_internals_browser_proxy",
"//ui/webui/resources/js:assert",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js:load_time_data",
"//ui/webui/resources/js:util",
]
}
js_library("offline_internals_browser_proxy") {
deps = [
"//ui/webui/resources/js:cr",
]
}
# Copyright 2016 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.
{
'targets': [
{
'target_name': 'offline_internals',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:assert',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:load_time_data',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:util',
'offline_internals_browser_proxy',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'offline_internals_browser_proxy',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
],
}
# 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 = [
":sync_confirmation",
":sync_confirmation_app",
":sync_confirmation_browser_proxy",
]
}
js_library("sync_confirmation") {
deps = [
":sync_confirmation_browser_proxy",
"//ui/webui/resources/js:cr",
]
}
js_library("sync_confirmation_app") {
deps = [
":sync_confirmation_browser_proxy",
"//ui/webui/resources/js:cr",
]
}
js_library("sync_confirmation_browser_proxy") {
deps = [
"//ui/webui/resources/js:cr",
]
externs_list = [ "$externs_path/chrome_send.js" ]
}
# Copyright 2017 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.
{
'targets': [
{
'target_name': 'sync_confirmation',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'sync_confirmation_browser_proxy',
],
'includes': ['../../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'sync_confirmation_app',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'sync_confirmation_browser_proxy',
],
'includes': ['../../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'sync_confirmation_browser_proxy',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'<(EXTERNS_GYP):chrome_send',
],
'includes': ['../../../../../third_party/closure_compiler/compile_js2.gypi'],
},
],
}
\ No newline at end of file
# 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 = [
":about_webapks",
]
}
js_library("about_webapks") {
deps = [
"../../../../ui/webui/resources/js:util",
]
externs_list = [ "$externs_path/chrome_send.js" ]
}
# Copyright 2016 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.
{
'targets': [
{
'target_name': 'about_webapks',
'dependencies': [
'<(EXTERNS_GYP):chrome_send',
'../../../../ui/webui/resources/js/compiled_resources2.gyp:util',
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
],
}
# 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 = [
":welcome_app",
":welcome_browser_proxy",
]
}
js_library("welcome_app") {
deps = [
":welcome_browser_proxy",
"//ui/webui/resources/js:cr",
]
externs_list = [ "$externs_path/web_animations.js" ]
}
js_library("welcome_browser_proxy") {
deps = [
"//ui/webui/resources/js:cr",
]
externs_list = [ "$externs_path/chrome_send.js" ]
}
# Copyright 2016 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.
{
'targets': [
{
'target_name': 'welcome_app',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'<(EXTERNS_GYP):web_animations',
'welcome_browser_proxy',
],
'includes': ['../../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'welcome_browser_proxy',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'<(EXTERNS_GYP):chrome_send',
],
'includes': ['../../../../../third_party/closure_compiler/compile_js2.gypi'],
},
],
}
......@@ -23,23 +23,13 @@
'<(DEPTH)/chrome/browser/resources/chromeos/select_to_speak/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/chromeos/switch_access/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/chromeos/sys_internals/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/cryptotoken/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/download_internals/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/extensions/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/md_downloads/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/md_extensions/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/md_history/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/md_user_manager/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/media_router/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/ntp4/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/offline_pages/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/pdf/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/print_preview/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/print_preview/new/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/settings/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/signin/dice_sync_confirmation/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/webapks/compiled_resources2.gyp:*',
'<(DEPTH)/chrome/browser/resources/welcome/dice_welcome/compiled_resources2.gyp:*',
'<(DEPTH)/ui/file_manager/compiled_resources2.gyp:*',
'<(DEPTH)/ui/webui/resources/cr_components/compiled_resources2.gyp:*',
'<(DEPTH)/ui/webui/resources/cr_elements/compiled_resources2.gyp:*',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment