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

Side by Side Diff: device/hid/hid_device_info.cc

Issue 825523003: Convert HidDeviceInfo from a struct to a refcounted class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODO to remove friend class definitions. Created 5 years, 11 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_device_info.h ('k') | device/hid/hid_service.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 #include "device/hid/hid_device_info.h" 5 #include "device/hid/hid_device_info.h"
6 6
7 namespace device { 7 namespace device {
8 8
9 const char kInvalidHidDeviceId[] = ""; 9 const char kInvalidHidDeviceId[] = "";
10 10
11 HidDeviceInfo::HidDeviceInfo() 11 HidDeviceInfo::HidDeviceInfo()
12 : device_id(kInvalidHidDeviceId), 12 : device_id_(kInvalidHidDeviceId),
13 vendor_id(0), 13 vendor_id_(0),
14 product_id(0), 14 product_id_(0),
15 bus_type(kHIDBusTypeUSB), 15 bus_type_(kHIDBusTypeUSB),
16 has_report_id(false), 16 has_report_id_(false),
17 max_input_report_size(0), 17 max_input_report_size_(0),
18 max_output_report_size(0), 18 max_output_report_size_(0),
19 max_feature_report_size(0) { 19 max_feature_report_size_(0) {
20 } 20 }
21 21
22 HidDeviceInfo::~HidDeviceInfo() {} 22 HidDeviceInfo::~HidDeviceInfo() {}
23 23
24 } // namespace device 24 } // namespace device
OLDNEW
« no previous file with comments | « device/hid/hid_device_info.h ('k') | device/hid/hid_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698