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

Side by Side Diff: chrome/browser/chromeos/system/pointer_device_observer.h

Issue 192123002: chromeos: A little more cleanup for EventRewriter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/events/xinput_hierarchy_changed_event_listener.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_SYSTEM_POINTER_DEVICE_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_POINTER_DEVICE_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_POINTER_DEVICE_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_POINTER_DEVICE_OBSERVER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "chrome/browser/chromeos/device_hierarchy_observer.h" 10 #include "chrome/browser/chromeos/device_hierarchy_observer.h"
(...skipping 22 matching lines...) Expand all
33 virtual ~Observer(); 33 virtual ~Observer();
34 }; 34 };
35 void AddObserver(Observer* observer); 35 void AddObserver(Observer* observer);
36 void RemoveObserver(Observer* observer); 36 void RemoveObserver(Observer* observer);
37 37
38 private: 38 private:
39 // DeviceHierarchyObserver implementation. 39 // DeviceHierarchyObserver implementation.
40 virtual void DeviceHierarchyChanged() OVERRIDE; 40 virtual void DeviceHierarchyChanged() OVERRIDE;
41 virtual void DeviceAdded(int device_id) OVERRIDE {} 41 virtual void DeviceAdded(int device_id) OVERRIDE {}
42 virtual void DeviceRemoved(int device_id) OVERRIDE {} 42 virtual void DeviceRemoved(int device_id) OVERRIDE {}
43 virtual void DeviceKeyPressedOrReleased(int device_id) OVERRIDE {}
44 43
45 // Check for pointer devices. 44 // Check for pointer devices.
46 void CheckTouchpadExists(); 45 void CheckTouchpadExists();
47 void CheckMouseExists(); 46 void CheckMouseExists();
48 47
49 // Callback for pointer device checks. 48 // Callback for pointer device checks.
50 void OnTouchpadExists(bool exists); 49 void OnTouchpadExists(bool exists);
51 void OnMouseExists(bool exists); 50 void OnMouseExists(bool exists);
52 51
53 ObserverList<Observer> observers_; 52 ObserverList<Observer> observers_;
54 53
55 base::WeakPtrFactory<PointerDeviceObserver> weak_factory_; 54 base::WeakPtrFactory<PointerDeviceObserver> weak_factory_;
56 55
57 DISALLOW_COPY_AND_ASSIGN(PointerDeviceObserver); 56 DISALLOW_COPY_AND_ASSIGN(PointerDeviceObserver);
58 }; 57 };
59 58
60 } // namespace system 59 } // namespace system
61 } // namespace chromeos 60 } // namespace chromeos
62 61
63 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_POINTER_DEVICE_OBSERVER_H_ 62 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_POINTER_DEVICE_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/events/xinput_hierarchy_changed_event_listener.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698