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

Unified Diff: Source/modules/background_sync/SyncManager.idl

Issue 963683002: Add IDL and initial Blink API for Background Sync (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressing first round style issues Created 5 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
Index: Source/modules/background_sync/SyncManager.idl
diff --git a/Source/bindings/tests/idls/core/TestPartialInterface4.idl b/Source/modules/background_sync/SyncManager.idl
similarity index 31%
copy from Source/bindings/tests/idls/core/TestPartialInterface4.idl
copy to Source/modules/background_sync/SyncManager.idl
index 524087cdbe82c7bb84404ffd80b87cabb483e262..9dff2924e46fb1cdb0f4d1610302de07870eceab 100644
--- a/Source/bindings/tests/idls/core/TestPartialInterface4.idl
+++ b/Source/modules/background_sync/SyncManager.idl
@@ -3,8 +3,13 @@
// found in the LICENSE file.
[
- Conditional=FOO,
+ //FIXME: Expose on ServiceWorker as well
Michael van Ouwerkerk 2015/03/02 14:19:11 Why is this not exposed on ServiceWorker yet?
iclelland 2015/03/05 04:32:49 I just wasn't sure if there were complications aro
+ Exposed=(Window),
+ GarbageCollected,
+ RuntimeEnabled=BackgroundSync,
TypeChecking=Interface,
-] partial interface TestInterface3 {
- [Conditional=BAR, TypeChecking=Unrestricted] static void voidMethodDocument(Document document, double d);
+] interface SyncManager {
+ [CallWith=ScriptState,ImplementedAs=registerFunction] Promise<SyncRegistration> register(optional SyncRegistrationOptions options);
+ [CallWith=ScriptState] Promise<sequence<SyncRegistration>> getRegistrations();
+ readonly attribute unsigned long minAllowablePeriod;
};

Powered by Google App Engine
This is Rietveld 408576698