Chromium Code Reviews| 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..ebc0613e7eb83e8bf738b353c0afec6faeedb665 100644 |
| --- a/device/hid/hid_service_win.h |
| +++ b/device/hid/hid_service_win.h |
| @@ -10,6 +10,20 @@ |
| #include "device/hid/hid_device_info.h" |
| #include "device/hid/hid_service.h" |
| +#if defined(OS_WIN) |
| + |
| +#define INITGUID |
|
rpaquay
2014/08/22 21:36:30
I am surprised this works, as usually INITGUID is
Reilly Grant (use Gerrit)
2014/08/22 21:54:54
It works but probably only because of the limited
|
| + |
| +#include <windows.h> |
| +#include <hidclass.h> |
| + |
| +extern "C" { |
| +#include <hidsdi.h> |
| +#include <hidpi.h> |
| +} |
| + |
| +#endif // defined(OS_WIN) |
| + |
| namespace device { |
| class HidConnection; |
| @@ -27,6 +41,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); |