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

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

Issue 570503002: Compile chrome://settings, part 6 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_options_errors_4
Patch Set: fix asserts, rebase Created 6 years, 3 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 (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
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698