Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / ui / events / platform / x11 / x11_hotplug_event_handler.h
blob16d3b038fba8361f80452b1cef1a714e54cb75bd
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
3 // found in the LICENSE file.
5 #ifndef UI_EVENTS_PLATFORM_X11_X11_HOTPLUG_EVENT_HANDLER_H_
6 #define UI_EVENTS_PLATFORM_X11_X11_HOTPLUG_EVENT_HANDLER_H_
8 #include "ui/events/devices/x11/device_list_cache_x11.h"
9 #include "ui/gfx/x/x11_atom_cache.h"
11 namespace ui {
13 class DeviceHotplugEventObserver;
15 // Parses X11 native devices and propagates the list of active devices to an
16 // observer.
17 class X11HotplugEventHandler {
18 public:
19 X11HotplugEventHandler();
20 ~X11HotplugEventHandler();
22 // Called on an X11 hotplug event.
23 void OnHotplugEvent();
25 private:
26 X11AtomCache atom_cache_;
28 DISALLOW_COPY_AND_ASSIGN(X11HotplugEventHandler);
31 } // namespace ui
33 #endif // UI_EVENTS_PLATFORM_X11_X11_HOTPLUG_EVENT_HANDLER_H_