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 UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ | 5 #ifndef UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ |
6 #define UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ | 6 #define UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" |
9 #include "ui/ozone/ozone_export.h" | 10 #include "ui/ozone/ozone_export.h" |
10 | 11 |
11 namespace ui { | 12 namespace ui { |
12 | 13 |
13 // Platform-specific interface for controlling input devices. | 14 // Platform-specific interface for controlling input devices. |
14 // | 15 // |
15 // The object provides methods for the preference page to configure input | 16 // The object provides methods for the preference page to configure input |
16 // devices w.r.t. the user setting. On ChromeOS, this replaces the inputcontrol | 17 // devices w.r.t. the user setting. On ChromeOS, this replaces the inputcontrol |
17 // script that is originally located at /opt/google/chrome/. | 18 // script that is originally located at /opt/google/chrome/. |
18 class OZONE_EXPORT InputController { | 19 class OZONE_EXPORT InputController { |
(...skipping 13 matching lines...) Expand all Loading... |
32 virtual void SetThreeFingerClick(bool enabled) = 0; | 33 virtual void SetThreeFingerClick(bool enabled) = 0; |
33 virtual void SetTapDragging(bool enabled) = 0; | 34 virtual void SetTapDragging(bool enabled) = 0; |
34 virtual void SetNaturalScroll(bool enabled) = 0; | 35 virtual void SetNaturalScroll(bool enabled) = 0; |
35 virtual void SetMouseSensitivity(int value) = 0; | 36 virtual void SetMouseSensitivity(int value) = 0; |
36 virtual void SetPrimaryButtonRight(bool right) = 0; | 37 virtual void SetPrimaryButtonRight(bool right) = 0; |
37 | 38 |
38 private: | 39 private: |
39 DISALLOW_COPY_AND_ASSIGN(InputController); | 40 DISALLOW_COPY_AND_ASSIGN(InputController); |
40 }; | 41 }; |
41 | 42 |
| 43 // Create an input controller that does nothing. |
| 44 OZONE_EXPORT scoped_ptr<InputController> CreateStubInputController(); |
| 45 |
42 } // namespace ui | 46 } // namespace ui |
43 | 47 |
44 #endif // UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ | 48 #endif // UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ |
OLD | NEW |