Chromium Code Reviews| Index: chrome/browser/resources/settings/a11y_page/manage_a11y_page.js |
| diff --git a/chrome/browser/resources/settings/a11y_page/a11y_page.js b/chrome/browser/resources/settings/a11y_page/manage_a11y_page.js |
| similarity index 65% |
| copy from chrome/browser/resources/settings/a11y_page/a11y_page.js |
| copy to chrome/browser/resources/settings/a11y_page/manage_a11y_page.js |
| index 2ee16f1d392c79385a03fd02d6ea2abf7aabdf36..51ea9616acfb5c53029aca618092b7c0c9fa0257 100644 |
| --- a/chrome/browser/resources/settings/a11y_page/a11y_page.js |
| +++ b/chrome/browser/resources/settings/a11y_page/manage_a11y_page.js |
| @@ -1,21 +1,14 @@ |
| -// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// 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-a11y-page' is the settings page containing accessibility |
| + * 'settings-manage-a11y-page' is the subpage with the accessibility |
| * settings. |
| - * |
| - * Example: |
| - * |
| - * <iron-animated-pages> |
| - * <settings-a11y-page prefs="{{prefs}}"></settings-a11y-page> |
| - * ... other pages ... |
| - * </iron-animated-pages> |
| */ |
| Polymer({ |
| - is: 'settings-a11y-page', |
| + is: 'settings-manage-a11y-page', |
| properties: { |
| /** |
| @@ -26,7 +19,17 @@ Polymer({ |
| notify: true, |
| }, |
| -<if expr="chromeos"> |
| + /** |
| + * Whether to show experimental accessibility features. |
| + * @private {boolean} |
| + */ |
| + showExperimentalFeatures_: { |
|
Dan Beam
2016/08/04 17:57:05
why did you move this above autoClickDelayOptions_
dmazzoni
2016/08/05 06:48:56
No reason. Moved it back for a shorter diff.
|
| + type: Boolean, |
| + value: function() { |
| + return loadTimeData.getBoolean('showExperimentalA11yFeatures'); |
| + }, |
| + }, |
| + |
| autoClickDelayOptions_: { |
| readOnly: true, |
| type: Array, |
| @@ -45,18 +48,31 @@ Polymer({ |
| ]; |
| }, |
| }, |
| + }, |
| - /** |
| - * Whether to show experimental accessibility features. |
| - * @private {boolean} |
| - */ |
| - showExperimentalFeatures_: { |
| - type: Boolean, |
| - value: function() { |
| - return loadTimeData.getBoolean('showExperimentalA11yFeatures'); |
| - }, |
| - } |
| -</if> |
| + /** @private */ |
| + onChromeVoxSettingsTap_: function() { |
| + chrome.send('showChromeVoxSettings'); |
| + }, |
| + |
| + /** @private */ |
| + onDisplayTap_: function() { |
| + 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 */ |