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

Unified Diff: modules/serviceworkers/NavigatorServiceWorker.idl

Issue 37053003: Roll IDL to multivm@1467 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 2 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 | « modules/notifications/WorkerGlobalScopeNotifications.idl ('k') | modules/serviceworkers/ServiceWorker.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/serviceworkers/NavigatorServiceWorker.idl
diff --git a/core/dom/PromiseResolver.idl b/modules/serviceworkers/NavigatorServiceWorker.idl
similarity index 84%
rename from core/dom/PromiseResolver.idl
rename to modules/serviceworkers/NavigatorServiceWorker.idl
index b67107018cbef7ff4bcabe631d5f2f403bbd9993..2747667e9bdfd2ba413112d0b32c026be3413820 100644
--- a/core/dom/PromiseResolver.idl
+++ b/modules/serviceworkers/NavigatorServiceWorker.idl
@@ -27,12 +27,9 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
[
- GlobalContext=Window&WorkerGlobalScope,
- EnabledAtRuntime=promise
-] interface PromiseResolver {
- [Custom] void fulfill(optional any value);
- [Custom] void resolve(optional any value);
- [Custom] void reject(optional any value);
+ EnabledAtRuntime=ServiceWorker
+] partial interface Navigator {
+ [CallWith=ScriptExecutionContext, RaisesException] Promise registerServiceWorker(DOMString pattern, DOMString src);
+ [CallWith=ScriptExecutionContext, RaisesException] Promise unregisterServiceWorker(DOMString pattern);
};
« no previous file with comments | « modules/notifications/WorkerGlobalScopeNotifications.idl ('k') | modules/serviceworkers/ServiceWorker.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698