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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerMessageEvent.idl

Issue 1139873002: [PROTOTYPE] ServiceWorker: Add ServiceWorkerMessageEvent impl. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/serviceworkers/ServiceWorkerMessageEvent.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/ServiceWorkerMessageEvent.idl
diff --git a/Source/modules/serviceworkers/ServiceWorkerMessageEvent.idl b/Source/modules/serviceworkers/ServiceWorkerMessageEvent.idl
new file mode 100644
index 0000000000000000000000000000000000000000..96935ffb0332aeb940f7659fe5df10c83bd1e8ca
--- /dev/null
+++ b/Source/modules/serviceworkers/ServiceWorkerMessageEvent.idl
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#serviceworkermessage-event-section
+
+[
+ EventConstructor,
+ Exposed=(Window,Worker),
+ RuntimeEnabled=ServiceWorker,
+] interface ServiceWorkerMessageEvent : Event {
+ [InitializedByEventConstructor] readonly attribute DOMString origin;
+ [InitializedByEventConstructor] readonly attribute DOMString lastEventId;
+ [InitializedByEventConstructor] readonly attribute (ServiceWorker or MessagePort)? source;
+ [InitializedByEventConstructor, Custom=Getter] readonly attribute any data;
+ [InitializedByEventConstructor] readonly attribute MessagePort[] ports;
+ [Custom] void initServiceWorkerMessageEvent([Default=Undefined] optional DOMString typeArg,
+ [Default=Undefined] optional boolean canBubbleArg,
+ [Default=Undefined] optional boolean cancelableArg,
+ [Default=Undefined] optional any dataArg,
+ [Default=Undefined] optional DOMString originArg,
+ [Default=Undefined] optional DOMString lastEventIdArg,
+ [Default=Undefined] optional (ServiceWorker or MessagePort) sourceArg,
+ [Default=Undefined] optional MessagePort[] messagePorts);
+};
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerMessageEvent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698