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

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: make union type only on stack Created 5 years, 6 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-interface
6
7 [
8 Constructor(DOMString type, optional ServiceWorkerMessageEventInit eventInit Dict),
9 Exposed=(Window, Worker),
10 RuntimeEnabled=ServiceWorker,
11 ] interface ServiceWorkerMessageEvent : Event {
12 readonly attribute DOMString origin;
13 readonly attribute DOMString lastEventId;
14 readonly attribute (ServiceWorker or MessagePort)? source;
15 [Custom=Getter] readonly attribute any data;
falken 2015/06/25 03:49:35 Can you put these in the same order as the spec, f
xiang 2015/06/29 02:32:24 Done.
16 readonly attribute MessagePort[] ports;
falken 2015/06/25 03:49:35 The spec is "MessagePort[]?"
haraken 2015/06/25 04:18:49 Can we add a test for this?
xiang 2015/06/29 02:32:24 Done.
xiang 2015/06/29 02:32:24 The fast/events/constructors/serviceworker-message
17 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698