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

Unified Diff: device/hid/hid_device_info.h

Issue 256673002: HID: Support top-level collection usages in device info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/hid/hid_connection_linux.cc ('k') | device/hid/hid_device_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_device_info.h
diff --git a/device/hid/hid_device_info.h b/device/hid/hid_device_info.h
index 7531042156b8aef676ddfa90d1d01d85c8de99d0..1b143c2253532ea00d703370bfb6892022d02cd3 100644
--- a/device/hid/hid_device_info.h
+++ b/device/hid/hid_device_info.h
@@ -5,11 +5,11 @@
#ifndef DEVICE_HID_HID_DEVICE_INFO_H_
#define DEVICE_HID_HID_DEVICE_INFO_H_
-#include <stdint.h>
-
#include <string>
+#include <vector>
#include "build/build_config.h"
+#include "device/hid/hid_usage_and_page.h"
#if defined(OS_MACOSX)
#include <IOKit/hid/IOHIDDevice.h>
@@ -43,9 +43,7 @@ struct HidDeviceInfo {
int input_report_size;
int output_report_size;
int feature_report_size;
-
- uint16_t usage_page;
- uint16_t usage;
+ std::vector<HidUsageAndPage> usages;
bool has_report_id;
std::string product_name;
« no previous file with comments | « device/hid/hid_connection_linux.cc ('k') | device/hid/hid_device_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698