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

Unified Diff: chrome/browser/chromeos/system/pointer_device_observer.h

Issue 10311005: Fix for pointer settings when settings page is refreshed. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/system/pointer_device_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/system/pointer_device_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698