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

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

Issue 9232010: [uber page] Migrate all elements in the 'System' (cros) page to new locations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 SettingsDialog = options.SettingsDialog; 6 const 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 13 matching lines...) Expand all
24 24
25 /** 25 /**
26 * Initialize the page. 26 * Initialize the page.
27 */ 27 */
28 initializePage: function() { 28 initializePage: function() {
29 // Call base class implementation to start preference initialization. 29 // Call base class implementation to start preference initialization.
30 SettingsDialog.prototype.initializePage.call(this); 30 SettingsDialog.prototype.initializePage.call(this);
31 }, 31 },
32 }; 32 };
33 33
34 /**
35 * Sets the visibility state of the touchpad group.
36 */
37 PointerOverlay.showTouchpadControls = function(show) {
38 $('pointer-section-touchpad').hidden = !show;
39 };
40
41 /**
42 * Sets the visibility state of the mouse group.
43 */
44 PointerOverlay.showMouseControls = function(show) {
45 $('pointer-section-mouse').hidden = !show;
46 };
47
34 // Export 48 // Export
35 return { 49 return {
36 PointerOverlay: PointerOverlay 50 PointerOverlay: PointerOverlay
37 }; 51 };
38 }); 52 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698