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();
16 attribute DOMString flex;
18 // Properties for hiding elements.
19 attribute boolean hidden;
20 attribute boolean collapsed;
22 // Property for hooking up to broadcasters
24 attribute DOMString observes;
26 // Properties for hooking up to popups
28 attribute DOMString menu;
30 attribute DOMString contextMenu;
32 attribute DOMString tooltip;
34 // Width/height properties
36 attribute DOMString width;
38 attribute DOMString height;
40 attribute DOMString minWidth;
42 attribute DOMString minHeight;
44 attribute DOMString maxWidth;
46 attribute DOMString maxHeight;
48 // Position properties for
49 // * popups - these are screen coordinates
50 // * other elements - these are client coordinates relative to parent stack.
52 attribute DOMString left;
54 attribute DOMString top;
56 // Return the screen coordinates of the element.
57 readonly attribute long screenX;
58 readonly attribute long screenY;
62 attribute DOMString tooltipText;
64 // Properties for images
66 attribute DOMString src;
68 attribute boolean allowEvents;
71 readonly attribute XULControllers controllers;
77 // Returns true if this is a menu-type element that has a menu
78 // frame associated with it.
81 // If this is a menu-type element, opens or closes the menu
82 // depending on the argument passed.
83 void openMenu(boolean open);
86 XULElement includes GlobalEventHandlers;
87 XULElement includes HTMLOrForeignElement;
88 XULElement includes ElementCSSInlineStyle;
89 XULElement includes TouchEventHandlers;
90 XULElement includes OnErrorEventHandlerForNodes;