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

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

Issue 1107433002: Update {virtual,override} to follow C++11 style in device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync and git cl format Created 5 years, 8 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_win.cc ('k') | device/serial/serial_device_enumerator_win.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 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_HID_SERVICE_WIN_H_ 5 #ifndef DEVICE_HID_HID_SERVICE_WIN_H_
6 #define DEVICE_HID_HID_SERVICE_WIN_H_ 6 #define DEVICE_HID_HID_SERVICE_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <hidclass.h> 9 #include <hidclass.h>
10 10
(...skipping 15 matching lines...) Expand all
26 class MessageWindow; 26 class MessageWindow;
27 } 27 }
28 } 28 }
29 29
30 namespace device { 30 namespace device {
31 31
32 class HidServiceWin : public HidService, public DeviceMonitorWin::Observer { 32 class HidServiceWin : public HidService, public DeviceMonitorWin::Observer {
33 public: 33 public:
34 HidServiceWin(scoped_refptr<base::SingleThreadTaskRunner> file_task_runner); 34 HidServiceWin(scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
35 35
36 virtual void Connect(const HidDeviceId& device_id, 36 void Connect(const HidDeviceId& device_id,
37 const ConnectCallback& callback) override; 37 const ConnectCallback& callback) override;
38 38
39 private: 39 private:
40 virtual ~HidServiceWin(); 40 ~HidServiceWin() override;
41 41
42 static void EnumerateOnFileThread( 42 static void EnumerateOnFileThread(
43 base::WeakPtr<HidServiceWin> service, 43 base::WeakPtr<HidServiceWin> service,
44 scoped_refptr<base::SingleThreadTaskRunner> task_runner); 44 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
45 static void CollectInfoFromButtonCaps(PHIDP_PREPARSED_DATA preparsed_data, 45 static void CollectInfoFromButtonCaps(PHIDP_PREPARSED_DATA preparsed_data,
46 HIDP_REPORT_TYPE report_type, 46 HIDP_REPORT_TYPE report_type,
47 USHORT button_caps_length, 47 USHORT button_caps_length,
48 HidCollectionInfo* collection_info); 48 HidCollectionInfo* collection_info);
49 static void CollectInfoFromValueCaps(PHIDP_PREPARSED_DATA preparsed_data, 49 static void CollectInfoFromValueCaps(PHIDP_PREPARSED_DATA preparsed_data,
50 HIDP_REPORT_TYPE report_type, 50 HIDP_REPORT_TYPE report_type,
(...skipping 17 matching lines...) Expand all
68 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; 68 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
69 ScopedObserver<DeviceMonitorWin, DeviceMonitorWin::Observer> device_observer_; 69 ScopedObserver<DeviceMonitorWin, DeviceMonitorWin::Observer> device_observer_;
70 base::WeakPtrFactory<HidServiceWin> weak_factory_; 70 base::WeakPtrFactory<HidServiceWin> weak_factory_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(HidServiceWin); 72 DISALLOW_COPY_AND_ASSIGN(HidServiceWin);
73 }; 73 };
74 74
75 } // namespace device 75 } // namespace device
76 76
77 #endif // DEVICE_HID_HID_SERVICE_WIN_H_ 77 #endif // DEVICE_HID_HID_SERVICE_WIN_H_
OLDNEW
« no previous file with comments | « device/hid/hid_connection_win.cc ('k') | device/serial/serial_device_enumerator_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698