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

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

Issue 2449643002: cros: Updated autoclick section for md-settings. (Closed)
Patch Set: Removed placeholders from settings_strings. Created 4 years, 1 month 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.
27 // If these values get changed then those strings need to be changed as
28 // well.
26 return [ 29 return [
27 {value: 600, 30 {value: 600,
28 name: loadTimeData.getString('delayBeforeClickExtremelyShort')}, 31 name: loadTimeData.getString('delayBeforeClickExtremelyShort')},
29 {value: 800, 32 {value: 800,
30 name: loadTimeData.getString('delayBeforeClickVeryShort')}, 33 name: loadTimeData.getString('delayBeforeClickVeryShort')},
31 {value: 1000, 34 {value: 1000,
32 name: loadTimeData.getString('delayBeforeClickShort')}, 35 name: loadTimeData.getString('delayBeforeClickShort')},
33 {value: 2000, 36 {value: 2000,
34 name: loadTimeData.getString('delayBeforeClickLong')}, 37 name: loadTimeData.getString('delayBeforeClickLong')},
35 {value: 4000, 38 {value: 4000,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 onMouseTap_: function() { 77 onMouseTap_: function() {
75 settings.navigateTo(settings.Route.POINTERS); 78 settings.navigateTo(settings.Route.POINTERS);
76 }, 79 },
77 80
78 /** @private */ 81 /** @private */
79 onMoreFeaturesTap_: function() { 82 onMoreFeaturesTap_: function() {
80 window.open( 83 window.open(
81 'https://chrome.google.com/webstore/category/collection/accessibility'); 84 'https://chrome.google.com/webstore/category/collection/accessibility');
82 }, 85 },
83 }); 86 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698