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

Side by Side Diff: chrome/browser/resources/settings/a11y_page/a11y_page.js

Issue 2200463002: Reorganize accessibility settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ExtensionRegistry 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 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
michaelpg 2016/08/02 17:38:29 nit: remove "a link to"
michaelpg 2016/08/02 17:38:29 "a couple of simple settings or links on most plat
dmazzoni 2016/08/02 17:47:10 Fixed both
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 },
30 },
28 31
29 <if expr="chromeos"> 32 <if expr="chromeos">
30 autoClickDelayOptions_: { 33 /** @private */
31 readOnly: true, 34 onManageAccessibilityFeaturesTap_: function() {
32 type: Array, 35 settings.navigateTo(settings.Route.MANAGE_ACCESSIBILITY);
33 value: function() { 36 },
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
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> 37 </if>
60 },
61 38
62 /** @private */ 39 /** @private */
63 onMoreFeaturesTap_: function() { 40 onMoreFeaturesTap_: function() {
64 window.open( 41 window.open(
65 'https://chrome.google.com/webstore/category/collection/accessibility'); 42 'https://chrome.google.com/webstore/category/collection/accessibility');
66 }, 43 },
67 }); 44 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698