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

Side by Side 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: Finish i18n Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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 <if expr="chromeos">
Dan Beam 2016/08/01 20:37:03 isn't this whole page only <if cros>? can you jus
dmazzoni 2016/08/02 03:07:02 You're right, done
23 /**
24 * Whether to show experimental accessibility features.
25 * @private {boolean}
26 */
27 showExperimentalFeatures_: {
28 type: Boolean,
29 value: function() {
30 return loadTimeData.getBoolean('showExperimentalA11yFeatures');
31 },
32 },
33
30 autoClickDelayOptions_: { 34 autoClickDelayOptions_: {
31 readOnly: true, 35 readOnly: true,
32 type: Array, 36 type: Array,
33 value: function() { 37 value: function() {
34 return [ 38 return [
35 {value: 600, 39 {value: 600,
36 name: loadTimeData.getString('delayBeforeClickExtremelyShort')}, 40 name: loadTimeData.getString('delayBeforeClickExtremelyShort')},
37 {value: 800, 41 {value: 800,
38 name: loadTimeData.getString('delayBeforeClickVeryShort')}, 42 name: loadTimeData.getString('delayBeforeClickVeryShort')},
39 {value: 1000, 43 {value: 1000,
40 name: loadTimeData.getString('delayBeforeClickShort')}, 44 name: loadTimeData.getString('delayBeforeClickShort')},
41 {value: 2000, 45 {value: 2000,
42 name: loadTimeData.getString('delayBeforeClickLong')}, 46 name: loadTimeData.getString('delayBeforeClickLong')},
43 {value: 4000, 47 {value: 4000,
44 name: loadTimeData.getString('delayBeforeClickVeryLong')}, 48 name: loadTimeData.getString('delayBeforeClickVeryLong')},
45 ]; 49 ];
46 }, 50 },
47 }, 51 },
52 </if>
53 },
48 54
49 /** 55 /** @private */
50 * Whether to show experimental accessibility features. 56 onChromeVoxSettingsTap_: function() {
51 * @private {boolean} 57 chrome.send('showChromeVoxSettings');
52 */ 58 },
53 showExperimentalFeatures_: { 59
54 type: Boolean, 60 /** @private */
55 value: function() { 61 onDisplayTap_: function() {
56 return loadTimeData.getBoolean('showExperimentalA11yFeatures'); 62 settings.navigateTo(settings.Route.DISPLAY);
57 }, 63 },
58 } 64
59 </if> 65 /** @private */
66 onAppearanceTap_: function() {
67 settings.navigateTo(settings.Route.APPEARANCE);
68 },
69
70 /** @private */
71 onKeyboardTap_: function() {
72 settings.navigateTo(settings.Route.KEYBOARD);
73 },
74
75 /** @private */
76 onMouseTap_: function() {
77 settings.navigateTo(settings.Route.POINTERS);
60 }, 78 },
61 79
62 /** @private */ 80 /** @private */
63 onMoreFeaturesTap_: function() { 81 onMoreFeaturesTap_: function() {
64 window.open( 82 window.open(
65 'https://chrome.google.com/webstore/category/collection/accessibility'); 83 'https://chrome.google.com/webstore/category/collection/accessibility');
66 }, 84 },
67 }); 85 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698