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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 scoped_ptr<std::set<DomCode>> excepted_keys) override; | 63 scoped_ptr<std::set<DomCode>> excepted_keys) override; |
64 void EnableInternalKeyboard() override; | 64 void EnableInternalKeyboard() override; |
65 | 65 |
66 private: | 66 private: |
67 // Post task to update settings. | 67 // Post task to update settings. |
68 void ScheduleUpdateDeviceSettings(); | 68 void ScheduleUpdateDeviceSettings(); |
69 | 69 |
70 // Send settings update to input_device_factory_. | 70 // Send settings update to input_device_factory_. |
71 void UpdateDeviceSettings(); | 71 void UpdateDeviceSettings(); |
72 | 72 |
| 73 // Send caps lock update to input_device_factory_. |
| 74 void UpdateCapsLockLed(); |
| 75 |
73 // Configuration that needs to be passed on to InputDeviceFactory. | 76 // Configuration that needs to be passed on to InputDeviceFactory. |
74 InputDeviceSettingsEvdev input_device_settings_; | 77 InputDeviceSettingsEvdev input_device_settings_; |
75 | 78 |
76 // Task to update config from input_device_settings_ is pending. | 79 // Task to update config from input_device_settings_ is pending. |
77 bool settings_update_pending_; | 80 bool settings_update_pending_; |
78 | 81 |
79 // Factory for devices. Needed to update device config. | 82 // Factory for devices. Needed to update device config. |
80 InputDeviceFactoryEvdevProxy* input_device_factory_; | 83 InputDeviceFactoryEvdevProxy* input_device_factory_; |
81 | 84 |
82 // Keyboard state. | 85 // Keyboard state. |
83 KeyboardEvdev* keyboard_; | 86 KeyboardEvdev* keyboard_; |
84 | 87 |
85 // Mouse button map. | 88 // Mouse button map. |
86 MouseButtonMapEvdev* button_map_; | 89 MouseButtonMapEvdev* button_map_; |
87 | 90 |
88 // Device presence. | 91 // Device presence. |
89 bool has_mouse_; | 92 bool has_mouse_; |
90 bool has_touchpad_; | 93 bool has_touchpad_; |
91 | 94 |
| 95 // LED state. |
| 96 bool caps_lock_led_state_; |
| 97 |
92 base::WeakPtrFactory<InputControllerEvdev> weak_ptr_factory_; | 98 base::WeakPtrFactory<InputControllerEvdev> weak_ptr_factory_; |
93 | 99 |
94 DISALLOW_COPY_AND_ASSIGN(InputControllerEvdev); | 100 DISALLOW_COPY_AND_ASSIGN(InputControllerEvdev); |
95 }; | 101 }; |
96 | 102 |
97 } // namespace ui | 103 } // namespace ui |
98 | 104 |
99 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_ | 105 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_ |
OLD | NEW |