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

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

Issue 410293004: Split OptionsPage into Page and PageManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed feedback 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).
(...skipping 10 matching lines...) Expand all
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 26
27 /** 27 /**
28 * Initialize the page. 28 * Initialize the page.
29 */ 29 */
30 initializePage: function() { 30 initializePage: function() {
31 // Call base class implementation to start preference initialization.
32 SettingsDialog.prototype.initializePage.call(this); 31 SettingsDialog.prototype.initializePage.call(this);
33 }, 32 },
34 }; 33 };
35 34
36 /** 35 /**
37 * Sets the visibility state of the touchpad group. 36 * Sets the visibility state of the touchpad group.
38 * @param {boolean} show True to show, false to hide. 37 * @param {boolean} show True to show, false to hide.
39 */ 38 */
40 PointerOverlay.showTouchpadControls = function(show) { 39 PointerOverlay.showTouchpadControls = function(show) {
41 $('pointer-section-touchpad').hidden = !show; 40 $('pointer-section-touchpad').hidden = !show;
(...skipping 27 matching lines...) Expand all
69 button.hidden = true; 68 button.hidden = true;
70 noPointersLabel.hidden = false; 69 noPointersLabel.hidden = false;
71 } 70 }
72 }; 71 };
73 72
74 // Export 73 // Export
75 return { 74 return {
76 PointerOverlay: PointerOverlay 75 PointerOverlay: PointerOverlay
77 }; 76 };
78 }); 77 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698