dom/chrome-webidl/JSWindowActor.webidl
author Nika Layzell <nika@thelayzells.com>
Thu, 21 Feb 2019 19:53:59 +0000
changeset 518319 81df30b5a3a1df48ad4719af9e5efa8b68501725
parent 518015 d1eb7612d291462479e9b73f568a2d802024a9b5
child 528335 f17ab3584d22dad10e2e7b62e0692ac8703d49ac
permissions -rw-r--r--
Bug 1528387 - Make actor name implicit to JSWindowActor::SendAsyncMessage, r=jdai Differential Revision: https://phabricator.services.mozilla.com/D20011

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

[NoInterfaceObject]
interface JSWindowActor {
  [Throws]
  void sendAsyncMessage(DOMString messageName,
                        optional any obj,
                        optional any transfers);
};

[ChromeOnly, ChromeConstructor]
interface JSWindowActorParent {
  readonly attribute WindowGlobalParent manager;
};
JSWindowActorParent implements JSWindowActor;

[ChromeOnly, ChromeConstructor]
interface JSWindowActorChild {
  readonly attribute WindowGlobalChild manager;
};
JSWindowActorChild implements JSWindowActor;