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

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: rebase 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
« no previous file with comments | « device/hid/hid_service_win.cc ('k') | device/hid/hid_utils_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e9b252462a5de3f788981eaf458b566ecb7decfa 100644
--- a/device/hid/hid_utils_mac.h
+++ b/device/hid/hid_utils_mac.h
@@ -1,22 +1,29 @@
-// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Copyright 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 <CoreFoundation/CoreFoundation.h>
#include <IOKit/hid/IOHIDManager.h>
+#include <stdint.h>
+
+#include <string>
namespace device {
-bool GetHidIntProperty(IOHIDDeviceRef device, CFStringRef key, int32_t* result);
+int32_t GetHidIntProperty(IOHIDDeviceRef device, CFStringRef key);
+
+std::string GetHidStringProperty(IOHIDDeviceRef device, CFStringRef key);
+
+bool TryGetHidIntProperty(IOHIDDeviceRef device,
+ CFStringRef key,
+ int32_t* result);
-bool GetHidStringProperty(IOHIDDeviceRef device,
- CFStringRef key,
- std::string* result);
+bool TryGetHidStringProperty(IOHIDDeviceRef device,
+ CFStringRef key,
+ std::string* result);
} // namespace device
« no previous file with comments | « device/hid/hid_service_win.cc ('k') | device/hid/hid_utils_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698