| OLD | NEW |
| 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 #if !defined(OS_MACOSX) | 9 #if !defined(OS_MACOSX) |
| 10 const char kInvalidHidDeviceId[] = ""; | 10 const char kInvalidHidDeviceId[] = ""; |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 HidUsageAndPage::HidUsageAndPage() |
| 14 : usage_page(0), |
| 15 usage(0) {} |
| 16 |
| 17 HidUsageAndPage::~HidUsageAndPage() {} |
| 18 |
| 13 HidDeviceInfo::HidDeviceInfo() | 19 HidDeviceInfo::HidDeviceInfo() |
| 14 : device_id(kInvalidHidDeviceId), | 20 : device_id(kInvalidHidDeviceId), |
| 15 bus_type(kHIDBusTypeUSB), | 21 bus_type(kHIDBusTypeUSB), |
| 16 vendor_id(0), | 22 vendor_id(0), |
| 17 product_id(0), | 23 product_id(0), |
| 18 input_report_size(0), | 24 input_report_size(0), |
| 19 output_report_size(0), | 25 output_report_size(0), |
| 20 feature_report_size(0), | 26 feature_report_size(0), |
| 21 usage_page(0), | |
| 22 usage(0), | |
| 23 has_report_id(false) {} | 27 has_report_id(false) {} |
| 24 | 28 |
| 25 HidDeviceInfo::~HidDeviceInfo() {} | 29 HidDeviceInfo::~HidDeviceInfo() {} |
| 26 | 30 |
| 27 } // namespace device | 31 } // namespace device |
| OLD | NEW |