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

Unified Diff: chrome/browser/resources/settings/a11y_page/a11y_page.js

Issue 1785833002: Add 5 experimental accessibility features on Chrome OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ported to md-settings too Created 4 years, 9 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/settings/a11y_page/a11y_page.js
diff --git a/chrome/browser/resources/settings/a11y_page/a11y_page.js b/chrome/browser/resources/settings/a11y_page/a11y_page.js
index dbb55f3f747e6407480ddd447ed4ee513987e435..33499cd97b98d26c37c33f35fb394841d7ea5bb2 100644
--- a/chrome/browser/resources/settings/a11y_page/a11y_page.js
+++ b/chrome/browser/resources/settings/a11y_page/a11y_page.js
@@ -25,6 +25,9 @@ Polymer({
type: Object,
notify: true,
},
+
+ /** @private Whether to show experimental accessibility features. */
+ showExperimentalFeatures_: Boolean,
Dan Beam 2016/03/11 22:07:20 I think this is all you need: /** * Whether to s
},
/** @private */
@@ -32,4 +35,20 @@ Polymer({
window.open(
'https://chrome.google.com/webstore/category/collection/accessibility');
},
+
+ /** @override */
+ ready: function() {
+ cr.addWebUIListener('show-experimental-features',
+ this.onShowExperimentalFeatures_.bind(this));
+ chrome.send('initializeAccessibilityPage');
+ },
+
+ /**
+ * Handler for updating whether experimental accessibility features
+ * should be shown.
Dan Beam 2016/03/11 22:07:20 @param {boolean} show ...
+ * @private
+ */
+ onShowExperimentalFeatures_: function(show) {
+ this.showExperimentalFeatures_ = show;
+ },
});

Powered by Google App Engine
This is Rietveld 408576698