Bumping manifests a=b2g-bump
[gecko.git] / dom / webidl / XULDocument.webidl
blob9553a8f03bd5e3e6fec7ea69ee903e17cc50ff40
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * The origin of this IDL file is:
7  * dom/interfaces/xul/nsIDOMXULDocument.idl
8  */
10 interface XULCommandDispatcher;
11 interface MozBoxObject;
12 interface MozObserver;
14 [Func="IsChromeOrXBL"]
15 interface XULDocument : Document {
16            attribute Node? popupNode;
18   /**
19    * These attributes correspond to trustedGetPopupNode().rangeOffset and
20    * rangeParent. They will help you find where in the DOM the popup is
21    * happening. Can be accessed only during a popup event. Accessing any other
22    * time will be an error.
23    */
24   [Throws, ChromeOnly]
25   readonly attribute Node? popupRangeParent;
26   [Throws, ChromeOnly]
27   readonly attribute long  popupRangeOffset;
29            attribute Node? tooltipNode;
31   readonly attribute XULCommandDispatcher? commandDispatcher;
33   [Throws]
34   readonly attribute long width;
35   [Throws]
36   readonly attribute long height;
38   NodeList getElementsByAttribute(DOMString name,
39                                   [TreatNullAs=EmptyString] DOMString value);
40   [Throws]
41   NodeList getElementsByAttributeNS(DOMString? namespaceURI, DOMString name,
42                                     [TreatNullAs=EmptyString] DOMString value);
44   [Throws]
45   void addBroadcastListenerFor(Element broadcaster, Element observer,
46                                DOMString attr);
47   void removeBroadcastListenerFor(Element broadcaster, Element observer,
48                                   DOMString attr);
50   [Throws]
51   void persist([TreatNullAs=EmptyString] DOMString id, DOMString attr);
53   [Throws]
54   MozBoxObject? getBoxObjectFor(Element? element);
56   [Throws]
57   void loadOverlay(DOMString url, MozObserver? observer);