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

Side by Side Diff: device/hid/hid_connection_mac.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_connection_linux.h ('k') | device/hid/hid_connection_unittest.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 (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_HID_CONNECTION_MAC_H_ 5 #ifndef DEVICE_HID_HID_CONNECTION_MAC_H_
6 #define DEVICE_HID_HID_CONNECTION_MAC_H_ 6 #define DEVICE_HID_HID_CONNECTION_MAC_H_
7 7
8 #include <CoreFoundation/CoreFoundation.h> 8 #include <CoreFoundation/CoreFoundation.h>
9 #include <IOKit/hid/IOHIDManager.h> 9 #include <IOKit/hid/IOHIDManager.h>
10 10
(...skipping 14 matching lines...) Expand all
25 namespace device { 25 namespace device {
26 26
27 class HidConnectionMac : public HidConnection { 27 class HidConnectionMac : public HidConnection {
28 public: 28 public:
29 explicit HidConnectionMac(HidDeviceInfo device_info); 29 explicit HidConnectionMac(HidDeviceInfo device_info);
30 30
31 private: 31 private:
32 virtual ~HidConnectionMac(); 32 virtual ~HidConnectionMac();
33 33
34 // HidConnection implementation. 34 // HidConnection implementation.
35 virtual void PlatformRead(const ReadCallback& callback) OVERRIDE; 35 virtual void PlatformRead(const ReadCallback& callback) override;
36 virtual void PlatformWrite(scoped_refptr<net::IOBuffer> buffer, 36 virtual void PlatformWrite(scoped_refptr<net::IOBuffer> buffer,
37 size_t size, 37 size_t size,
38 const WriteCallback& callback) OVERRIDE; 38 const WriteCallback& callback) override;
39 virtual void PlatformGetFeatureReport(uint8_t report_id, 39 virtual void PlatformGetFeatureReport(uint8_t report_id,
40 const ReadCallback& callback) OVERRIDE; 40 const ReadCallback& callback) override;
41 virtual void PlatformSendFeatureReport( 41 virtual void PlatformSendFeatureReport(
42 scoped_refptr<net::IOBuffer> buffer, 42 scoped_refptr<net::IOBuffer> buffer,
43 size_t size, 43 size_t size,
44 const WriteCallback& callback) OVERRIDE; 44 const WriteCallback& callback) override;
45 45
46 static void InputReportCallback(void* context, 46 static void InputReportCallback(void* context,
47 IOReturn result, 47 IOReturn result,
48 void* sender, 48 void* sender,
49 IOHIDReportType type, 49 IOHIDReportType type,
50 uint32_t report_id, 50 uint32_t report_id,
51 uint8_t* report_bytes, 51 uint8_t* report_bytes,
52 CFIndex report_length); 52 CFIndex report_length);
53 53
54 void WriteReport(IOHIDReportType type, 54 void WriteReport(IOHIDReportType type,
(...skipping 11 matching lines...) Expand all
66 66
67 std::queue<PendingHidReport> pending_reports_; 67 std::queue<PendingHidReport> pending_reports_;
68 std::queue<PendingHidRead> pending_reads_; 68 std::queue<PendingHidRead> pending_reads_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(HidConnectionMac); 70 DISALLOW_COPY_AND_ASSIGN(HidConnectionMac);
71 }; 71 };
72 72
73 } // namespace device 73 } // namespace device
74 74
75 #endif // DEVICE_HID_HID_CONNECTION_MAC_H_ 75 #endif // DEVICE_HID_HID_CONNECTION_MAC_H_
OLDNEW
« no previous file with comments | « device/hid/hid_connection_linux.h ('k') | device/hid/hid_connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698