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_DEVICE_FACTORY_PROXY_EVDEV_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_PROXY_EVDEV_H_ |
6 #define UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_PROXY_EVDEV_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_PROXY_EVDEV_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // See InputDeviceFactoryEvdev for docs. These calls simply forward to | 39 // See InputDeviceFactoryEvdev for docs. These calls simply forward to |
40 // that object on another thread. | 40 // that object on another thread. |
41 void AddInputDevice(int id, const base::FilePath& path); | 41 void AddInputDevice(int id, const base::FilePath& path); |
42 void RemoveInputDevice(const base::FilePath& path); | 42 void RemoveInputDevice(const base::FilePath& path); |
43 void DisableInternalTouchpad(); | 43 void DisableInternalTouchpad(); |
44 void EnableInternalTouchpad(); | 44 void EnableInternalTouchpad(); |
45 void DisableInternalKeyboardExceptKeys( | 45 void DisableInternalKeyboardExceptKeys( |
46 scoped_ptr<std::set<DomCode>> excepted_keys); | 46 scoped_ptr<std::set<DomCode>> excepted_keys); |
47 void EnableInternalKeyboard(); | 47 void EnableInternalKeyboard(); |
| 48 void SetCapsLockLed(bool enabled); |
48 void UpdateInputDeviceSettings(const InputDeviceSettingsEvdev& settings); | 49 void UpdateInputDeviceSettings(const InputDeviceSettingsEvdev& settings); |
49 void GetTouchDeviceStatus(const GetTouchDeviceStatusReply& reply); | 50 void GetTouchDeviceStatus(const GetTouchDeviceStatusReply& reply); |
50 void GetTouchEventLog(const base::FilePath& out_dir, | 51 void GetTouchEventLog(const base::FilePath& out_dir, |
51 const GetTouchEventLogReply& reply); | 52 const GetTouchEventLogReply& reply); |
52 | 53 |
53 private: | 54 private: |
54 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 55 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
55 base::WeakPtr<InputDeviceFactoryEvdev> input_device_factory_; | 56 base::WeakPtr<InputDeviceFactoryEvdev> input_device_factory_; |
56 | 57 |
57 DISALLOW_COPY_AND_ASSIGN(InputDeviceFactoryEvdevProxy); | 58 DISALLOW_COPY_AND_ASSIGN(InputDeviceFactoryEvdevProxy); |
58 }; | 59 }; |
59 | 60 |
60 } // namespace ui | 61 } // namespace ui |
61 | 62 |
62 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_PROXY_EVDEV_H_ | 63 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_PROXY_EVDEV_H_ |
OLD | NEW |