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

Unified Diff: device/hid/hid_device_info.h

Issue 1025553004: Switch HidDeviceId from IORegistry path to IORegistry entry ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « device/hid/hid_device_filter_unittest.cc ('k') | device/hid/hid_device_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_device_info.h
diff --git a/device/hid/hid_device_info.h b/device/hid/hid_device_info.h
index 8096546e8291a83d8aaf6435fc72d6d8d04e39b7..bc89832229c24827c3abac05ff5783f645fd32f2 100644
--- a/device/hid/hid_device_info.h
+++ b/device/hid/hid_device_info.h
@@ -19,8 +19,13 @@ enum HidBusType {
kHIDBusTypeBluetooth = 1,
};
+#if defined(OS_MACOSX)
+typedef uint64_t HidDeviceId;
+const uint64_t kInvalidHidDeviceId = -1;
+#else
typedef std::string HidDeviceId;
extern const char kInvalidHidDeviceId[];
+#endif
class HidDeviceInfo : public base::RefCountedThreadSafe<HidDeviceInfo> {
public:
« no previous file with comments | « device/hid/hid_device_filter_unittest.cc ('k') | device/hid/hid_device_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698