dom/webidl/XULDocument.webidl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/webidl/XULDocument.webidl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,58 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 + *
     1.9 + * The origin of this IDL file is:
    1.10 + * dom/interfaces/xul/nsIDOMXULDocument.idl
    1.11 + */
    1.12 +
    1.13 +interface XULCommandDispatcher;
    1.14 +interface MozBoxObject;
    1.15 +interface MozObserver;
    1.16 +
    1.17 +[Func="IsChromeOrXBL"]
    1.18 +interface XULDocument : Document {
    1.19 +           attribute Node? popupNode;
    1.20 +
    1.21 +  /**
    1.22 +   * These attributes correspond to trustedGetPopupNode().rangeOffset and
    1.23 +   * rangeParent. They will help you find where in the DOM the popup is
    1.24 +   * happening. Can be accessed only during a popup event. Accessing any other
    1.25 +   * time will be an error.
    1.26 +   */
    1.27 +  [Throws, ChromeOnly]
    1.28 +  readonly attribute Node? popupRangeParent;
    1.29 +  [Throws, ChromeOnly]
    1.30 +  readonly attribute long  popupRangeOffset;
    1.31 +
    1.32 +           attribute Node? tooltipNode;
    1.33 +
    1.34 +  readonly attribute XULCommandDispatcher? commandDispatcher;
    1.35 +
    1.36 +  [Throws]
    1.37 +  readonly attribute long width;
    1.38 +  [Throws]
    1.39 +  readonly attribute long height;
    1.40 +
    1.41 +  NodeList getElementsByAttribute(DOMString name,
    1.42 +                                  [TreatNullAs=EmptyString] DOMString value);
    1.43 +  [Throws]
    1.44 +  NodeList getElementsByAttributeNS(DOMString? namespaceURI, DOMString name,
    1.45 +                                    [TreatNullAs=EmptyString] DOMString value);
    1.46 +
    1.47 +  [Throws]
    1.48 +  void addBroadcastListenerFor(Element broadcaster, Element observer,
    1.49 +                               DOMString attr);
    1.50 +  void removeBroadcastListenerFor(Element broadcaster, Element observer,
    1.51 +                                  DOMString attr);
    1.52 +
    1.53 +  [Throws]
    1.54 +  void persist([TreatNullAs=EmptyString] DOMString id, DOMString attr);
    1.55 +
    1.56 +  [Throws]
    1.57 +  MozBoxObject? getBoxObjectFor(Element? element);
    1.58 +
    1.59 +  [Throws]
    1.60 +  void loadOverlay(DOMString url, MozObserver? observer);
    1.61 +};

mercurial