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 <set> | 8 #include <set> |
9 #include <string> | |
9 | 10 |
10 #include "base/macros.h" | 11 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "ui/ozone/ozone_export.h" | 13 #include "ui/ozone/ozone_export.h" |
13 | 14 |
14 namespace base { | 15 namespace base { |
15 class TimeDelta; | 16 class TimeDelta; |
16 } | 17 } |
17 | 18 |
18 namespace ui { | 19 namespace ui { |
(...skipping 29 matching lines...) Expand all Loading... | |
48 virtual void SetTouchpadSensitivity(int value) = 0; | 49 virtual void SetTouchpadSensitivity(int value) = 0; |
49 virtual void SetTapToClick(bool enabled) = 0; | 50 virtual void SetTapToClick(bool enabled) = 0; |
50 virtual void SetThreeFingerClick(bool enabled) = 0; | 51 virtual void SetThreeFingerClick(bool enabled) = 0; |
51 virtual void SetTapDragging(bool enabled) = 0; | 52 virtual void SetTapDragging(bool enabled) = 0; |
52 virtual void SetNaturalScroll(bool enabled) = 0; | 53 virtual void SetNaturalScroll(bool enabled) = 0; |
53 | 54 |
54 // Mouse settings. | 55 // Mouse settings. |
55 virtual void SetMouseSensitivity(int value) = 0; | 56 virtual void SetMouseSensitivity(int value) = 0; |
56 virtual void SetPrimaryButtonRight(bool right) = 0; | 57 virtual void SetPrimaryButtonRight(bool right) = 0; |
57 | 58 |
59 // Touch log collection. | |
60 virtual std::string GetGestureDeviceStatus() = 0; | |
spang
2015/01/23 18:39:43
This needs to be asynchronous because we are movin
| |
61 | |
58 // Temporarily enable/disable Tap-to-click. Used to enhance the user | 62 // Temporarily enable/disable Tap-to-click. Used to enhance the user |
59 // experience in some use cases (e.g., typing, watching video). | 63 // experience in some use cases (e.g., typing, watching video). |
60 virtual void SetTapToClickPaused(bool state) = 0; | 64 virtual void SetTapToClickPaused(bool state) = 0; |
61 | 65 |
62 // Disables the internal touchpad. | 66 // Disables the internal touchpad. |
63 virtual void DisableInternalTouchpad() = 0; | 67 virtual void DisableInternalTouchpad() = 0; |
64 | 68 |
65 // Enables the internal touchpad. | 69 // Enables the internal touchpad. |
66 virtual void EnableInternalTouchpad() = 0; | 70 virtual void EnableInternalTouchpad() = 0; |
67 | 71 |
68 // Disables all keys on the internal keyboard except |excepted_keys|. | 72 // Disables all keys on the internal keyboard except |excepted_keys|. |
69 virtual void DisableInternalKeyboardExceptKeys( | 73 virtual void DisableInternalKeyboardExceptKeys( |
70 scoped_ptr<std::set<DomCode>> excepted_keys) = 0; | 74 scoped_ptr<std::set<DomCode>> excepted_keys) = 0; |
71 | 75 |
72 // Enables all keys on the internal keyboard. | 76 // Enables all keys on the internal keyboard. |
73 virtual void EnableInternalKeyboard() = 0; | 77 virtual void EnableInternalKeyboard() = 0; |
74 | 78 |
75 private: | 79 private: |
76 DISALLOW_COPY_AND_ASSIGN(InputController); | 80 DISALLOW_COPY_AND_ASSIGN(InputController); |
77 }; | 81 }; |
78 | 82 |
79 // Create an input controller that does nothing. | 83 // Create an input controller that does nothing. |
80 OZONE_EXPORT scoped_ptr<InputController> CreateStubInputController(); | 84 OZONE_EXPORT scoped_ptr<InputController> CreateStubInputController(); |
81 | 85 |
82 } // namespace ui | 86 } // namespace ui |
83 | 87 |
84 #endif // UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ | 88 #endif // UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_ |
OLD | NEW |