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

Side by Side Diff: components/webusb/public/interfaces/webusb_permission_bubble.mojom

Issue 1408193003: Add chrome side webusb permission UI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed some redundant code Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module webusb; 5 module webusb;
6 6
7 import "device/devices_app/usb/public/interfaces/device.mojom"; 7 import "device/devices_app/usb/public/interfaces/device.mojom";
8 import "device/devices_app/usb/public/interfaces/device_manager.mojom"; 8 import "device/devices_app/usb/public/interfaces/device_manager.mojom";
9 9
10 interface WebUsbPermissionBubble { 10 interface WebUsbPermissionBubble {
11 // Get permission from user to use the device. 11 // Get permission from user to use the device.
12 // 12 //
13 // |device_filters| filters the available devices and the filtered 13 // |device_filters| filters the available devices and the filtered
14 // devices will be listed for user to grant permission. 14 // devices will be listed for user to grant permission.
15 // 15 //
16 // |result| is the device that user grants permission to use. 16 // |result| is the device that user grants permission to use.
17 GetPermission(array<device.usb.DeviceFilter> device_filters) 17 GetPermission(array<device.usb.DeviceFilter> device_filters)
18 => (device.usb.DeviceInfo? result); 18 => (device.usb.DeviceInfo? result);
19
20 // Requests a new binding to this service.
21 Bind(WebUsbPermissionBubble& request);
Reilly Grant (use Gerrit) 2015/11/16 22:45:46 This method doesn't have to be added to the mojo i
juncai 2015/11/17 03:42:15 Done.
19 }; 22 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698