michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: * michael@0: * The origin of this IDL file is: michael@0: * dom/interfaces/xul/nsIDOMXULDocument.idl michael@0: */ michael@0: michael@0: interface XULCommandDispatcher; michael@0: interface MozBoxObject; michael@0: interface MozObserver; michael@0: michael@0: [Func="IsChromeOrXBL"] michael@0: interface XULDocument : Document { michael@0: attribute Node? popupNode; michael@0: michael@0: /** michael@0: * These attributes correspond to trustedGetPopupNode().rangeOffset and michael@0: * rangeParent. They will help you find where in the DOM the popup is michael@0: * happening. Can be accessed only during a popup event. Accessing any other michael@0: * time will be an error. michael@0: */ michael@0: [Throws, ChromeOnly] michael@0: readonly attribute Node? popupRangeParent; michael@0: [Throws, ChromeOnly] michael@0: readonly attribute long popupRangeOffset; michael@0: michael@0: attribute Node? tooltipNode; michael@0: michael@0: readonly attribute XULCommandDispatcher? commandDispatcher; michael@0: michael@0: [Throws] michael@0: readonly attribute long width; michael@0: [Throws] michael@0: readonly attribute long height; michael@0: michael@0: NodeList getElementsByAttribute(DOMString name, michael@0: [TreatNullAs=EmptyString] DOMString value); michael@0: [Throws] michael@0: NodeList getElementsByAttributeNS(DOMString? namespaceURI, DOMString name, michael@0: [TreatNullAs=EmptyString] DOMString value); michael@0: michael@0: [Throws] michael@0: void addBroadcastListenerFor(Element broadcaster, Element observer, michael@0: DOMString attr); michael@0: void removeBroadcastListenerFor(Element broadcaster, Element observer, michael@0: DOMString attr); michael@0: michael@0: [Throws] michael@0: void persist([TreatNullAs=EmptyString] DOMString id, DOMString attr); michael@0: michael@0: [Throws] michael@0: MozBoxObject? getBoxObjectFor(Element? element); michael@0: michael@0: [Throws] michael@0: void loadOverlay(DOMString url, MozObserver? observer); michael@0: };