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/.
6 * The origin of this IDL file is:
7 * dom/interfaces/xul/nsIDOMXULDocument.idl
10 interface XULCommandDispatcher;
11 interface MozBoxObject;
12 interface MozObserver;
14 [Func="IsChromeOrXBL"]
15 interface XULDocument : Document {
16 attribute Node? popupNode;
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.
25 readonly attribute Node? popupRangeParent;
27 readonly attribute long popupRangeOffset;
29 attribute Node? tooltipNode;
31 readonly attribute XULCommandDispatcher? commandDispatcher;
34 readonly attribute long width;
36 readonly attribute long height;
38 NodeList getElementsByAttribute(DOMString name,
39 [TreatNullAs=EmptyString] DOMString value);
41 NodeList getElementsByAttributeNS(DOMString? namespaceURI, DOMString name,
42 [TreatNullAs=EmptyString] DOMString value);
45 void addBroadcastListenerFor(Element broadcaster, Element observer,
47 void removeBroadcastListenerFor(Element broadcaster, Element observer,
51 void persist([TreatNullAs=EmptyString] DOMString id, DOMString attr);
54 MozBoxObject? getBoxObjectFor(Element? element);
57 void loadOverlay(DOMString url, MozObserver? observer);