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

Unified Diff: device/usb/public/interfaces/device.mojom

Issue 1693433003: webusb: Reject the promise if the device is already open. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/usb/mojo/device_impl_unittest.cc ('k') | third_party/WebKit/Source/modules/webusb/USBError.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/public/interfaces/device.mojom
diff --git a/device/usb/public/interfaces/device.mojom b/device/usb/public/interfaces/device.mojom
index 25addb2d411a1f2fab9c286e47a80a96af1f80c7..de7bd5fb148e87d44187f6becd8dd4a356c42e1a 100644
--- a/device/usb/public/interfaces/device.mojom
+++ b/device/usb/public/interfaces/device.mojom
@@ -10,6 +10,9 @@ enum OpenDeviceError {
// The operating system denied access to the device.
ACCESS_DENIED,
+
+ // The device is already open.
+ ALREADY_OPEN,
};
enum TransferDirection {
« no previous file with comments | « device/usb/mojo/device_impl_unittest.cc ('k') | third_party/WebKit/Source/modules/webusb/USBError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698