| OLD | NEW |
| 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 CHROME_BROWSER_CHROMEOS_SYSTEM_INPUT_DEVICE_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_INPUT_DEVICE_SETTINGS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_INPUT_DEVICE_SETTINGS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_INPUT_DEVICE_SETTINGS_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chromeos/chromeos_export.h" | 10 #include "chromeos/chromeos_export.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 179 |
| 180 // Updates the on/off status of the touchscreen/touchpad from the active | 180 // Updates the on/off status of the touchscreen/touchpad from the active |
| 181 // user's preferences. | 181 // user's preferences. |
| 182 void UpdateTouchDevicesStatusFromActiveProfilePrefs(); | 182 void UpdateTouchDevicesStatusFromActiveProfilePrefs(); |
| 183 | 183 |
| 184 // Toggles the status of Touchscreen/Touchpad on or off and updates the local | 184 // Toggles the status of Touchscreen/Touchpad on or off and updates the local |
| 185 // prefs. | 185 // prefs. |
| 186 void ToggleTouchscreen(); | 186 void ToggleTouchscreen(); |
| 187 void ToggleTouchpad(); | 187 void ToggleTouchpad(); |
| 188 | 188 |
| 189 // Returns true if Touchscreen is on, otherwise false. |
| 190 bool IsTouchscreenEnabled() const; |
| 191 |
| 189 // Calls |callback|, possibly asynchronously, after determining if a touchpad | 192 // Calls |callback|, possibly asynchronously, after determining if a touchpad |
| 190 // is connected. | 193 // is connected. |
| 191 virtual void TouchpadExists(const DeviceExistsCallback& callback) = 0; | 194 virtual void TouchpadExists(const DeviceExistsCallback& callback) = 0; |
| 192 | 195 |
| 193 // Updates several touchpad settings at a time. Updates only settings that | 196 // Updates several touchpad settings at a time. Updates only settings that |
| 194 // are set in |settings| object. It is more efficient to use this method to | 197 // are set in |settings| object. It is more efficient to use this method to |
| 195 // update several settings then calling Set* methods one by one. | 198 // update several settings then calling Set* methods one by one. |
| 196 virtual void UpdateTouchpadSettings(const TouchpadSettings& settings) = 0; | 199 virtual void UpdateTouchpadSettings(const TouchpadSettings& settings) = 0; |
| 197 | 200 |
| 198 // Sets the touchpad sensitivity in the range [kMinPointerSensitivity, | 201 // Sets the touchpad sensitivity in the range [kMinPointerSensitivity, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 241 |
| 239 private: | 242 private: |
| 240 virtual void SetInternalTouchpadEnabled(bool enabled) {} | 243 virtual void SetInternalTouchpadEnabled(bool enabled) {} |
| 241 virtual void SetTouchscreensEnabled(bool enabled) {} | 244 virtual void SetTouchscreensEnabled(bool enabled) {} |
| 242 }; | 245 }; |
| 243 | 246 |
| 244 } // namespace system | 247 } // namespace system |
| 245 } // namespace chromeos | 248 } // namespace chromeos |
| 246 | 249 |
| 247 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_INPUT_DEVICE_SETTINGS_H_ | 250 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_INPUT_DEVICE_SETTINGS_H_ |
| OLD | NEW |