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. 4 5#ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_ 6#define CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_ 7 8#include "base/compiler_specific.h" 9#include "base/macros.h" 10#include "chrome/browser/chromeos/system/input_device_settings.h" 11 12namespace chromeos { 13namespace system { 14 15// This fake just memorizes current values of input devices settings. 16class FakeInputDeviceSettings : public InputDeviceSettings { 17 public: 18 FakeInputDeviceSettings(); 19 virtual ~FakeInputDeviceSettings(); 20 21 // Overridden from InputDeviceSettings. 22 virtual void TouchpadExists(const DeviceExistsCallback& callback) OVERRIDE; 23 virtual void UpdateTouchpadSettings(const TouchpadSettings& settings) 24 OVERRIDE; 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; 34 35 virtual bool ForceKeyboardDrivenUINavigation() OVERRIDE; 36 virtual void ReapplyTouchpadSettings() OVERRIDE; 37 virtual void ReapplyMouseSettings() OVERRIDE; 38 39 const TouchpadSettings& current_touchpad_settings() const { 40 return current_touchpad_settings_; 41 } 42 43 const MouseSettings& current_mouse_settings() const { 44 return current_mouse_settings_; 45 } 46 47 private: 48 TouchpadSettings current_touchpad_settings_; 49 MouseSettings current_mouse_settings_; 50 51 DISALLOW_COPY_AND_ASSIGN(FakeInputDeviceSettings); 52}; 53 54} // namespace system 55} // namespace chromeos 56 57#endif // CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_ 58