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

Side by Side Diff: ash/common/shell_delegate.h

Issue 2533373002: Enabled/disable touch screen in TabletPowerButtonController (Closed)
Patch Set: based on comments from derat@ 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_COMMON_SHELL_DELEGATE_H_ 5 #ifndef ASH_COMMON_SHELL_DELEGATE_H_
6 #define ASH_COMMON_SHELL_DELEGATE_H_ 6 #define ASH_COMMON_SHELL_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // Creates a GPU support object. Shell takes ownership of the object. 126 // Creates a GPU support object. Shell takes ownership of the object.
127 virtual GPUSupport* CreateGPUSupport() = 0; 127 virtual GPUSupport* CreateGPUSupport() = 0;
128 128
129 // Get the product name. 129 // Get the product name.
130 virtual base::string16 GetProductName() const = 0; 130 virtual base::string16 GetProductName() const = 0;
131 131
132 virtual void OpenKeyboardShortcutHelpPage() const {} 132 virtual void OpenKeyboardShortcutHelpPage() const {}
133 133
134 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; 134 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0;
135 135
136 // Toggles the status of the touchpad / touchscreen on or off. 136 // If |use_local_state| is true, returns the touchscreen status from local
137 // prefs, otherwise from user prefs.
Daniel Erat 2016/12/03 00:08:44 nit: s/local prefs/local state/
Qiang(Joe) Xu 2016/12/03 01:02:44 Done.
138 virtual bool IsTouchscreenEnabledInPrefs(bool use_local_state) const = 0;
139
140 // Sets the status of touchscreen to |enabled| in prefs. If |use_local_state|,
141 // pref is set in local pref, otherwise in user pref.
Daniel Erat 2016/12/03 00:08:44 nit: s/local pref/local state/, s/user pref/user p
Qiang(Joe) Xu 2016/12/03 01:02:44 Done.
142 virtual void SetTouchscreenEnabledInPrefs(bool enabled,
143 bool use_local_state) = 0;
144
145 // Updates the on/off status of the touchscreen from the combination of local
Daniel Erat 2016/12/03 00:08:44 nit: s/local/local state/ i think it'd probably b
Qiang(Joe) Xu 2016/12/03 01:02:44 Done.
146 // and user's preferences.
147 virtual void UpdateTouchscreenStatusFromPrefs() = 0;
148
149 // Toggles the status of the touchpad on or off.
137 virtual void ToggleTouchpad() {} 150 virtual void ToggleTouchpad() {}
138 virtual void ToggleTouchscreen() {}
139 }; 151 };
140 152
141 } // namespace ash 153 } // namespace ash
142 154
143 #endif // ASH_COMMON_SHELL_DELEGATE_H_ 155 #endif // ASH_COMMON_SHELL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698