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

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

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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
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 19 matching lines...) Expand all
30 30
31 protected: 31 protected:
32 Observer() {} 32 Observer() {}
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 43
44 // Check for pointer devices. 44 // Check for pointer devices.
45 void CheckTouchpadExists(); 45 void CheckTouchpadExists();
46 void CheckMouseExists(); 46 void CheckMouseExists();
47 47
48 // Callback for pointer device checks. 48 // Callback for pointer device checks.
49 void OnTouchpadExists(bool exists); 49 void OnTouchpadExists(bool exists);
50 void OnMouseExists(bool exists); 50 void OnMouseExists(bool exists);
51 51
52 ObserverList<Observer> observers_; 52 ObserverList<Observer> observers_;
53 53
54 base::WeakPtrFactory<PointerDeviceObserver> weak_factory_; 54 base::WeakPtrFactory<PointerDeviceObserver> weak_factory_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(PointerDeviceObserver); 56 DISALLOW_COPY_AND_ASSIGN(PointerDeviceObserver);
57 }; 57 };
58 58
59 } // namespace system 59 } // namespace system
60 } // namespace chromeos 60 } // namespace chromeos
61 61
62 #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/system/input_device_settings.cc ('k') | chrome/browser/chromeos/system/syslogs_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698