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

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

Issue 945983002: Make ui::InputDeviceEventObserver provide a default implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « ash/virtual_keyboard_controller.cc ('k') | ui/events/devices/input_device_event_observer.h » ('j') | 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 26 matching lines...) Expand all
37 void AddObserver(Observer* observer); 37 void AddObserver(Observer* observer);
38 void RemoveObserver(Observer* observer); 38 void RemoveObserver(Observer* observer);
39 39
40 private: 40 private:
41 // DeviceHierarchyObserver: 41 // DeviceHierarchyObserver:
42 void DeviceHierarchyChanged() override; 42 void DeviceHierarchyChanged() override;
43 void DeviceAdded(int device_id) override {} 43 void DeviceAdded(int device_id) override {}
44 void DeviceRemoved(int device_id) override {} 44 void DeviceRemoved(int device_id) override {}
45 45
46 // InputDeviceEventObserver: 46 // InputDeviceEventObserver:
47 void OnTouchscreenDeviceConfigurationChanged() override {}
48 void OnKeyboardDeviceConfigurationChanged() override {}
49 void OnMouseDeviceConfigurationChanged() override; 47 void OnMouseDeviceConfigurationChanged() override;
50 void OnTouchpadDeviceConfigurationChanged() override; 48 void OnTouchpadDeviceConfigurationChanged() override;
51 49
52 // Check for pointer devices. 50 // Check for pointer devices.
53 void CheckTouchpadExists(); 51 void CheckTouchpadExists();
54 void CheckMouseExists(); 52 void CheckMouseExists();
55 53
56 // Callback for pointer device checks. 54 // Callback for pointer device checks.
57 void OnTouchpadExists(bool exists); 55 void OnTouchpadExists(bool exists);
58 void OnMouseExists(bool exists); 56 void OnMouseExists(bool exists);
59 57
60 ObserverList<Observer> observers_; 58 ObserverList<Observer> observers_;
61 59
62 base::WeakPtrFactory<PointerDeviceObserver> weak_factory_; 60 base::WeakPtrFactory<PointerDeviceObserver> weak_factory_;
63 61
64 DISALLOW_COPY_AND_ASSIGN(PointerDeviceObserver); 62 DISALLOW_COPY_AND_ASSIGN(PointerDeviceObserver);
65 }; 63 };
66 64
67 } // namespace system 65 } // namespace system
68 } // namespace chromeos 66 } // namespace chromeos
69 67
70 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_POINTER_DEVICE_OBSERVER_H_ 68 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_POINTER_DEVICE_OBSERVER_H_
OLDNEW
« no previous file with comments | « ash/virtual_keyboard_controller.cc ('k') | ui/events/devices/input_device_event_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698