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

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: Remembering how ASCII works 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 34%
copy from Source/bindings/tests/idls/core/TestPartialInterface4.idl
copy to Source/modules/background_sync/SyncManager.idl
index 524087cdbe82c7bb84404ffd80b87cabb483e262..7318d19d332f06a6d0b37ae1f33bd500f2a1628d 100644
--- a/Source/bindings/tests/idls/core/TestPartialInterface4.idl
+++ b/Source/modules/background_sync/SyncManager.idl
@@ -3,8 +3,12 @@
// found in the LICENSE file.
[
- Conditional=FOO,
+ Exposed=(Window),
jkarlin 2015/02/27 20:08:13 Add ServiceWorker as well, or a FIXME to do so
iclelland 2015/03/02 03:51:12 Done. Added FIXME until I add the additional IPC f
+ 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(SyncRegistrationOptions options);
jkarlin 2015/02/27 20:08:13 Why registerFunction instead of register?
jkarlin 2015/02/27 20:08:13 I believe you need to add 'optional' keyword befor
iclelland 2015/03/02 03:51:12 register's a c++ reserved keyword
+ [CallWith=ScriptState] Promise<sequence<SyncRegistration>> getRegistrations();
+ readonly attribute unsigned long minAllowablePeriod;
};

Powered by Google App Engine
This is Rietveld 408576698