cc: GN Build fix.
[chromium-blink-merge.git] / device / hid / hid_utils_mac.h
blobe9b252462a5de3f788981eaf458b566ecb7decfa
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef DEVICE_HID_HID_UTILS_MAC_H_
6 #define DEVICE_HID_HID_UTILS_MAC_H_
8 #include <CoreFoundation/CoreFoundation.h>
9 #include <IOKit/hid/IOHIDManager.h>
10 #include <stdint.h>
12 #include <string>
14 namespace device {
16 int32_t GetHidIntProperty(IOHIDDeviceRef device, CFStringRef key);
18 std::string GetHidStringProperty(IOHIDDeviceRef device, CFStringRef key);
20 bool TryGetHidIntProperty(IOHIDDeviceRef device,
21 CFStringRef key,
22 int32_t* result);
24 bool TryGetHidStringProperty(IOHIDDeviceRef device,
25 CFStringRef key,
26 std::string* result);
28 } // namespace device
30 #endif // DEVICE_HID_HID_UTILS_MAC_H_