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

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

Issue 2533373002: Enabled/disable touch screen in TabletPowerButtonController (Closed)
Patch Set: nits 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
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.h ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0440d50b677a4609b13976f8977f3224b9468497 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -500,12 +500,25 @@ gfx::Image ChromeShellDelegate::GetDeprecatedAcceleratorImage() const {
IDR_BLUETOOTH_KEYBOARD);
}
-void ChromeShellDelegate::ToggleTouchpad() {
- chromeos::system::InputDeviceSettings::Get()->ToggleTouchpad();
+bool ChromeShellDelegate::IsTouchscreenEnabledInPrefs(
+ bool use_local_state) const {
+ return chromeos::system::InputDeviceSettings::Get()
+ ->IsTouchscreenEnabledInPrefs(use_local_state);
+}
+
+void ChromeShellDelegate::SetTouchscreenEnabledInPrefs(bool enabled,
+ bool use_local_state) {
+ chromeos::system::InputDeviceSettings::Get()->SetTouchscreenEnabledInPrefs(
+ enabled, use_local_state);
}
-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() {
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.h ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698