Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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-manage-a11y-page' is the subpage with the accessibility |
| 8 * settings. | 8 * settings. |
| 9 * | |
| 10 * Example: | |
| 11 * | |
| 12 * <iron-animated-pages> | |
| 13 * <settings-a11y-page prefs="{{prefs}}"></settings-a11y-page> | |
| 14 * ... other pages ... | |
| 15 * </iron-animated-pages> | |
| 16 */ | 9 */ |
| 17 Polymer({ | 10 Polymer({ |
| 18 is: 'settings-a11y-page', | 11 is: 'settings-manage-a11y-page', |
| 19 | 12 |
| 20 properties: { | 13 properties: { |
| 21 /** | 14 /** |
| 22 * Preferences state. | 15 * Preferences state. |
| 23 */ | 16 */ |
| 24 prefs: { | 17 prefs: { |
| 25 type: Object, | 18 type: Object, |
| 26 notify: true, | 19 notify: true, |
| 27 }, | 20 }, |
| 28 | 21 |
| 29 <if expr="chromeos"> | 22 /** |
| 23 * Whether to show experimental accessibility features. | |
| 24 * @private {boolean} | |
| 25 */ | |
| 26 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.
| |
| 27 type: Boolean, | |
| 28 value: function() { | |
| 29 return loadTimeData.getBoolean('showExperimentalA11yFeatures'); | |
| 30 }, | |
| 31 }, | |
| 32 | |
| 30 autoClickDelayOptions_: { | 33 autoClickDelayOptions_: { |
| 31 readOnly: true, | 34 readOnly: true, |
| 32 type: Array, | 35 type: Array, |
| 33 value: function() { | 36 value: function() { |
| 34 return [ | 37 return [ |
| 35 {value: 600, | 38 {value: 600, |
| 36 name: loadTimeData.getString('delayBeforeClickExtremelyShort')}, | 39 name: loadTimeData.getString('delayBeforeClickExtremelyShort')}, |
| 37 {value: 800, | 40 {value: 800, |
| 38 name: loadTimeData.getString('delayBeforeClickVeryShort')}, | 41 name: loadTimeData.getString('delayBeforeClickVeryShort')}, |
| 39 {value: 1000, | 42 {value: 1000, |
| 40 name: loadTimeData.getString('delayBeforeClickShort')}, | 43 name: loadTimeData.getString('delayBeforeClickShort')}, |
| 41 {value: 2000, | 44 {value: 2000, |
| 42 name: loadTimeData.getString('delayBeforeClickLong')}, | 45 name: loadTimeData.getString('delayBeforeClickLong')}, |
| 43 {value: 4000, | 46 {value: 4000, |
| 44 name: loadTimeData.getString('delayBeforeClickVeryLong')}, | 47 name: loadTimeData.getString('delayBeforeClickVeryLong')}, |
| 45 ]; | 48 ]; |
| 46 }, | 49 }, |
| 47 }, | 50 }, |
| 48 | |
| 49 /** | |
| 50 * Whether to show experimental accessibility features. | |
| 51 * @private {boolean} | |
| 52 */ | |
| 53 showExperimentalFeatures_: { | |
| 54 type: Boolean, | |
| 55 value: function() { | |
| 56 return loadTimeData.getBoolean('showExperimentalA11yFeatures'); | |
| 57 }, | |
| 58 } | |
| 59 </if> | |
| 60 }, | 51 }, |
| 61 | 52 |
| 62 /** @private */ | 53 /** @private */ |
| 54 onChromeVoxSettingsTap_: function() { | |
| 55 chrome.send('showChromeVoxSettings'); | |
| 56 }, | |
| 57 | |
| 58 /** @private */ | |
| 59 onDisplayTap_: function() { | |
| 60 settings.navigateTo(settings.Route.DISPLAY); | |
| 61 }, | |
| 62 | |
| 63 /** @private */ | |
| 64 onAppearanceTap_: function() { | |
| 65 settings.navigateTo(settings.Route.APPEARANCE); | |
| 66 }, | |
| 67 | |
| 68 /** @private */ | |
| 69 onKeyboardTap_: function() { | |
| 70 settings.navigateTo(settings.Route.KEYBOARD); | |
| 71 }, | |
| 72 | |
| 73 /** @private */ | |
| 74 onMouseTap_: function() { | |
| 75 settings.navigateTo(settings.Route.POINTERS); | |
| 76 }, | |
| 77 | |
| 78 /** @private */ | |
| 63 onMoreFeaturesTap_: function() { | 79 onMoreFeaturesTap_: function() { |
| 64 window.open( | 80 window.open( |
| 65 'https://chrome.google.com/webstore/category/collection/accessibility'); | 81 'https://chrome.google.com/webstore/category/collection/accessibility'); |
| 66 }, | 82 }, |
| 67 }); | 83 }); |
| OLD | NEW |