[OriginChip] Hide/show the origin chip as the Omnibox gains/loses focus.
[chromium-blink-merge.git] / device / hid / hid_utils_mac.h
blobf1349aec1ad35c2e197c005224fd3321171022da
1 // Copyright (c) 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 "base/callback.h"
9 #include "base/memory/ref_counted.h"
11 #include <IOKit/hid/IOHIDManager.h>
13 namespace device {
15 bool GetHidIntProperty(IOHIDDeviceRef device, CFStringRef key, int32_t* result);
17 bool GetHidStringProperty(IOHIDDeviceRef device,
18 CFStringRef key,
19 std::string* result);
21 } // namespace device
23 #endif // DEVICE_HID_HID_UTILS_MAC_H_