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

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

Issue 1025553004: Switch HidDeviceId from IORegistry path to IORegistry entry ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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_mac.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 #include "device/hid/hid_device_info.h" 5 #include "device/hid/hid_device_info.h"
6 #include "device/hid/hid_report_descriptor.h" 6 #include "device/hid/hid_report_descriptor.h"
7 7
8 namespace device { 8 namespace device {
9 9
10 #if !defined(OS_MACOSX)
10 const char kInvalidHidDeviceId[] = ""; 11 const char kInvalidHidDeviceId[] = "";
12 #endif
11 13
12 HidDeviceInfo::HidDeviceInfo(const HidDeviceId& device_id, 14 HidDeviceInfo::HidDeviceInfo(const HidDeviceId& device_id,
13 uint16_t vendor_id, 15 uint16_t vendor_id,
14 uint16_t product_id, 16 uint16_t product_id,
15 const std::string& product_name, 17 const std::string& product_name,
16 const std::string& serial_number, 18 const std::string& serial_number,
17 HidBusType bus_type, 19 HidBusType bus_type,
18 const std::vector<uint8> report_descriptor) 20 const std::vector<uint8> report_descriptor)
19 : device_id_(device_id), 21 : device_id_(device_id),
20 vendor_id_(vendor_id), 22 vendor_id_(vendor_id),
(...skipping 27 matching lines...) Expand all
48 max_input_report_size_(max_input_report_size), 50 max_input_report_size_(max_input_report_size),
49 max_output_report_size_(max_output_report_size), 51 max_output_report_size_(max_output_report_size),
50 max_feature_report_size_(max_feature_report_size) { 52 max_feature_report_size_(max_feature_report_size) {
51 collections_.push_back(collection); 53 collections_.push_back(collection);
52 has_report_id_ = !collection.report_ids.empty(); 54 has_report_id_ = !collection.report_ids.empty();
53 } 55 }
54 56
55 HidDeviceInfo::~HidDeviceInfo() {} 57 HidDeviceInfo::~HidDeviceInfo() {}
56 58
57 } // namespace device 59 } // namespace device
OLDNEW
« no previous file with comments | « device/hid/hid_device_info.h ('k') | device/hid/hid_service_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698