2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2013-01-29 21:51:55 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
2017-05-18 10:07:25 +03:00
|
|
|
interface XULControllers;
|
2013-01-29 21:51:55 +04:00
|
|
|
|
2020-02-05 00:28:57 +03:00
|
|
|
[ChromeOnly,
|
2019-09-27 18:26:14 +03:00
|
|
|
Exposed=Window]
|
2013-01-29 21:51:55 +04:00
|
|
|
interface XULElement : Element {
|
2019-10-17 18:38:39 +03:00
|
|
|
[HTMLConstructor] constructor();
|
|
|
|
|
2013-01-29 21:51:55 +04:00
|
|
|
// Layout properties
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString flex;
|
|
|
|
|
|
|
|
// Properties for hiding elements.
|
|
|
|
attribute boolean hidden;
|
|
|
|
attribute boolean collapsed;
|
|
|
|
|
|
|
|
// Property for hooking up to broadcasters
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString observes;
|
|
|
|
|
|
|
|
// Properties for hooking up to popups
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString menu;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString contextMenu;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString tooltip;
|
|
|
|
|
|
|
|
// Width/height properties
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString width;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString height;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString minWidth;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString minHeight;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString maxWidth;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString maxHeight;
|
|
|
|
|
|
|
|
// Position properties for
|
|
|
|
// * popups - these are screen coordinates
|
|
|
|
// * other elements - these are client coordinates relative to parent stack.
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString left;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString top;
|
|
|
|
|
2019-02-15 23:26:08 +03:00
|
|
|
// Return the screen coordinates of the element.
|
|
|
|
readonly attribute long screenX;
|
|
|
|
readonly attribute long screenY;
|
|
|
|
|
2018-04-05 19:10:28 +03:00
|
|
|
// Tooltip
|
2013-01-29 21:51:55 +04:00
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString tooltipText;
|
|
|
|
|
2017-10-28 18:54:09 +03:00
|
|
|
// Properties for images
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString src;
|
|
|
|
|
2013-01-29 21:51:55 +04:00
|
|
|
attribute boolean allowEvents;
|
|
|
|
|
2017-05-18 10:07:25 +03:00
|
|
|
[Throws, ChromeOnly]
|
|
|
|
readonly attribute XULControllers controllers;
|
2013-01-29 21:51:55 +04:00
|
|
|
|
2017-02-02 18:32:58 +03:00
|
|
|
[NeedsCallerType]
|
2013-01-29 21:51:55 +04:00
|
|
|
void click();
|
|
|
|
void doCommand();
|
|
|
|
|
2018-07-31 22:30:17 +03:00
|
|
|
// Returns true if this is a menu-type element that has a menu
|
|
|
|
// frame associated with it.
|
|
|
|
boolean hasMenu();
|
|
|
|
|
|
|
|
// If this is a menu-type element, opens or closes the menu
|
|
|
|
// depending on the argument passed.
|
|
|
|
void openMenu(boolean open);
|
2013-01-29 21:51:55 +04:00
|
|
|
};
|
|
|
|
|
2019-09-06 22:34:55 +03:00
|
|
|
XULElement includes GlobalEventHandlers;
|
2019-09-06 10:46:46 +03:00
|
|
|
XULElement includes HTMLOrForeignElement;
|
2019-09-06 22:34:55 +03:00
|
|
|
XULElement includes ElementCSSInlineStyle;
|
2019-09-24 18:22:26 +03:00
|
|
|
XULElement includes TouchEventHandlers;
|
|
|
|
XULElement includes OnErrorEventHandlerForNodes;
|