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

Side by Side Diff: Source/modules/serviceworkers/ServiceWorkerMessageEvent.idl

Issue 1130113006: ServiceWorker: Introduce ServiceWorkerMessageEvent to replace MessageEvent (3/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add initEvent tests 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 unified diff | Download patch
OLDNEW
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698