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

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate.cc

Issue 2533373002: Enabled/disable touch screen in TabletPowerButtonController (Closed)
Patch Set: add SetTouchscreenEnabled and OnLoginStateChanged Created 4 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/ui/ash/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
index 9d462407fa66620ab9042a61bd7f99f92aebda23..33aff9a3139fa58c7edcff7488dbd58bdbdc5269 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -505,12 +505,16 @@ gfx::Image ChromeShellDelegate::GetDeprecatedAcceleratorImage() const {
IDR_BLUETOOTH_KEYBOARD);
}
-void ChromeShellDelegate::ToggleTouchpad() {
- chromeos::system::InputDeviceSettings::Get()->ToggleTouchpad();
+bool ChromeShellDelegate::IsTouchscreenEnabled() const {
+ return chromeos::system::InputDeviceSettings::Get()->IsTouchscreenEnabled();
+}
+
+void ChromeShellDelegate::SetTouchscreenEnabled(bool enabled) {
+ chromeos::system::InputDeviceSettings::Get()->SetTouchscreenEnabled(enabled);
}
-void ChromeShellDelegate::ToggleTouchscreen() {
- chromeos::system::InputDeviceSettings::Get()->ToggleTouchscreen();
+void ChromeShellDelegate::ToggleTouchpad() {
+ chromeos::system::InputDeviceSettings::Get()->ToggleTouchpad();
}
keyboard::KeyboardUI* ChromeShellDelegate::CreateKeyboardUI() {

Powered by Google App Engine
This is Rietveld 408576698