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

Side by Side Diff: chrome/browser/resources/options/chromeos/keyboard_overlay.js

Issue 426723004: options: Remove a bunch of useless: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 cr.define('options', function() { 5 cr.define('options', function() {
6 6
7 /** 7 /**
8 * Auto-repeat delays (in ms) for the corresponding slider values, from 8 * Auto-repeat delays (in ms) for the corresponding slider values, from
9 * long to short. The values were chosen to provide a large range while giving 9 * long to short. The values were chosen to provide a large range while giving
10 * several options near the defaults. 10 * several options near the defaults.
(...skipping 22 matching lines...) Expand all
33 loadTimeData.getString('keyboardOverlayTitle'), 33 loadTimeData.getString('keyboardOverlayTitle'),
34 'keyboard-overlay', 34 'keyboard-overlay',
35 $('keyboard-confirm'), $('keyboard-cancel')); 35 $('keyboard-confirm'), $('keyboard-cancel'));
36 } 36 }
37 37
38 cr.addSingletonGetter(KeyboardOverlay); 38 cr.addSingletonGetter(KeyboardOverlay);
39 39
40 KeyboardOverlay.prototype = { 40 KeyboardOverlay.prototype = {
41 __proto__: options.SettingsDialog.prototype, 41 __proto__: options.SettingsDialog.prototype,
42 42
43 /** 43 /** @override */
44 * Initializes the page. This method is called in initialize.
45 */
46 initializePage: function() { 44 initializePage: function() {
47 options.SettingsDialog.prototype.initializePage.call(this); 45 options.SettingsDialog.prototype.initializePage.call(this);
48 46
49 $('enable-auto-repeat').customPrefChangeHandler = 47 $('enable-auto-repeat').customPrefChangeHandler =
50 this.handleAutoRepeatEnabledPrefChange_.bind(this); 48 this.handleAutoRepeatEnabledPrefChange_.bind(this);
51 49
52 var autoRepeatDelayRange = $('auto-repeat-delay-range'); 50 var autoRepeatDelayRange = $('auto-repeat-delay-range');
53 autoRepeatDelayRange.valueMap = AUTO_REPEAT_DELAYS; 51 autoRepeatDelayRange.valueMap = AUTO_REPEAT_DELAYS;
54 autoRepeatDelayRange.max = AUTO_REPEAT_DELAYS.length - 1; 52 autoRepeatDelayRange.max = AUTO_REPEAT_DELAYS.length - 1;
55 autoRepeatDelayRange.customPrefChangeHandler = 53 autoRepeatDelayRange.customPrefChangeHandler =
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 var instance = KeyboardOverlay.getInstance(); 168 var instance = KeyboardOverlay.getInstance();
171 return instance[name + '_'].apply(instance, arguments); 169 return instance[name + '_'].apply(instance, arguments);
172 }; 170 };
173 }); 171 });
174 172
175 // Export 173 // Export
176 return { 174 return {
177 KeyboardOverlay: KeyboardOverlay 175 KeyboardOverlay: KeyboardOverlay
178 }; 176 };
179 }); 177 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698