Index: chrome/browser/resources/options/chromeos/system_options.js |
=================================================================== |
--- chrome/browser/resources/options/chromeos/system_options.js (revision 115428) |
+++ chrome/browser/resources/options/chromeos/system_options.js (working copy) |
@@ -188,12 +188,21 @@ |
}; |
/** |
- * Displays the Touchpad Controls section when we detect a touchpad. |
+ * Displays the touchpad controls section when we detect a touchpad, hides it |
+ * otherwise. |
*/ |
- SystemOptions.showTouchpadControls = function() { |
- $('touchpad-controls').hidden = false; |
+ SystemOptions.showTouchpadControls = function(show) { |
+ $('touchpad-controls').hidden = !show; |
}; |
+ /** |
+ * Displays the mouse controls section when we detect a mouse, hides it |
+ * otherwise. |
+ */ |
+ SystemOptions.showMouseControls = function(show) { |
+ $('mouse-controls').hidden = !show; |
+ }; |
+ |
// Export |
return { |
SystemOptions: SystemOptions |