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 settings page containing accessibility |
8 * settings. | 8 * settings. |
9 * | 9 * |
10 * Example: | 10 * Example: |
11 * | 11 * |
12 * <iron-animated-pages> | 12 * <iron-animated-pages> |
13 * <settings-a11y-page prefs="{{prefs}}"></settings-a11y-page> | 13 * <settings-a11y-page prefs="{{prefs}}"></settings-a11y-page> |
14 * ... other pages ... | 14 * ... other pages ... |
15 * </iron-animated-pages> | 15 * </iron-animated-pages> |
16 */ | 16 */ |
17 Polymer({ | 17 Polymer({ |
18 is: 'settings-a11y-page', | 18 is: 'settings-a11y-page', |
19 | 19 |
20 properties: { | 20 properties: { |
21 /** | 21 /** |
22 * Preferences state. | 22 * Preferences state. |
23 */ | 23 */ |
24 prefs: { | 24 prefs: { |
25 type: Object, | 25 type: Object, |
26 notify: true, | 26 notify: true, |
27 }, | 27 }, |
28 | 28 |
29 <if expr="chromeos"> | 29 <if expr="chromeos"> |
| 30 autoClickDelayOptions_: { |
| 31 readOnly: true, |
| 32 type: Array, |
| 33 value: function() { |
| 34 return [ |
| 35 {value: 600, |
| 36 name: loadTimeData.getString('delayBeforeClickExtremelyShort')}, |
| 37 {value: 800, |
| 38 name: loadTimeData.getString('delayBeforeClickVeryShort')}, |
| 39 {value: 1000, |
| 40 name: loadTimeData.getString('delayBeforeClickShort')}, |
| 41 {value: 2000, |
| 42 name: loadTimeData.getString('delayBeforeClickLong')}, |
| 43 {value: 4000, |
| 44 name: loadTimeData.getString('delayBeforeClickVeryLong')}, |
| 45 ]; |
| 46 }, |
| 47 }, |
| 48 |
30 /** | 49 /** |
31 * Whether to show experimental accessibility features. | 50 * Whether to show experimental accessibility features. |
32 * @private {boolean} | 51 * @private {boolean} |
33 */ | 52 */ |
34 showExperimentalFeatures_: { | 53 showExperimentalFeatures_: { |
35 type: Boolean, | 54 type: Boolean, |
36 value: function() { | 55 value: function() { |
37 return loadTimeData.getBoolean('showExperimentalA11yFeatures'); | 56 return loadTimeData.getBoolean('showExperimentalA11yFeatures'); |
38 }, | 57 }, |
39 } | 58 } |
40 </if> | 59 </if> |
41 }, | 60 }, |
42 | 61 |
43 /** @private */ | 62 /** @private */ |
44 onMoreFeaturesTap_: function() { | 63 onMoreFeaturesTap_: function() { |
45 window.open( | 64 window.open( |
46 'https://chrome.google.com/webstore/category/collection/accessibility'); | 65 'https://chrome.google.com/webstore/category/collection/accessibility'); |
47 }, | 66 }, |
48 }); | 67 }); |
OLD | NEW |