MessageEvent.idl 610 B

12345678910111213141516171819
  1. #import <DOM/Event.idl>
  2. interface MessageEvent : Event {
  3. constructor(DOMString type, optional MessageEventInit eventInitDict = {});
  4. readonly attribute any data;
  5. readonly attribute USVString origin;
  6. readonly attribute DOMString lastEventId;
  7. // FIXME: readonly attribute MessageEventSource? source;
  8. // FIXME: readonly attribute FrozenArray<MessagePort> ports;
  9. };
  10. dictionary MessageEventInit : EventInit {
  11. any data = null;
  12. USVString origin = "";
  13. DOMString lastEventId = "";
  14. // FIXME: MessageEventSource? source = null;
  15. // FIXME: sequence<MessagePort> ports = [];
  16. };