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

Unified Diff: chrome/browser/resources/options/chromeos/system_options.js

Issue 8965070: Change system settings based on when mouse/touchpad is connected/disconnected. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 9 years 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698