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

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

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review Created 3 years, 6 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,
50 value: function() { 54 value: function() {
51 return loadTimeData.getBoolean('showExperimentalA11yFeatures'); 55 return loadTimeData.getBoolean('showExperimentalA11yFeatures');
52 }, 56 },
53 }, 57 },
54 58
55 /** @private */ 59 /** @private */
56 isGuest_: { 60 isGuest_: {
57 type: Boolean, 61 type: Boolean,
58 value: function() { return loadTimeData.getBoolean('isGuest'); } 62 value: function() {
63 return loadTimeData.getBoolean('isGuest');
64 }
59 }, 65 },
60 }, 66 },
61 67
62 /** @private */ 68 /** @private */
63 onChromeVoxSettingsTap_: function() { 69 onChromeVoxSettingsTap_: function() {
64 chrome.send('showChromeVoxSettings'); 70 chrome.send('showChromeVoxSettings');
65 }, 71 },
66 72
67 /** @private */ 73 /** @private */
68 onSelectToSpeakSettingsTap_: function() { 74 onSelectToSpeakSettingsTap_: function() {
(...skipping 26 matching lines...) Expand all
95 /* dynamicParams */ null, /* removeSearch */ true); 101 /* dynamicParams */ null, /* removeSearch */ true);
96 }, 102 },
97 103
98 /** @private */ 104 /** @private */
99 onMouseTap_: function() { 105 onMouseTap_: function() {
100 settings.navigateTo( 106 settings.navigateTo(
101 settings.Route.POINTERS, 107 settings.Route.POINTERS,
102 /* dynamicParams */ null, /* removeSearch */ true); 108 /* dynamicParams */ null, /* removeSearch */ true);
103 }, 109 },
104 }); 110 });
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