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

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

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: 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 (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 /** @const */ var SettingsDialog = options.SettingsDialog; 6 /** @const */ var SettingsDialog = options.SettingsDialog;
7 7
8 /** 8 /**
9 * PointerOverlay class 9 * PointerOverlay class
10 * Dialog that allows users to set pointer settings (touchpad/mouse). 10 * Dialog that allows users to set pointer settings (touchpad/mouse).
11 * @constructor 11 * @constructor
12 * @extends {options.SettingsDialog} 12 * @extends {options.SettingsDialog}
13 */ 13 */
14 function PointerOverlay() { 14 function PointerOverlay() {
15 // The title is updated dynamically in the setTitle method as pointer 15 // The title is updated dynamically in the setTitle method as pointer
16 // devices are discovered or removed. 16 // devices are discovered or removed.
17 SettingsDialog.call(this, 'pointer-overlay', 17 SettingsDialog.call(
18 '', 'pointer-overlay', 18 this, 'pointer-overlay', '', 'pointer-overlay',
19 assertInstanceof($('pointer-overlay-confirm'), HTMLButtonElement), 19 assertInstanceof($('pointer-overlay-confirm'), HTMLButtonElement),
20 assertInstanceof($('pointer-overlay-cancel'), HTMLButtonElement)); 20 assertInstanceof($('pointer-overlay-cancel'), HTMLButtonElement));
21 } 21 }
22 22
23 cr.addSingletonGetter(PointerOverlay); 23 cr.addSingletonGetter(PointerOverlay);
24 24
25 PointerOverlay.prototype = { 25 PointerOverlay.prototype = {
26 __proto__: SettingsDialog.prototype, 26 __proto__: SettingsDialog.prototype,
27 }; 27 };
28 28
(...skipping 29 matching lines...) Expand all
58 button.textContent = title; 58 button.textContent = title;
59 button.hidden = false; 59 button.hidden = false;
60 noPointersLabel.hidden = true; 60 noPointersLabel.hidden = true;
61 } else { 61 } else {
62 button.hidden = true; 62 button.hidden = true;
63 noPointersLabel.hidden = false; 63 noPointersLabel.hidden = false;
64 } 64 }
65 }; 65 };
66 66
67 // Export 67 // Export
68 return { 68 return {PointerOverlay: PointerOverlay};
69 PointerOverlay: PointerOverlay
70 };
71 }); 69 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698