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

Unified Diff: device/hid/hid_service_win.h

Issue 502573002: Find HID report IDs in output and feature reports on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | device/hid/hid_service_win.cc » ('j') | device/hid/hid_service_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | device/hid/hid_service_win.cc » ('j') | device/hid/hid_service_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698