Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / chromeos / system / fake_input_device_settings.h
blob5138454e9c26fb1b2bb3bee1bd6ac0dad0670f27
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"
12 namespace chromeos {
13 namespace system {
15 // This fake just memorizes current values of input devices settings.
16 class FakeInputDeviceSettings : public InputDeviceSettings {
17 public:
18 FakeInputDeviceSettings();
19 ~FakeInputDeviceSettings() override;
21 // Overridden from InputDeviceSettings.
22 void TouchpadExists(const DeviceExistsCallback& callback) override;
23 void UpdateTouchpadSettings(const TouchpadSettings& settings) override;
24 void SetTouchpadSensitivity(int value) override;
25 void SetTapToClick(bool enabled) override;
26 void SetThreeFingerClick(bool enabled) override;
27 void SetTapDragging(bool enabled) override;
28 void MouseExists(const DeviceExistsCallback& callback) override;
29 void UpdateMouseSettings(const MouseSettings& settings) override;
30 void SetMouseSensitivity(int value) override;
31 void SetPrimaryButtonRight(bool right) override;
32 void SetNaturalScroll(bool enabled) override;
33 void ReapplyTouchpadSettings() override;
34 void ReapplyMouseSettings() override;
36 const TouchpadSettings& current_touchpad_settings() const {
37 return current_touchpad_settings_;
40 const MouseSettings& current_mouse_settings() const {
41 return current_mouse_settings_;
44 private:
45 TouchpadSettings current_touchpad_settings_;
46 MouseSettings current_mouse_settings_;
48 DISALLOW_COPY_AND_ASSIGN(FakeInputDeviceSettings);
51 } // namespace system
52 } // namespace chromeos
54 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_