| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-a11y-page' is the settings page containing accessibility | 7 * 'settings-a11y-page' is the small section of advanced settings with |
| 8 * settings. | 8 * a couple of simple settings or links on most platforms, and a link to |
| 9 * | 9 * a subpage with lots of other settings on Chrome OS. |
| 10 * Example: | |
| 11 * | |
| 12 * <iron-animated-pages> | |
| 13 * <settings-a11y-page prefs="{{prefs}}"></settings-a11y-page> | |
| 14 * ... other pages ... | |
| 15 * </iron-animated-pages> | |
| 16 */ | 10 */ |
| 17 Polymer({ | 11 Polymer({ |
| 18 is: 'settings-a11y-page', | 12 is: 'settings-a11y-page', |
| 19 | 13 |
| 20 properties: { | 14 properties: { |
| 21 /** | 15 /** |
| 16 * The current active route. |
| 17 */ |
| 18 currentRoute: { |
| 19 type: Object, |
| 20 notify: true, |
| 21 }, |
| 22 |
| 23 /** |
| 22 * Preferences state. | 24 * Preferences state. |
| 23 */ | 25 */ |
| 24 prefs: { | 26 prefs: { |
| 25 type: Object, | 27 type: Object, |
| 26 notify: true, | 28 notify: true, |
| 27 }, | 29 }, |
| 28 | |
| 29 <if expr="chromeos"> | |
| 30 /** | |
| 31 * Whether to show experimental accessibility features. | |
| 32 * @private {boolean} | |
| 33 */ | |
| 34 showExperimentalFeatures_: { | |
| 35 type: Boolean, | |
| 36 value: function() { | |
| 37 return loadTimeData.getBoolean('showExperimentalA11yFeatures'); | |
| 38 }, | |
| 39 } | |
| 40 </if> | |
| 41 }, | 30 }, |
| 42 | 31 |
| 43 /** @private */ | 32 /** @private */ |
| 44 onMoreFeaturesTap_: function() { | 33 onManageAccessibilityFeaturesTap_: function() { |
| 45 window.open( | 34 this.$.pages.setSubpageChain(['manage-a11y']); |
| 46 'https://chrome.google.com/webstore/category/collection/accessibility'); | |
| 47 }, | 35 }, |
| 48 }); | 36 }); |
| OLD | NEW |