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
|
|
|
|
2017-10-11 01:25:10 +03:00
|
|
|
[HTMLConstructor, Func="IsChromeOrXBL"]
|
2013-01-29 21:51:55 +04:00
|
|
|
interface XULElement : Element {
|
|
|
|
// Layout properties
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString align;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString dir;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString flex;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString ordinal;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString orient;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute DOMString pack;
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
|
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
|
|
|
[Throws]
|
2014-10-15 00:15:21 +04:00
|
|
|
readonly attribute BoxObject? boxObject;
|
2013-01-29 21:51:55 +04:00
|
|
|
|
2018-11-17 05:38:27 +03:00
|
|
|
[SetterThrows]
|
|
|
|
attribute long tabIndex;
|
2013-01-29 21:51:55 +04:00
|
|
|
[Throws]
|
|
|
|
void focus();
|
|
|
|
[Throws]
|
|
|
|
void blur();
|
2017-02-02 18:32:58 +03:00
|
|
|
[NeedsCallerType]
|
2013-01-29 21:51:55 +04:00
|
|
|
void click();
|
|
|
|
void doCommand();
|
|
|
|
|
|
|
|
[Constant]
|
|
|
|
readonly attribute CSSStyleDeclaration style;
|
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
|
|
|
};
|
|
|
|
|
|
|
|
XULElement implements GlobalEventHandlers;
|
|
|
|
XULElement implements TouchEventHandlers;
|
2013-10-08 19:51:15 +04:00
|
|
|
XULElement implements OnErrorEventHandlerForNodes;
|