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); |
+}; |