Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1468)

Unified Diff: chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js

Issue 1554663002: [Media Router] First Run Flow WebUI and strings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
diff --git a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
index dc070077e456267908c7080870da2432762bc11c..c9858792d0c6a48f3643447f971d047d487ebc84 100644
--- a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
+++ b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
@@ -75,6 +75,36 @@ Polymer({
},
/**
+ * The text for the first run flow button.
+ * @private {string}
+ */
+ firstRunFlowButtonText_: {
+ type: String,
+ readOnly: true,
+ value: loadTimeData.getString('firstRunFlowButton'),
+ },
+
+ /**
+ * The text description for the first run flow.
+ * @private {string}
+ */
+ firstRunFlowText_: {
+ type: String,
+ readOnly: true,
+ value: loadTimeData.getString('firstRunFlowText'),
+ },
+
+ /**
+ * The header of the first run flow.
+ * @private {string}
+ */
+ firstRunFlowTitle_: {
+ type: String,
+ readOnly: true,
+ value: loadTimeData.getString('firstRunFlowTitle'),
+ },
+
+ /**
* The header text for the sink list.
* @type {string}
*/
@@ -162,6 +192,15 @@ Polymer({
},
/**
+ * Whether to show the first run flow.
+ * @private {boolean}
+ */
+ showFirstRunFlow_: {
+ type: Boolean,
+ value: false,
+ },
+
+ /**
* The cast mode shown to the user. Initially set to auto mode. (See
* media_router.CastMode documentation for details on auto mode.)
* This value may be changed in one of the following ways:
@@ -248,6 +287,16 @@ Polymer({
},
/**
+ * Fires an acknowledge-first-run-flow event. This is call when the first run
+ * flow button is clicked.
+ *
+ * @private
+ */
+ acknowledgeFirstRunFlow_: function() {
+ this.fire('acknowledge-first-run-flow');
+ },
+
+ /**
* Checks that the currently selected cast mode is still in the
* updated list of available cast modes. If not, then update the selected
* cast mode to the first available cast mode on the list.

Powered by Google App Engine
This is Rietveld 408576698