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

Side by Side Diff: chrome/browser/resources/options/chromeos/pointer_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 /** @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 * @extends {SettingsDialog} 11 * @extends {SettingsDialog}
12 */ 12 */
13 function PointerOverlay() { 13 function PointerOverlay() {
14 // The title is updated dynamically in the setTitle method as pointer 14 // The title is updated dynamically in the setTitle method as pointer
15 // devices are discovered or removed. 15 // devices are discovered or removed.
16 SettingsDialog.call(this, 'pointer-overlay', 16 SettingsDialog.call(this, 'pointer-overlay',
17 '', 'pointer-overlay', 17 '', 'pointer-overlay',
18 $('pointer-overlay-confirm'), 18 $('pointer-overlay-confirm'),
19 $('pointer-overlay-cancel')); 19 $('pointer-overlay-cancel'));
20 } 20 }
21 21
22 cr.addSingletonGetter(PointerOverlay); 22 cr.addSingletonGetter(PointerOverlay);
23 23
24 PointerOverlay.prototype = { 24 PointerOverlay.prototype = {
25 __proto__: SettingsDialog.prototype, 25 __proto__: SettingsDialog.prototype,
26
27 /**
28 * Initialize the page.
29 */
30 initializePage: function() {
31 // Call base class implementation to start preference initialization.
32 SettingsDialog.prototype.initializePage.call(this);
33 },
34 }; 26 };
35 27
36 /** 28 /**
37 * Sets the visibility state of the touchpad group. 29 * Sets the visibility state of the touchpad group.
38 * @param {boolean} show True to show, false to hide. 30 * @param {boolean} show True to show, false to hide.
39 */ 31 */
40 PointerOverlay.showTouchpadControls = function(show) { 32 PointerOverlay.showTouchpadControls = function(show) {
41 $('pointer-section-touchpad').hidden = !show; 33 $('pointer-section-touchpad').hidden = !show;
42 }; 34 };
43 35
(...skipping 25 matching lines...) Expand all
69 button.hidden = true; 61 button.hidden = true;
70 noPointersLabel.hidden = false; 62 noPointersLabel.hidden = false;
71 } 63 }
72 }; 64 };
73 65
74 // Export 66 // Export
75 return { 67 return {
76 PointerOverlay: PointerOverlay 68 PointerOverlay: PointerOverlay
77 }; 69 };
78 }); 70 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698