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

Unified Diff: Source/modules/webusb/USB.idl

Issue 1291753004: Add onconnect and ondisconnect events to navigator.usb. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update LayoutTests. Created 5 years, 4 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 | « Source/modules/webusb/USB.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webusb/USB.idl
diff --git a/Source/modules/webusb/USB.idl b/Source/modules/webusb/USB.idl
index d8cabbb7eb1edf4b305fdf96ef34ee95c44bf271..40579775c50c2edda129481befc340041665e167 100644
--- a/Source/modules/webusb/USB.idl
+++ b/Source/modules/webusb/USB.idl
@@ -8,7 +8,9 @@
GarbageCollected,
NoInterfaceObject,
RuntimeEnabled=WebUSB,
-] interface USB {
+] interface USB : EventTarget {
+ attribute EventHandler onconnect;
+ attribute EventHandler ondisconnect;
[CallWith=ScriptState] Promise<sequence<USBDevice>> getDevices();
[CallWith=ScriptState] Promise<sequence<USBDevice>> requestDevice(USBDeviceRequestOptions options);
};
« no previous file with comments | « Source/modules/webusb/USB.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698