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

Unified Diff: device/hid/hid_collection_info.h

Issue 317783010: chrome.hid: enrich model with report IDs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove HidConnection2 Created 6 years, 6 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
Index: device/hid/hid_collection_info.h
diff --git a/device/hid/hid_collection_info.h b/device/hid/hid_collection_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..3b35e5e7354ee87ce3655c4e723184b2d11272f3
--- /dev/null
+++ b/device/hid/hid_collection_info.h
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DEVICE_HID_HID_COLLECTION_INFO_H_
+#define DEVICE_HID_HID_COLLECTION_INFO_H_
+
+#include <set>
+
+#include "device/hid/hid_usage_and_page.h"
+
+namespace device {
+
+struct HidCollectionInfo {
+ HidCollectionInfo();
+ ~HidCollectionInfo();
+
+ // Collection's usage ID.
+ HidUsageAndPage usage;
+
+ // HID report IDs which belong
+ // to this collection or to its
+ // embedded collections.
+ std::set<int> report_ids;
+};
+
+} // namespace device"
+
+#endif // DEVICE_HID_HID_COLLECTION_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698