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

Unified Diff: chrome/browser/ui/webui/options/chromeos/system_options_handler.cc

Issue 8249011: Remove 'Enable tap-to-click' checkbox for non-touchpad devices. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add missing system_options.html file Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/chromeos/system_options_handler.cc
===================================================================
--- chrome/browser/ui/webui/options/chromeos/system_options_handler.cc (revision 104953)
+++ chrome/browser/ui/webui/options/chromeos/system_options_handler.cc (working copy)
@@ -18,6 +18,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chromeos/accessibility_util.h"
#include "chrome/browser/chromeos/language_preferences.h"
+#include "chrome/browser/chromeos/system/touchpad_settings.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -117,6 +118,10 @@
web_ui_->CallJavascriptFunction(
"options.SystemOptions.showBluetoothSettings");
}
+
+ if (!chromeos::system::touchpad_settings::TouchpadExists())
+ web_ui_->CallJavascriptFunction(
+ "options.SystemOptions.hideTapToClick");
}
void SystemOptionsHandler::RegisterMessages() {

Powered by Google App Engine
This is Rietveld 408576698