Index: modules/webusb/NavigatorUSB.idl |
diff --git a/modules/background_sync/ServiceWorkerGlobalScopeSync.idl b/modules/webusb/NavigatorUSB.idl |
similarity index 50% |
copy from modules/background_sync/ServiceWorkerGlobalScopeSync.idl |
copy to modules/webusb/NavigatorUSB.idl |
index f8a766a26f2ec6a1869431aff96ae52d66044abf..d916a0eab9e1efec91e0a6365fddb5099b9b0931 100644 |
--- a/modules/background_sync/ServiceWorkerGlobalScopeSync.idl |
+++ b/modules/webusb/NavigatorUSB.idl |
@@ -2,9 +2,11 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+// http://wicg.github.io/webusb/#device-enumeration |
+ |
[ |
- RuntimeEnabled=BackgroundSync, |
-] partial interface ServiceWorkerGlobalScope { |
- attribute EventHandler onsync; |
- attribute EventHandler onperiodicsync; |
+ GarbageCollected, |
+ RuntimeEnabled=WebUSB, |
+] partial interface Navigator { |
+ readonly attribute USB usb; |
}; |