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

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

Issue 2200463002: Reorganize accessibility settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/manage_a11y_page.js
diff --git a/chrome/browser/resources/settings/a11y_page/manage_a11y_page.js b/chrome/browser/resources/settings/a11y_page/manage_a11y_page.js
new file mode 100644
index 0000000000000000000000000000000000000000..0802c1e8faceae0501dcc22d860aaf222e3beeb5
--- /dev/null
+++ b/chrome/browser/resources/settings/a11y_page/manage_a11y_page.js
@@ -0,0 +1,70 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview
+ * 'settings-manage-a11y-page' is the subpage with the accessibility
+ * settings.
+ */
+Polymer({
+ is: 'settings-manage-a11y-page',
+
+ properties: {
+ /**
+ * Preferences state.
+ */
+ prefs: {
+ type: Object,
+ notify: true,
+ },
+
+ /**
+ * Whether to show experimental accessibility features.
+ * @private {boolean}
+ */
+ showExperimentalFeatures_: {
+ type: Boolean,
+ value: function() {
+ return loadTimeData.getBoolean('showExperimentalA11yFeatures');
+ },
+ },
+ },
+
+ /** @private */
+ onChromeVoxSettingsTap_: function() {
+ window.open(
+ 'chrome-extension://mndnfokpggljbaajbnioimlmbfngpief/chromevox/background/options.html');
michaelpg 2016/07/29 22:14:21 wrap also, should we do this in C++? https://cs.c
dmazzoni 2016/08/01 18:45:24 Good idea, done - and thanks for pointing me to an
+ },
+
+ /** @private */
+ onDisplayTap_: function() {
+ console.log('onDisplayTap');
+ console.log(this);
+ console.log(settings);
+ console.log(settings.navigateTo);
+ settings.navigateTo(settings.Route.DISPLAY);
+ },
+
+ /** @private */
+ onAppearanceTap_: function() {
+ settings.navigateTo(settings.Route.APPEARANCE);
+ },
+
+ /** @private */
+ onKeyboardTap_: function() {
+ settings.navigateTo(settings.Route.KEYBOARD);
+ },
+
+ /** @private */
+ onMouseTap_: function() {
+ settings.navigateTo(settings.Route.POINTERS);
+ },
+
+ /** @private */
+ onMoreFeaturesTap_: function() {
+ window.open(
+ 'https://chrome.google.com/webstore/category/collection/accessibility');
+ },
+
michaelpg 2016/07/29 22:14:21 nit: remove blank line
dmazzoni 2016/08/01 18:45:23 Done
+});

Powered by Google App Engine
This is Rietveld 408576698