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

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: Use unsigned types and move INITGUID to back to .cc. 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') | no next file with comments »
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..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);
« no previous file with comments | « no previous file | device/hid/hid_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698