| 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..f1349aec1ad35c2e197c005224fd3321171022da
|
| --- /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 {
|
| +
|
| +bool GetHidIntProperty(IOHIDDeviceRef device, CFStringRef key, int32_t* result);
|
| +
|
| +bool GetHidStringProperty(IOHIDDeviceRef device,
|
| + CFStringRef key,
|
| + std::string* result);
|
| +
|
| +} // namespace device
|
| +
|
| +#endif // DEVICE_HID_HID_UTILS_MAC_H_
|
|
|