Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: ui/events/ozone/evdev/input_controller_evdev.h

Issue 971753006: ozone: evdev: Sync caps lock LED state to evdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/PLOG/LOG/ for short write. errno is not set in this case Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_modifiers_evdev.cc ('k') | ui/events/ozone/evdev/input_controller_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698