Commit b6953033 authored by Nnamdi Theodore Johnson-Kanu's avatar Nnamdi Theodore Johnson-Kanu Committed by Commit Bot

[CrOS Cellular] Migrate cellular_setup/subflow_behavior.js to Polymer3

Bug: 1111477
Change-Id: Icaaaed1d8373c6071992b2936ff34d7c485e5c70
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2376311
Commit-Queue: Nnamdi Theodore Johnson-kanu <tjohnsonkanu@google.com>
Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#801805}
parent 5f7b1261
...@@ -129,12 +129,14 @@ js_type_check("closure_compile_module") { ...@@ -129,12 +129,14 @@ js_type_check("closure_compile_module") {
":cellular_types.m", ":cellular_types.m",
# ":cellular_setup.m", # ":cellular_setup.m",
# ":esim_flow_ui.m",
":final_page.m", ":final_page.m",
":mojo_interface_provider.m", ":mojo_interface_provider.m",
":provisioning_page.m", ":provisioning_page.m",
# ":psim_flow_ui.m", # ":psim_flow_ui.m",
":sim_detect_page.m", ":sim_detect_page.m",
":subflow_behavior.m",
# ":setup_selection_flow.m", # ":setup_selection_flow.m",
":webview_post_util.m", ":webview_post_util.m",
...@@ -203,16 +205,21 @@ js_library("provisioning_page.m") { ...@@ -203,16 +205,21 @@ js_library("provisioning_page.m") {
js_library("button_bar.m") { js_library("button_bar.m") {
sources = [ "$root_gen_dir/ui/webui/resources/cr_components/chromeos/cellular_setup/button_bar.m.js" ] sources = [ "$root_gen_dir/ui/webui/resources/cr_components/chromeos/cellular_setup/button_bar.m.js" ]
deps = [ deps = [
":cellular_types.m",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled", "//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/js:i18n_behavior.m", "//ui/webui/resources/js:i18n_behavior.m",
":cellular_types.m",
] ]
extra_deps = [ ":button_bar_module" ] extra_deps = [ ":button_bar_module" ]
} }
js_library("cellular_types.m") { js_library("cellular_types.m") {
sources = [ "$root_gen_dir/ui/webui/resources/cr_components/chromeos/cellular_setup/cellular_types.m.js" ] sources = [ "$root_gen_dir/ui/webui/resources/cr_components/chromeos/cellular_setup/cellular_types.m.js" ]
deps = [] extra_deps = [ ":modulize" ]
}
js_library("subflow_behavior.m") {
sources = [ "$root_gen_dir/ui/webui/resources/cr_components/chromeos/cellular_setup/subflow_behavior.m.js" ]
deps = [ ":cellular_types.m" ]
extra_deps = [ ":modulize" ] extra_deps = [ ":modulize" ]
} }
...@@ -269,9 +276,10 @@ polymer_modulizer("provisioning_page") { ...@@ -269,9 +276,10 @@ polymer_modulizer("provisioning_page") {
js_modulizer("modulize") { js_modulizer("modulize") {
input_files = [ input_files = [
"cellular_types.js",
"mojo_interface_provider.js", "mojo_interface_provider.js",
"subflow_behavior.js",
"webview_post_util.js", "webview_post_util.js",
"cellular_types.js"
] ]
namespace_rewrites = cr_components_chromeos_namespace_rewrites namespace_rewrites = cr_components_chromeos_namespace_rewrites
} }
<link rel="import" href="../../../html/cr.html"> <link rel="import" href="../../../html/cr.html">
<link rel="import" href="../../../html/i18n_behavior.html"> <link rel="import" href="../../../html/i18n_behavior.html">
<link rel="import" href="./cellular_types.js">
<script src="subflow_behavior.js"></script> <script src="subflow_behavior.js"></script>
\ No newline at end of file
...@@ -2,13 +2,16 @@ ...@@ -2,13 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// #import {assertNotReached} from 'chrome://resources/js/assert.m.js';
// #import {ButtonBarState} from "./cellular_types.m.js";
/** /**
* @fileoverview Polymer behavior for dealing with Cellular setup subflows. * @fileoverview Polymer behavior for dealing with Cellular setup subflows.
* It includes some methods and property shared between subflows. * It includes some methods and property shared between subflows.
*/ */
/** @polymerBehavior */ /** @polymerBehavior */
const SubflowBehavior = { /* #export */ const SubflowBehavior = {
properties: { properties: {
/** /**
......
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