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

Side by Side Diff: ui/events/x/hotplug_event_handler_x11.h

Issue 618283003: Adds special support to the device manager for keyboards devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to master. Created 6 years, 1 month 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_X_HOTPLUG_EVENT_HANDLER_H_ 5 #ifndef UI_EVENTS_X_HOTPLUG_EVENT_HANDLER_H_
6 #define UI_EVENTS_X_HOTPLUG_EVENT_HANDLER_H_ 6 #define UI_EVENTS_X_HOTPLUG_EVENT_HANDLER_H_
7 7
8 #include "ui/events/x/device_list_cache_x.h" 8 #include "ui/events/x/device_list_cache_x.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 class DeviceHotplugEventObserver; 12 class DeviceHotplugEventObserver;
13 13
14 // Parses X11 native devices and propagates the list of active devices to an 14 // Parses X11 native devices and propagates the list of active devices to an
15 // observer. 15 // observer.
16 class EVENTS_BASE_EXPORT HotplugEventHandlerX11 { 16 class EVENTS_BASE_EXPORT HotplugEventHandlerX11 {
17 public: 17 public:
18 explicit HotplugEventHandlerX11(DeviceHotplugEventObserver* delegate); 18 explicit HotplugEventHandlerX11(DeviceHotplugEventObserver* delegate);
19 ~HotplugEventHandlerX11(); 19 ~HotplugEventHandlerX11();
20 20
21 // Called on an X11 hotplug event. 21 // Called on an X11 hotplug event.
22 void OnHotplugEvent(); 22 void OnHotplugEvent();
23 23
24 private: 24 private:
25 void HandleTouchscreenDevices(const XIDeviceList& device_list); 25 void HandleTouchscreenDevices(const XIDeviceList& device_list);
26 void HandleKeyboardDevices(const XIDeviceList& device_list);
26 27
27 DeviceHotplugEventObserver* delegate_; // Not owned. 28 DeviceHotplugEventObserver* delegate_; // Not owned.
28 29
29 DISALLOW_COPY_AND_ASSIGN(HotplugEventHandlerX11); 30 DISALLOW_COPY_AND_ASSIGN(HotplugEventHandlerX11);
30 }; 31 };
31 32
32 } // namespace ui 33 } // namespace ui
33 34
34 #endif // UI_EVENTS_X_HOTPLUG_EVENT_HANDLER_H_ 35 #endif // UI_EVENTS_X_HOTPLUG_EVENT_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/events/x/device_data_manager_x11_unittest.cc ('k') | ui/events/x/hotplug_event_handler_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698