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

Unified Diff: components/webusb/public/interfaces/webusb_permission_bubble.mojom

Issue 1404213004: Reland: Add webusb permission bubble mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webusb_permission_ui_1_refactor_permission_bubble_manager
Patch Set: updated webusb.gypi dependencies again Created 5 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 | « components/webusb/public/interfaces/BUILD.gn ('k') | content/child/mojo/type_converters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webusb/public/interfaces/webusb_permission_bubble.mojom
diff --git a/components/webusb/public/interfaces/webusb_permission_bubble.mojom b/components/webusb/public/interfaces/webusb_permission_bubble.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..49ace8402aef52b8bf879c057c871e70164b933b
--- /dev/null
+++ b/components/webusb/public/interfaces/webusb_permission_bubble.mojom
@@ -0,0 +1,19 @@
+// Copyright 2015 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.
+
+module webusb;
+
+import "device/devices_app/usb/public/interfaces/device.mojom";
+import "device/devices_app/usb/public/interfaces/device_manager.mojom";
+
+interface WebUsbPermissionBubble {
+ // Get permission from user to use the device.
+ //
+ // |device_filters| filters the available devices and the filtered
+ // devices will be listed for user to grant permission.
+ //
+ // |result| is the device that user grants permission to use.
+ GetPermission(array<device.usb.DeviceFilter> device_filters)
+ => (device.usb.DeviceInfo? result);
+};
« no previous file with comments | « components/webusb/public/interfaces/BUILD.gn ('k') | content/child/mojo/type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698