| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |