| Index: chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.h
|
| ===================================================================
|
| --- chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.h (revision 115428)
|
| +++ chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.h (working copy)
|
| @@ -12,6 +12,8 @@
|
|
|
| #include "base/memory/singleton.h"
|
| #include "base/message_loop.h"
|
| +#include "base/observer_list.h"
|
| +#include "chrome/browser/chromeos/device_hierarchy_observer.h"
|
|
|
| typedef union _XEvent XEvent;
|
|
|
| @@ -27,6 +29,9 @@
|
|
|
| void Stop();
|
|
|
| + void AddObserver(DeviceHierarchyObserver* observer);
|
| + void RemoveObserver(DeviceHierarchyObserver* observer);
|
| +
|
| private:
|
| // Defines the delete on exit Singleton traits we like. Best to have this
|
| // and const/dest private as recommended for Singletons.
|
| @@ -59,9 +64,14 @@
|
| // Returns true if the event was processed, false otherwise.
|
| virtual bool ProcessedXEvent(XEvent* xevent);
|
|
|
| + // Notify observers that a device has been added/removed.
|
| + void NotifyDeviceHierarchyChanged();
|
| +
|
| bool stopped_;
|
| int xiopcode_;
|
|
|
| + ObserverList<DeviceHierarchyObserver> observer_list_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(XInputHierarchyChangedEventListener);
|
| };
|
|
|
|
|