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

Unified Diff: device/hid/hid_service.h

Issue 641203003: Read HID report descriptor from sysfs and request permission on connect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | device/hid/hid_service_linux.h » ('j') | device/hid/hid_service_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_service.h
diff --git a/device/hid/hid_service.h b/device/hid/hid_service.h
index ea540bbb3b80d4013fc5ff5d8f7e08edad3addbe..a571434e7c400d4fe5f07a39c670875a74f6ae3a 100644
--- a/device/hid/hid_service.h
+++ b/device/hid/hid_service.h
@@ -31,6 +31,13 @@ class HidService {
// Returns |true| if successful or |false| if |device_id| is invalid.
bool GetDeviceInfo(const HidDeviceId& device_id, HidDeviceInfo* info) const;
+#if defined(OS_CHROMEOS)
+ // Requests access to the given device from the Chrome OS permission broker.
+ virtual void RequestAccess(
+ const HidDeviceId& device_id,
+ const base::Callback<void(bool success)>& callback) = 0;
+#endif
+
virtual scoped_refptr<HidConnection> Connect(
const HidDeviceId& device_id) = 0;
« no previous file with comments | « no previous file | device/hid/hid_service_linux.h » ('j') | device/hid/hid_service_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698