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

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

Issue 1412623006: Developer Feature: Add Debug Accelerators to Toggle Touchscreen/Touchpad On or Off (CrOS) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sadrul's comment Created 5 years, 1 month 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_impl_ozone.cc
diff --git a/chrome/browser/chromeos/system/input_device_settings_impl_ozone.cc b/chrome/browser/chromeos/system/input_device_settings_impl_ozone.cc
index b9e92df6d83dab6270822ae2b481abd34e52d5cb..3a3d98e773d675fb3b505bb32081181cd55df44f 100644
--- a/chrome/browser/chromeos/system/input_device_settings_impl_ozone.cc
+++ b/chrome/browser/chromeos/system/input_device_settings_impl_ozone.cc
@@ -39,6 +39,8 @@ class InputDeviceSettingsImplOzone : public InputDeviceSettings {
void SetPrimaryButtonRight(bool right) override;
void ReapplyTouchpadSettings() override;
void ReapplyMouseSettings() override;
+ void SetInternalTouchpadEnabled(bool enabled) override;
+ void SetTouchscreensEnabled(bool enabled) override;
// Cached InputController pointer. It should be fixed throughout the browser
// session.
@@ -128,6 +130,14 @@ void InputDeviceSettingsImplOzone::ReapplyMouseSettings() {
MouseSettings::Apply(current_mouse_settings_, this);
}
+void InputDeviceSettingsImplOzone::SetInternalTouchpadEnabled(bool enabled) {
+ input_controller_->SetInternalTouchpadEnabled(enabled);
+}
+
+void InputDeviceSettingsImplOzone::SetTouchscreensEnabled(bool enabled) {
+ input_controller_->SetTouchscreensEnabled(enabled);
+}
+
} // namespace
// static

Powered by Google App Engine
This is Rietveld 408576698