Index: device/hid/hid_service_win.h |
diff --git a/device/hid/hid_service_win.h b/device/hid/hid_service_win.h |
index 8f18765032835853c728cefffc8c931bb55cf1e6..51ea8fb530e2cfa57d8b8f8f48ec12a21dc4b73c 100644 |
--- a/device/hid/hid_service_win.h |
+++ b/device/hid/hid_service_win.h |
@@ -10,6 +10,18 @@ |
#include "device/hid/hid_device_info.h" |
#include "device/hid/hid_service.h" |
+#if defined(OS_WIN) |
+ |
+#include <windows.h> |
+#include <hidclass.h> |
+ |
+extern "C" { |
+#include <hidsdi.h> |
+#include <hidpi.h> |
+} |
+ |
+#endif // defined(OS_WIN) |
+ |
namespace device { |
class HidConnection; |
@@ -27,6 +39,14 @@ class HidServiceWin : public HidService { |
virtual ~HidServiceWin(); |
void Enumerate(); |
+ static void CollectInfoFromButtonCaps(PHIDP_PREPARSED_DATA preparsed_data, |
+ HIDP_REPORT_TYPE report_type, |
+ USHORT button_caps_length, |
+ HidCollectionInfo* collection_info); |
+ static void CollectInfoFromValueCaps(PHIDP_PREPARSED_DATA preparsed_data, |
+ HIDP_REPORT_TYPE report_type, |
+ USHORT value_caps_length, |
+ HidCollectionInfo* collection_info); |
void PlatformAddDevice(const std::string& device_path); |
void PlatformRemoveDevice(const std::string& device_path); |