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/.
7 interface XULControllers;
11 interface XULElement : Element {
12 [HTMLConstructor] constructor();
14 // Properties for hiding elements.
15 attribute boolean hidden;
16 attribute boolean collapsed;
18 // Property for hooking up to broadcasters
20 attribute DOMString observes;
22 // Properties for hooking up to popups
24 attribute DOMString menu;
26 attribute DOMString contextMenu;
28 attribute DOMString tooltip;
32 attribute DOMString tooltipText;
34 // Properties for images
36 attribute DOMString src;
39 readonly attribute XULControllers controllers;
43 undefined doCommand();
45 // Returns true if this is a menu-type element that has a menu
46 // frame associated with it.
49 // If this is a menu-type element, opens or closes the menu
50 // depending on the argument passed.
51 undefined openMenu(boolean open);
54 XULElement includes GlobalEventHandlers;
55 XULElement includes HTMLOrForeignElement;
56 XULElement includes ElementCSSInlineStyle;
57 XULElement includes TouchEventHandlers;
58 XULElement includes OnErrorEventHandlerForNodes;