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

Unified Diff: chrome/browser/resources/chromeos/login/oobe_welcome.js

Issue 2223213003: ChromeOS: Implement Accessibility Options screen of material design OOBE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix presubmit. Created 4 years, 4 months 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/chromeos/login/oobe_welcome.js
diff --git a/chrome/browser/resources/chromeos/login/oobe_welcome.js b/chrome/browser/resources/chromeos/login/oobe_welcome.js
index 52cb4f9aeec03d47362eb603e2b8b1461f4c265b..8a5540489eb5bffb308faed1713a52532707a566 100644
--- a/chrome/browser/resources/chromeos/login/oobe_welcome.js
+++ b/chrome/browser/resources/chromeos/login/oobe_welcome.js
@@ -51,6 +51,14 @@ Polymer({
},
/**
+ * Flag that shows Accessibility Options screen.
+ */
+ accessibilityOptionsScreenShown: {
+ type: Boolean,
+ value: false,
+ },
+
+ /**
* Flag that shows Network Selection screen.
*/
networkSelectionScreenShown: {
@@ -65,6 +73,14 @@ Polymer({
type: Boolean,
value: false,
},
+
+ /**
+ * Accessibility options status.
+ * @type {!OobeTypes.A11yStatuses}
+ */
+ a11yStatus: {
+ type: Object,
+ },
},
/**
@@ -74,6 +90,7 @@ Polymer({
this.welcomeScreenShown = false;
this.networkSelectionScreenShown = false;
this.languageSelectionScreenShown = false;
+ this.accessibilityOptionsScreenShown = false;
},
/**
@@ -149,6 +166,16 @@ Polymer({
},
/**
+ * Handle "Accessibility" button for "Welcome" screen.
+ *
+ * @private
+ */
+ onWelcomeAccessibilityButtonClicked_: function() {
+ this.hideAllScreens_();
+ this.accessibilityOptionsScreenShown = true;
+ },
+
+ /**
* Handle Networwork Setup screen "Proxy settings" button.
*
* @private
@@ -280,4 +307,29 @@ Polymer({
this.hideAllScreens_();
this.welcomeScreenShown = true;
},
+
+ /** ******************** Accessibility section ******************* */
+
+ /**
+ * Handle "OK" button for "Accessibility Options" screen.
+ *
+ * @private
+ */
+ closeAccessibilitySection_: function() {
+ this.hideAllScreens_();
+ this.welcomeScreenShown = true;
+ },
+
+ /**
+ * Handle all accessibility buttons.
+ * Note that each <oobe-a11y-option> has chromeMessage attribute
+ * containing Chromium callback name.
+ *
+ * @private
+ * @param {!Event} event
+ */
+ onA11yOptionChanged_: function(event) {
+ chrome.send(
+ event.currentTarget.chromeMessage, [event.currentTarget.checked]);
+ },
});

Powered by Google App Engine
This is Rietveld 408576698