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

Unified Diff: device/hid/hid_report_descriptor_item.cc

Issue 317783010: chrome.hid: enrich model with report IDs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix hid.idl comment Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/hid/hid_report_descriptor.cc ('k') | device/hid/hid_report_descriptor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_report_descriptor_item.cc
diff --git a/device/hid/hid_report_descriptor_item.cc b/device/hid/hid_report_descriptor_item.cc
index bdd03ce0ebd351619db48252c09d39b963455af2..60ba764bc93b682046749f756f93faa22cabe65b 100644
--- a/device/hid/hid_report_descriptor_item.cc
+++ b/device/hid/hid_report_descriptor_item.cc
@@ -90,17 +90,17 @@ HidReportDescriptorItem::GetCollectionTypeFromValue(uint32_t value) {
case 0x00:
return kCollectionTypePhysical;
case 0x01:
- return kCollectionTypePhysical;
+ return kCollectionTypeApplication;
case 0x02:
- return kCollectionTypePhysical;
+ return kCollectionTypeLogical;
case 0x03:
- return kCollectionTypePhysical;
+ return kCollectionTypeReport;
case 0x04:
- return kCollectionTypePhysical;
+ return kCollectionTypeNamedArray;
case 0x05:
- return kCollectionTypePhysical;
+ return kCollectionTypeUsageSwitch;
case 0x06:
- return kCollectionTypePhysical;
+ return kCollectionTypeUsageModifier;
default:
break;
}
« no previous file with comments | « device/hid/hid_report_descriptor.cc ('k') | device/hid/hid_report_descriptor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698