| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FAKE_INPUT_DEVICE_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "chrome/browser/chromeos/system/input_device_settings.h" | 10 #include "chrome/browser/chromeos/system/input_device_settings.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 virtual void UpdateTouchpadSettings(const TouchpadSettings& settings) | 23 virtual void UpdateTouchpadSettings(const TouchpadSettings& settings) |
| 24 OVERRIDE; | 24 OVERRIDE; |
| 25 virtual void SetTouchpadSensitivity(int value) OVERRIDE; | 25 virtual void SetTouchpadSensitivity(int value) OVERRIDE; |
| 26 virtual void SetTapToClick(bool enabled) OVERRIDE; | 26 virtual void SetTapToClick(bool enabled) OVERRIDE; |
| 27 virtual void SetThreeFingerClick(bool enabled) OVERRIDE; | 27 virtual void SetThreeFingerClick(bool enabled) OVERRIDE; |
| 28 virtual void SetTapDragging(bool enabled) OVERRIDE; | 28 virtual void SetTapDragging(bool enabled) OVERRIDE; |
| 29 virtual void MouseExists(const DeviceExistsCallback& callback) OVERRIDE; | 29 virtual void MouseExists(const DeviceExistsCallback& callback) OVERRIDE; |
| 30 virtual void UpdateMouseSettings(const MouseSettings& settings) OVERRIDE; | 30 virtual void UpdateMouseSettings(const MouseSettings& settings) OVERRIDE; |
| 31 virtual void SetMouseSensitivity(int value) OVERRIDE; | 31 virtual void SetMouseSensitivity(int value) OVERRIDE; |
| 32 virtual void SetPrimaryButtonRight(bool right) OVERRIDE; | 32 virtual void SetPrimaryButtonRight(bool right) OVERRIDE; |
| 33 virtual void SetNaturalScroll(bool enabled) OVERRIDE; | |
| 34 | |
| 35 virtual bool ForceKeyboardDrivenUINavigation() OVERRIDE; | 33 virtual bool ForceKeyboardDrivenUINavigation() OVERRIDE; |
| 36 virtual void ReapplyTouchpadSettings() OVERRIDE; | 34 virtual void ReapplyTouchpadSettings() OVERRIDE; |
| 37 virtual void ReapplyMouseSettings() OVERRIDE; | 35 virtual void ReapplyMouseSettings() OVERRIDE; |
| 38 | 36 |
| 39 const TouchpadSettings& current_touchpad_settings() const { | 37 const TouchpadSettings& current_touchpad_settings() const { |
| 40 return current_touchpad_settings_; | 38 return current_touchpad_settings_; |
| 41 } | 39 } |
| 42 | 40 |
| 43 const MouseSettings& current_mouse_settings() const { | 41 const MouseSettings& current_mouse_settings() const { |
| 44 return current_mouse_settings_; | 42 return current_mouse_settings_; |
| 45 } | 43 } |
| 46 | 44 |
| 47 private: | 45 private: |
| 48 TouchpadSettings current_touchpad_settings_; | 46 TouchpadSettings current_touchpad_settings_; |
| 49 MouseSettings current_mouse_settings_; | 47 MouseSettings current_mouse_settings_; |
| 50 | 48 |
| 51 DISALLOW_COPY_AND_ASSIGN(FakeInputDeviceSettings); | 49 DISALLOW_COPY_AND_ASSIGN(FakeInputDeviceSettings); |
| 52 }; | 50 }; |
| 53 | 51 |
| 54 } // namespace system | 52 } // namespace system |
| 55 } // namespace chromeos | 53 } // namespace chromeos |
| 56 | 54 |
| 57 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_ | 55 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_ |
| OLD | NEW |