| Index: chrome/browser/chromeos/system/pointer_device_observer.h
|
| ===================================================================
|
| --- chrome/browser/chromeos/system/pointer_device_observer.h (revision 134877)
|
| +++ chrome/browser/chromeos/system/pointer_device_observer.h (working copy)
|
| @@ -18,8 +18,12 @@
|
| PointerDeviceObserver();
|
| virtual ~PointerDeviceObserver();
|
|
|
| + // Start observing device hierarchy.
|
| void Init();
|
|
|
| + // Check for presence of devices.
|
| + void CheckDevices();
|
| +
|
| class Observer {
|
| public:
|
| virtual void TouchpadExists(bool exists) = 0;
|
| @@ -28,9 +32,6 @@
|
| protected:
|
| Observer() {}
|
| virtual ~Observer();
|
| -
|
| - private:
|
| - DISALLOW_COPY_AND_ASSIGN(Observer);
|
| };
|
| void AddObserver(Observer* observer);
|
| void RemoveObserver(Observer* observer);
|
| @@ -42,13 +43,13 @@
|
| virtual void DeviceRemoved(int device_id) OVERRIDE {}
|
| virtual void DeviceKeyPressedOrReleased(int device_id) OVERRIDE {}
|
|
|
| - // Check for input devices.
|
| + // Check for pointer devices.
|
| void CheckTouchpadExists();
|
| void CheckMouseExists();
|
|
|
| - // Callback for input device checks.
|
| - void TouchpadExists(bool* exists);
|
| - void MouseExists(bool* exists);
|
| + // Callback for pointer device checks.
|
| + void OnTouchpadExists(bool* exists);
|
| + void OnMouseExists(bool* exists);
|
|
|
| ObserverList<Observer> observers_;
|
|
|
|
|