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

Unified Diff: chrome/browser/chromeos/system/input_device_settings.cc

Issue 10264019: Support for cros touchpad 3-finger click as middle button. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years, 8 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/chromeos/system/input_device_settings.cc
===================================================================
--- chrome/browser/chromeos/system/input_device_settings.cc (revision 134766)
+++ chrome/browser/chromeos/system/input_device_settings.cc (working copy)
@@ -107,6 +107,13 @@
ExecuteScript(3, kTpControl, "taptoclick", enabled ? "on" : "off");
}
+void SetThreeFingerClick(bool enabled) {
+ ExecuteScript(3, kTpControl, "three_finger_click", enabled ? "on" : "off");
+ // For Alex/ZGB.
+ ExecuteScript(3, kTpControl, "t5r2_three_finger_click",
+ enabled ? "on" : "off");
+}
+
} // namespace touchpad_settings
namespace mouse_settings {
« no previous file with comments | « chrome/browser/chromeos/system/input_device_settings.h ('k') | chrome/browser/prefs/command_line_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698