OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#serviceworke rmessage-event-section | |
6 | |
7 [ | |
8 CustomConstructor(DOMString type, optional ServiceWorkerMessageEventInit eve ntInitDict), | |
falken
2015/05/18 03:40:23
CustomConstructor is listed as "strongly discourag
bashi
2015/05/20 05:22:16
I don't see why you need CustomConstructor. This s
| |
9 Exposed=(Window, Worker), | |
10 RuntimeEnabled=ServiceWorker, | |
11 ] interface ServiceWorkerMessageEvent : Event { | |
12 [InitializedByEventConstructor] readonly attribute DOMString origin; | |
bashi
2015/05/20 05:22:16
Please drop [InitializedByEventConstructor]. It is
| |
13 [InitializedByEventConstructor] readonly attribute DOMString lastEventId; | |
14 [InitializedByEventConstructor, Custom=Getter] readonly attribute any source ; | |
bashi
2015/05/20 05:22:16
I guess you can use (ServiceWorker or MessagePort)
| |
15 [InitializedByEventConstructor, Custom=Getter] readonly attribute any data; | |
bashi
2015/05/20 05:22:16
Please be careful not to leak V8 objects to differ
| |
16 [InitializedByEventConstructor] readonly attribute MessagePort[] ports; | |
17 [Custom] void initServiceWorkerMessageEvent([Default=Undefined] optional DOM String typeArg, | |
bashi
2015/05/20 05:22:15
I think we should not implement this. I filed a bu
| |
18 [Default=Undefined] optional boolean canBubbl eArg, | |
19 [Default=Undefined] optional boolean cancelab leArg, | |
20 [Default=Undefined] optional any dataArg, | |
21 [Default=Undefined] optional DOMString origin Arg, | |
22 [Default=Undefined] optional DOMString lastEv entIdArg, | |
23 [Default=Undefined] optional any sourceArg, | |
24 [Default=Undefined] optional MessagePort[] me ssagePorts); | |
25 }; | |
OLD | NEW |