OLD | NEW |
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 15 matching lines...) Expand all Loading... |
26 | 26 |
27 /** | 27 /** |
28 * Encapsulated handling of the keyboard overlay. | 28 * Encapsulated handling of the keyboard overlay. |
29 * @constructor | 29 * @constructor |
30 * @extends {options.SettingsDialog} | 30 * @extends {options.SettingsDialog} |
31 */ | 31 */ |
32 function KeyboardOverlay() { | 32 function KeyboardOverlay() { |
33 options.SettingsDialog.call(this, 'keyboard-overlay', | 33 options.SettingsDialog.call(this, 'keyboard-overlay', |
34 loadTimeData.getString('keyboardOverlayTabTitle'), | 34 loadTimeData.getString('keyboardOverlayTabTitle'), |
35 'keyboard-overlay', | 35 'keyboard-overlay', |
36 $('keyboard-confirm'), $('keyboard-cancel')); | 36 assertInstanceof($('keyboard-confirm'), HTMLButtonElement), |
| 37 assertInstanceof($('keyboard-cancel'), HTMLButtonElement)); |
37 } | 38 } |
38 | 39 |
39 cr.addSingletonGetter(KeyboardOverlay); | 40 cr.addSingletonGetter(KeyboardOverlay); |
40 | 41 |
41 KeyboardOverlay.prototype = { | 42 KeyboardOverlay.prototype = { |
42 __proto__: options.SettingsDialog.prototype, | 43 __proto__: options.SettingsDialog.prototype, |
43 | 44 |
44 /** @override */ | 45 /** @override */ |
45 initializePage: function() { | 46 initializePage: function() { |
46 options.SettingsDialog.prototype.initializePage.call(this); | 47 options.SettingsDialog.prototype.initializePage.call(this); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 cr.makePublic(KeyboardOverlay, [ | 165 cr.makePublic(KeyboardOverlay, [ |
165 'showCapsLockOptions', | 166 'showCapsLockOptions', |
166 'showDiamondKeyOptions', | 167 'showDiamondKeyOptions', |
167 ]); | 168 ]); |
168 | 169 |
169 // Export | 170 // Export |
170 return { | 171 return { |
171 KeyboardOverlay: KeyboardOverlay | 172 KeyboardOverlay: KeyboardOverlay |
172 }; | 173 }; |
173 }); | 174 }); |
OLD | NEW |