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

Side by Side Diff: device/hid/input_service_linux.h

Issue 628873002: replace OVERRIDE and FINAL with override and final in device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « device/hid/hid_service_win.h ('k') | device/hid/input_service_linux.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 DEVICE_HID_INPUT_SERVICE_LINUX_H_ 5 #ifndef DEVICE_HID_INPUT_SERVICE_LINUX_H_
6 #define DEVICE_HID_INPUT_SERVICE_LINUX_H_ 6 #define DEVICE_HID_INPUT_SERVICE_LINUX_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // Returns list of all currently connected input/hid devices. 64 // Returns list of all currently connected input/hid devices.
65 void GetDevices(std::vector<InputDeviceInfo>* devices); 65 void GetDevices(std::vector<InputDeviceInfo>* devices);
66 66
67 // Returns an info about input device identified by |id|. When there're 67 // Returns an info about input device identified by |id|. When there're
68 // no input or hid device with such id, returns false and doesn't 68 // no input or hid device with such id, returns false and doesn't
69 // modify |info|. 69 // modify |info|.
70 bool GetDeviceInfo(const std::string& id, InputDeviceInfo* info) const; 70 bool GetDeviceInfo(const std::string& id, InputDeviceInfo* info) const;
71 71
72 // Implements base::MessageLoop::DestructionObserver 72 // Implements base::MessageLoop::DestructionObserver
73 virtual void WillDestroyCurrentMessageLoop() OVERRIDE; 73 virtual void WillDestroyCurrentMessageLoop() override;
74 74
75 protected: 75 protected:
76 virtual ~InputServiceLinux(); 76 virtual ~InputServiceLinux();
77 77
78 void AddDevice(const InputDeviceInfo& info); 78 void AddDevice(const InputDeviceInfo& info);
79 void RemoveDevice(const std::string& id); 79 void RemoveDevice(const std::string& id);
80 80
81 bool CalledOnValidThread() const; 81 bool CalledOnValidThread() const;
82 82
83 private: 83 private:
84 friend struct base::DefaultDeleter<InputServiceLinux>; 84 friend struct base::DefaultDeleter<InputServiceLinux>;
85 85
86 typedef base::hash_map<std::string, InputDeviceInfo> DeviceMap; 86 typedef base::hash_map<std::string, InputDeviceInfo> DeviceMap;
87 87
88 DeviceMap devices_; 88 DeviceMap devices_;
89 ObserverList<Observer> observers_; 89 ObserverList<Observer> observers_;
90 90
91 base::ThreadChecker thread_checker_; 91 base::ThreadChecker thread_checker_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(InputServiceLinux); 93 DISALLOW_COPY_AND_ASSIGN(InputServiceLinux);
94 }; 94 };
95 95
96 } // namespace device 96 } // namespace device
97 97
98 #endif // DEVICE_HID_INPUT_SERVICE_LINUX_H_ 98 #endif // DEVICE_HID_INPUT_SERVICE_LINUX_H_
OLDNEW
« no previous file with comments | « device/hid/hid_service_win.h ('k') | device/hid/input_service_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698