Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsIDOMElement.idl"
8 interface nsIRDFCompositeDataSource;
9 interface nsIXULTemplateBuilder;
10 interface nsIRDFResource;
11 interface nsIControllers;
12 interface nsIBoxObject;
15 [scriptable, uuid(e89578c8-64ec-4047-984a-cce1b1735543)]
16 interface nsIDOMXULElement : nsIDOMElement
17 {
18 attribute DOMString className;
20 // Layout properties
21 attribute DOMString align;
22 attribute DOMString dir;
23 attribute DOMString flex;
24 attribute DOMString flexGroup;
25 attribute DOMString ordinal;
26 attribute DOMString orient;
27 attribute DOMString pack;
29 // Properties for hiding elements.
30 attribute boolean hidden;
31 attribute boolean collapsed;
33 // Property for hooking up to broadcasters
34 attribute DOMString observes;
36 // Properties for hooking up to popups
37 attribute DOMString menu;
38 attribute DOMString contextMenu;
39 attribute DOMString tooltip;
41 // Width/height properties
42 attribute DOMString width;
43 attribute DOMString height;
44 attribute DOMString minWidth;
45 attribute DOMString minHeight;
46 attribute DOMString maxWidth;
47 attribute DOMString maxHeight;
49 // Persistence
50 attribute DOMString persist;
52 // Position properties for
53 // * popups - these are screen coordinates
54 // * other elements - these are client coordinates relative to parent stack.
55 attribute DOMString left;
56 attribute DOMString top;
58 // XUL Template Builder
59 attribute DOMString datasources;
60 attribute DOMString ref;
62 // Tooltip and status info
63 attribute DOMString tooltipText;
64 attribute DOMString statusText;
66 attribute boolean allowEvents;
68 readonly attribute nsIRDFCompositeDataSource database;
69 readonly attribute nsIXULTemplateBuilder builder;
70 readonly attribute nsIRDFResource resource;
71 readonly attribute nsIControllers controllers;
72 readonly attribute nsIBoxObject boxObject;
74 void focus();
75 void blur();
76 void click();
77 void doCommand();
79 nsIDOMNodeList getElementsByAttribute(in DOMString name,
80 in DOMString value);
82 nsIDOMNodeList getElementsByAttributeNS(in DOMString namespaceURI,
83 in DOMString name,
84 in DOMString value);
85 };