Chromium Code Reviews| Index: chrome/browser/chromeos/system/input_device_settings.h |
| diff --git a/chrome/browser/chromeos/system/input_device_settings.h b/chrome/browser/chromeos/system/input_device_settings.h |
| index 5cf208f29a27b384e3d53e4eaf9dad212c6a6cdf..d3bb1a6c51c807009b7b5cfca0e9210e89c01207 100644 |
| --- a/chrome/browser/chromeos/system/input_device_settings.h |
| +++ b/chrome/browser/chromeos/system/input_device_settings.h |
| @@ -174,16 +174,28 @@ class CHROMEOS_EXPORT InputDeviceSettings { |
| // where other input devices like mouse are absent. |
| static bool ForceKeyboardDrivenUINavigation(); |
| + // Registers local pref names for touch screen status. |
|
Daniel Erat
2016/12/02 21:48:57
nit: s/touch screen/touchscreen/
Qiang(Joe) Xu
2016/12/02 23:55:11
Done.
|
| + static void RegisterPrefs(PrefRegistrySimple* registry); |
| + |
| // Registers profile pref names for touchpad and touch screen statuses. |
| static void RegisterProfilePrefs(PrefRegistrySimple* registry); |
| - // Updates the on/off status of the touchscreen/touchpad from the active |
| - // user's preferences. |
| - void UpdateTouchDevicesStatusFromActiveProfilePrefs(); |
| + // Updates the on/off status of the touchscreen/touchpad from the preferences. |
| + void UpdateTouchDevicesStatusFromPrefs(); |
| + |
| + // If |is_local| is true, returns the touchscreen status from local prefs, |
| + // otherwise from user prefs. |
| + bool IsTouchscreenEnabledInPrefs(bool is_local) const; |
| + |
| + // Sets the status of touchscreen to |enabled| in prefs. If |is_local|, pref |
| + // is set in local pref, otherwise in user pref. |
|
Daniel Erat
2016/12/02 21:48:57
nit: s/local pref/local state/
Qiang(Joe) Xu
2016/12/02 23:55:11
Done.
|
| + void SetTouchscreenEnabledInPrefs(bool enabled, bool is_local); |
| + |
| + // Updates the on/off status of the touchscreen from the combination of local |
| + // and user's preferences. |
| + void UpdateTouchscreenStatusFromPrefs(); |
| - // Toggles the status of Touchscreen/Touchpad on or off and updates the local |
| - // prefs. |
| - void ToggleTouchscreen(); |
| + // Toggles the status of touchpad on or off and updates the user prefs. |
| void ToggleTouchpad(); |
| // Calls |callback|, possibly asynchronously, after determining if a touchpad |