Bug 1867190 - Initialise the PHC allocate delay later r=glandium
[gecko.git] / dom / chrome-webidl / XULElement.webidl
blob96896e8d900c269feae474a03e25b70f16277dbb
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  */
7 interface XULControllers;
9 [ChromeOnly,
10  Exposed=Window]
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
19   [SetterThrows]
20   attribute DOMString observes;
22   // Properties for hooking up to popups
23   [SetterThrows]
24   attribute DOMString menu;
25   [SetterThrows]
26   attribute DOMString contextMenu;
27   [SetterThrows]
28   attribute DOMString tooltip;
30   // Tooltip
31   [SetterThrows]
32   attribute DOMString tooltipText;
34   // Properties for images
35   [SetterThrows]
36   attribute DOMString src;
38   [Throws, ChromeOnly]
39   readonly attribute XULControllers             controllers;
41   [NeedsCallerType]
42   undefined                      click();
43   undefined                      doCommand();
45   // Returns true if this is a menu-type element that has a menu
46   // frame associated with it.
47   boolean hasMenu();
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;