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

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

Issue 2533373002: Enabled/disable touch screen in TabletPowerButtonController (Closed)
Patch Set: add local pref for TouchScreenEnabled 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 9dc97584a7cdcf7c5394bccfa44dcec9f023ec0c..2af1199fa419ab324071b286a59bd526ea21079f 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -500,12 +500,24 @@ gfx::Image ChromeShellDelegate::GetDeprecatedAcceleratorImage() const {
IDR_BLUETOOTH_KEYBOARD);
}
-void ChromeShellDelegate::ToggleTouchpad() {
- chromeos::system::InputDeviceSettings::Get()->ToggleTouchpad();
+bool ChromeShellDelegate::IsTouchscreenEnabledInPrefs(bool is_local) const {
+ return chromeos::system::InputDeviceSettings::Get()
+ ->IsTouchscreenEnabledInPrefs(is_local);
+}
+
+void ChromeShellDelegate::SetTouchscreenEnabledInPrefs(bool enabled,
+ bool is_local) {
+ chromeos::system::InputDeviceSettings::Get()->SetTouchscreenEnabledInPrefs(
+ enabled, is_local);
}
-void ChromeShellDelegate::ToggleTouchscreen() {
- chromeos::system::InputDeviceSettings::Get()->ToggleTouchscreen();
+void ChromeShellDelegate::UpdateTouchscreenStatusFromPrefs() {
+ chromeos::system::InputDeviceSettings::Get()
+ ->UpdateTouchscreenStatusFromPrefs();
+}
+
+void ChromeShellDelegate::ToggleTouchpad() {
+ chromeos::system::InputDeviceSettings::Get()->ToggleTouchpad();
}
keyboard::KeyboardUI* ChromeShellDelegate::CreateKeyboardUI() {

Powered by Google App Engine
This is Rietveld 408576698