| 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]);
|
| + },
|
| });
|
|
|