Chromium Code Reviews| Index: device/hid/hid_utils_mac.h |
| diff --git a/device/hid/hid_utils_mac.h b/device/hid/hid_utils_mac.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7aa045b8b6a95b03e2849f13f901db4fa15c3272 |
| --- /dev/null |
| +++ b/device/hid/hid_utils_mac.h |
| @@ -0,0 +1,23 @@ |
| +// Copyright (c) 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_UTILS_MAC_H_ |
| +#define DEVICE_HID_HID_UTILS_MAC_H_ |
| + |
| +#include "base/callback.h" |
| +#include "base/memory/ref_counted.h" |
| + |
| +#include <IOKit/hid/IOHIDManager.h> |
| + |
| +namespace device { |
| + |
|
Ken Rockot(use gerrit already)
2014/01/21 23:03:39
Can you move these into a namespace or make the na
Bei Zhang
2014/01/24 12:48:47
Done.
|
| +bool GetIntProperty(IOHIDDeviceRef device, CFStringRef key, int32_t* result); |
| + |
| +bool GetStringProperty(IOHIDDeviceRef device, |
| + CFStringRef key, |
| + std::string* result); |
| + |
| +} // namespace device |
| + |
| +#endif // DEVICE_HID_HID_UTILS_MAC_H_ |