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_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_ |
6 #define UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 GesturePropertyProvider* gesture_property_provider | 31 GesturePropertyProvider* gesture_property_provider |
32 #endif | 32 #endif |
33 ); | 33 ); |
34 virtual ~InputControllerEvdev(); | 34 virtual ~InputControllerEvdev(); |
35 | 35 |
36 // InputController overrides: | 36 // InputController overrides: |
37 // | 37 // |
38 // Interfaces for configuring input devices. | 38 // Interfaces for configuring input devices. |
39 bool HasMouse() override; | 39 bool HasMouse() override; |
40 bool HasTouchpad() override; | 40 bool HasTouchpad() override; |
| 41 void DisableInternalTouchpad() override; |
| 42 void EnableInternalTouchpad() override; |
| 43 void DisableInternalKeyboardExceptKeys( |
| 44 scoped_ptr<std::set<KeyboardCode>> excepted_keys) override; |
| 45 void EnableInternalKeyboard() override; |
41 void SetTouchpadSensitivity(int value) override; | 46 void SetTouchpadSensitivity(int value) override; |
42 void SetTapToClick(bool enabled) override; | 47 void SetTapToClick(bool enabled) override; |
43 void SetThreeFingerClick(bool enabled) override; | 48 void SetThreeFingerClick(bool enabled) override; |
44 void SetTapDragging(bool enabled) override; | 49 void SetTapDragging(bool enabled) override; |
45 void SetNaturalScroll(bool enabled) override; | 50 void SetNaturalScroll(bool enabled) override; |
46 void SetMouseSensitivity(int value) override; | 51 void SetMouseSensitivity(int value) override; |
47 void SetPrimaryButtonRight(bool right) override; | 52 void SetPrimaryButtonRight(bool right) override; |
48 | 53 |
49 private: | 54 private: |
50 // Set a property value for all devices of one type. | 55 // Set a property value for all devices of one type. |
(...skipping 14 matching lines...) Expand all Loading... |
65 // Gesture library property provider. | 70 // Gesture library property provider. |
66 GesturePropertyProvider* gesture_property_provider_; // Not owned. | 71 GesturePropertyProvider* gesture_property_provider_; // Not owned. |
67 #endif | 72 #endif |
68 | 73 |
69 DISALLOW_COPY_AND_ASSIGN(InputControllerEvdev); | 74 DISALLOW_COPY_AND_ASSIGN(InputControllerEvdev); |
70 }; | 75 }; |
71 | 76 |
72 } // namespace ui | 77 } // namespace ui |
73 | 78 |
74 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_ | 79 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_ |
OLD | NEW |