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-interface |
| 6 |
| 7 [ |
| 8 Constructor(DOMString type, optional ServiceWorkerMessageEventInit eventInit
Dict), |
| 9 Exposed=(Window, Worker), |
| 10 RuntimeEnabled=ServiceWorker, |
| 11 ] interface ServiceWorkerMessageEvent : Event { |
| 12 [Custom=Getter] readonly attribute any data; |
| 13 readonly attribute DOMString origin; |
| 14 readonly attribute DOMString lastEventId; |
| 15 readonly attribute (ServiceWorker or MessagePort)? source; |
| 16 readonly attribute MessagePort[]? ports; |
| 17 }; |
OLD | NEW |