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

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

Issue 2153963002: Autoclick on md-settings is synced with autoclick on settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fixed indentation. Created 4 years, 5 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 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 autoClickDelayOptions_: {
michaelpg 2016/07/16 08:36:27 this should be inside the <if expr="chromeos"> bel
sammiequon 2016/07/20 17:19:31 Done.
29 readOnly: true,
michaelpg 2016/07/16 08:36:27 2 space indent, not 1
sammiequon 2016/07/20 17:19:31 Done.
30 type: Array,
31 value: function() {
32 return [
33 {value: 600,
34 name: loadTimeData.getString('delayBeforeClickExtremelyShort')},
35 {value: 800,
36 name: loadTimeData.getString('delayBeforeClickVeryShort')},
37 {value: 1000,
38 name: loadTimeData.getString('delayBeforeClickShort')},
39 {value: 2000,
40 name: loadTimeData.getString('delayBeforeClickLong')},
41 {value: 4000,
42 name: loadTimeData.getString('delayBeforeClickVeryLong')},
43 ];
44 },
45 },
29 <if expr="chromeos"> 46 <if expr="chromeos">
30 /** 47 /**
31 * Whether to show experimental accessibility features. 48 * Whether to show experimental accessibility features.
32 * @private {boolean} 49 * @private {boolean}
33 */ 50 */
34 showExperimentalFeatures_: { 51 showExperimentalFeatures_: {
35 type: Boolean, 52 type: Boolean,
36 value: function() { 53 value: function() {
37 return loadTimeData.getBoolean('showExperimentalA11yFeatures'); 54 return loadTimeData.getBoolean('showExperimentalA11yFeatures');
38 }, 55 },
39 } 56 }
40 </if> 57 </if>
41 }, 58 },
42 59
43 /** @private */ 60 /** @private */
44 onMoreFeaturesTap_: function() { 61 onMoreFeaturesTap_: function() {
45 window.open( 62 window.open(
46 'https://chrome.google.com/webstore/category/collection/accessibility'); 63 'https://chrome.google.com/webstore/category/collection/accessibility');
47 }, 64 },
48 }); 65 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698