Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / device / hid / hid_device_info.h
index 1b143c2..dde2f12 100644 (file)
@@ -9,7 +9,7 @@
 #include <vector>
 
 #include "build/build_config.h"
-#include "device/hid/hid_usage_and_page.h"
+#include "device/hid/hid_collection_info.h"
 
 #if defined(OS_MACOSX)
 #include <IOKit/hid/IOHIDDevice.h>
@@ -34,20 +34,20 @@ struct HidDeviceInfo {
   HidDeviceInfo();
   ~HidDeviceInfo();
 
+  // Device identification.
   HidDeviceId device_id;
-
-  HidBusType bus_type;
   uint16_t vendor_id;
   uint16_t product_id;
-
-  int input_report_size;
-  int output_report_size;
-  int feature_report_size;
-  std::vector<HidUsageAndPage> usages;
-  bool has_report_id;
-
   std::string product_name;
   std::string serial_number;
+  HidBusType bus_type;
+
+  // Top-Level Collections information.
+  std::vector<HidCollectionInfo> collections;
+  bool has_report_id;
+  int max_input_report_size;
+  int max_output_report_size;
+  int max_feature_report_size;
 };
 
 }  // namespace device