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

Unified Diff: device/hid/hid_utils_mac.h

Issue 161823002: Clean up HID backend and API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for reals Created 6 years, 10 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_utils_mac.h
diff --git a/device/hid/hid_utils_mac.h b/device/hid/hid_utils_mac.h
index f1349aec1ad35c2e197c005224fd3321171022da..aa5201536543988c300f178ed326a61f2eef11aa 100644
--- a/device/hid/hid_utils_mac.h
+++ b/device/hid/hid_utils_mac.h
@@ -12,11 +12,17 @@
namespace device {
-bool GetHidIntProperty(IOHIDDeviceRef device, CFStringRef key, int32_t* result);
+int32_t GetHidIntProperty(IOHIDDeviceRef device, CFStringRef key);
-bool GetHidStringProperty(IOHIDDeviceRef device,
- CFStringRef key,
- std::string* result);
+std::string GetHidStringProperty(IOHIDDeviceRef device, CFStringRef key);
+
+bool TryGetHidIntProperty(IOHIDDeviceRef device,
+ CFStringRef key,
+ int32_t* result);
+
+bool TryGetHidStringProperty(IOHIDDeviceRef device,
+ CFStringRef key,
+ std::string* result);
} // namespace device

Powered by Google App Engine
This is Rietveld 408576698