dom/interfaces/xul/nsIDOMXULElement.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #include "nsIDOMElement.idl"
michael@0 7
michael@0 8 interface nsIRDFCompositeDataSource;
michael@0 9 interface nsIXULTemplateBuilder;
michael@0 10 interface nsIRDFResource;
michael@0 11 interface nsIControllers;
michael@0 12 interface nsIBoxObject;
michael@0 13
michael@0 14
michael@0 15 [scriptable, uuid(e89578c8-64ec-4047-984a-cce1b1735543)]
michael@0 16 interface nsIDOMXULElement : nsIDOMElement
michael@0 17 {
michael@0 18 attribute DOMString className;
michael@0 19
michael@0 20 // Layout properties
michael@0 21 attribute DOMString align;
michael@0 22 attribute DOMString dir;
michael@0 23 attribute DOMString flex;
michael@0 24 attribute DOMString flexGroup;
michael@0 25 attribute DOMString ordinal;
michael@0 26 attribute DOMString orient;
michael@0 27 attribute DOMString pack;
michael@0 28
michael@0 29 // Properties for hiding elements.
michael@0 30 attribute boolean hidden;
michael@0 31 attribute boolean collapsed;
michael@0 32
michael@0 33 // Property for hooking up to broadcasters
michael@0 34 attribute DOMString observes;
michael@0 35
michael@0 36 // Properties for hooking up to popups
michael@0 37 attribute DOMString menu;
michael@0 38 attribute DOMString contextMenu;
michael@0 39 attribute DOMString tooltip;
michael@0 40
michael@0 41 // Width/height properties
michael@0 42 attribute DOMString width;
michael@0 43 attribute DOMString height;
michael@0 44 attribute DOMString minWidth;
michael@0 45 attribute DOMString minHeight;
michael@0 46 attribute DOMString maxWidth;
michael@0 47 attribute DOMString maxHeight;
michael@0 48
michael@0 49 // Persistence
michael@0 50 attribute DOMString persist;
michael@0 51
michael@0 52 // Position properties for
michael@0 53 // * popups - these are screen coordinates
michael@0 54 // * other elements - these are client coordinates relative to parent stack.
michael@0 55 attribute DOMString left;
michael@0 56 attribute DOMString top;
michael@0 57
michael@0 58 // XUL Template Builder
michael@0 59 attribute DOMString datasources;
michael@0 60 attribute DOMString ref;
michael@0 61
michael@0 62 // Tooltip and status info
michael@0 63 attribute DOMString tooltipText;
michael@0 64 attribute DOMString statusText;
michael@0 65
michael@0 66 attribute boolean allowEvents;
michael@0 67
michael@0 68 readonly attribute nsIRDFCompositeDataSource database;
michael@0 69 readonly attribute nsIXULTemplateBuilder builder;
michael@0 70 readonly attribute nsIRDFResource resource;
michael@0 71 readonly attribute nsIControllers controllers;
michael@0 72 readonly attribute nsIBoxObject boxObject;
michael@0 73
michael@0 74 void focus();
michael@0 75 void blur();
michael@0 76 void click();
michael@0 77 void doCommand();
michael@0 78
michael@0 79 nsIDOMNodeList getElementsByAttribute(in DOMString name,
michael@0 80 in DOMString value);
michael@0 81
michael@0 82 nsIDOMNodeList getElementsByAttributeNS(in DOMString namespaceURI,
michael@0 83 in DOMString name,
michael@0 84 in DOMString value);
michael@0 85 };

mercurial