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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "chrome/browser/chromeos/system/input_device_settings.h"
15 // This fake just memorizes current values of input devices settings.
16 class FakeInputDeviceSettings
: public InputDeviceSettings
{
18 FakeInputDeviceSettings();
19 virtual ~FakeInputDeviceSettings();
21 // Overridden from InputDeviceSettings.
22 virtual void TouchpadExists(const DeviceExistsCallback
& callback
) OVERRIDE
;
23 virtual void UpdateTouchpadSettings(const TouchpadSettings
& settings
)
25 virtual void SetTouchpadSensitivity(int value
) OVERRIDE
;
26 virtual void SetTapToClick(bool enabled
) OVERRIDE
;
27 virtual void SetThreeFingerClick(bool enabled
) OVERRIDE
;
28 virtual void SetTapDragging(bool enabled
) OVERRIDE
;
29 virtual void MouseExists(const DeviceExistsCallback
& callback
) OVERRIDE
;
30 virtual void UpdateMouseSettings(const MouseSettings
& settings
) OVERRIDE
;
31 virtual void SetMouseSensitivity(int value
) OVERRIDE
;
32 virtual void SetPrimaryButtonRight(bool right
) OVERRIDE
;
33 virtual void SetNaturalScroll(bool enabled
) OVERRIDE
;
35 virtual bool ForceKeyboardDrivenUINavigation() OVERRIDE
;
36 virtual void ReapplyTouchpadSettings() OVERRIDE
;
37 virtual void ReapplyMouseSettings() OVERRIDE
;
39 const TouchpadSettings
& current_touchpad_settings() const {
40 return current_touchpad_settings_
;
43 const MouseSettings
& current_mouse_settings() const {
44 return current_mouse_settings_
;
48 TouchpadSettings current_touchpad_settings_
;
49 MouseSettings current_mouse_settings_
;
51 DISALLOW_COPY_AND_ASSIGN(FakeInputDeviceSettings
);
55 } // namespace chromeos
57 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_