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

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

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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 2016 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-manage-a11y-page' is the subpage with the accessibility 7 * 'settings-manage-a11y-page' is the subpage with the accessibility
8 * settings. 8 * settings.
9 */ 9 */
10 Polymer({ 10 Polymer({
11 is: 'settings-manage-a11y-page', 11 is: 'settings-manage-a11y-page',
12 12
13 properties: { 13 properties: {
14 /** 14 /**
15 * Preferences state. 15 * Preferences state.
16 */ 16 */
17 prefs: { 17 prefs: {
18 type: Object, 18 type: Object,
19 notify: true, 19 notify: true,
20 }, 20 },
21 21
22 autoClickDelayOptions_: { 22 autoClickDelayOptions_: {
23 readOnly: true, 23 readOnly: true,
24 type: Array, 24 type: Array,
25 value: function() { 25 value: function() {
26 // These values correspond to the i18n values in settings_strings.grdp. 26 // These values correspond to the i18n values in settings_strings.grdp.
27 // If these values get changed then those strings need to be changed as 27 // If these values get changed then those strings need to be changed as
28 // well. 28 // well.
29 return [ 29 return [
30 {value: 600, 30 {
31 name: loadTimeData.getString('delayBeforeClickExtremelyShort')}, 31 value: 600,
32 {value: 800, 32 name: loadTimeData.getString('delayBeforeClickExtremelyShort')
33 name: loadTimeData.getString('delayBeforeClickVeryShort')}, 33 },
34 {value: 1000, 34 {
35 name: loadTimeData.getString('delayBeforeClickShort')}, 35 value: 800,
36 {value: 2000, 36 name: loadTimeData.getString('delayBeforeClickVeryShort')
37 name: loadTimeData.getString('delayBeforeClickLong')}, 37 },
38 {value: 4000, 38 {value: 1000, name: loadTimeData.getString('delayBeforeClickShort')},
39 name: loadTimeData.getString('delayBeforeClickVeryLong')}, 39 {value: 2000, name: loadTimeData.getString('delayBeforeClickLong')},
40 {
41 value: 4000,
42 name: loadTimeData.getString('delayBeforeClickVeryLong')
43 },
40 ]; 44 ];
41 }, 45 },
42 }, 46 },
43 47
44 /** 48 /**
45 * Whether to show experimental accessibility features. 49 * Whether to show experimental accessibility features.
46 * @private {boolean} 50 * @private {boolean}
47 */ 51 */
48 showExperimentalFeatures_: { 52 showExperimentalFeatures_: {
49 type: Boolean, 53 type: Boolean,
(...skipping 27 matching lines...) Expand all
77 onMouseTap_: function() { 81 onMouseTap_: function() {
78 settings.navigateTo(settings.Route.POINTERS); 82 settings.navigateTo(settings.Route.POINTERS);
79 }, 83 },
80 84
81 /** @private */ 85 /** @private */
82 onMoreFeaturesTap_: function() { 86 onMoreFeaturesTap_: function() {
83 window.open( 87 window.open(
84 'https://chrome.google.com/webstore/category/collection/accessibility'); 88 'https://chrome.google.com/webstore/category/collection/accessibility');
85 }, 89 },
86 }); 90 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/a11y_page/a11y_page.js ('k') | chrome/browser/resources/settings/about_page/about_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698