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_PLATFORM_X11_X11_HOTPLUG_EVENT_HANDLER_H_ | 5 #ifndef UI_EVENTS_PLATFORM_X11_X11_HOTPLUG_EVENT_HANDLER_H_ |
6 #define UI_EVENTS_PLATFORM_X11_X11_HOTPLUG_EVENT_HANDLER_H_ | 6 #define UI_EVENTS_PLATFORM_X11_X11_HOTPLUG_EVENT_HANDLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/events/devices/x11/device_list_cache_x11.h" | 9 #include "ui/events/devices/x11/device_list_cache_x11.h" |
10 #include "ui/gfx/x/x11_atom_cache.h" | |
11 | 10 |
12 namespace ui { | 11 namespace ui { |
13 | 12 |
14 // Parses X11 native devices and propagates the list of active devices to an | 13 // Parses X11 native devices and propagates the list of active devices to an |
15 // observer. | 14 // observer. |
16 class X11HotplugEventHandler { | 15 class X11HotplugEventHandler { |
17 public: | 16 public: |
18 X11HotplugEventHandler(); | 17 X11HotplugEventHandler(); |
19 ~X11HotplugEventHandler(); | 18 ~X11HotplugEventHandler(); |
20 | 19 |
21 // Called on an X11 hotplug event. | 20 // Called on an X11 hotplug event. |
22 void OnHotplugEvent(); | 21 void OnHotplugEvent(); |
23 | 22 |
24 private: | 23 private: |
25 X11AtomCache atom_cache_; | |
26 | |
27 DISALLOW_COPY_AND_ASSIGN(X11HotplugEventHandler); | 24 DISALLOW_COPY_AND_ASSIGN(X11HotplugEventHandler); |
28 }; | 25 }; |
29 | 26 |
30 } // namespace ui | 27 } // namespace ui |
31 | 28 |
32 #endif // UI_EVENTS_PLATFORM_X11_X11_HOTPLUG_EVENT_HANDLER_H_ | 29 #endif // UI_EVENTS_PLATFORM_X11_X11_HOTPLUG_EVENT_HANDLER_H_ |
OLD | NEW |