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
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 file, |
michael@0 | 4 | * You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | */ |
michael@0 | 6 | |
michael@0 | 7 | interface MozBoxObject; |
michael@0 | 8 | interface MozControllers; |
michael@0 | 9 | interface MozFrameLoader; |
michael@0 | 10 | interface MozRDFCompositeDataSource; |
michael@0 | 11 | interface MozRDFResource; |
michael@0 | 12 | interface MozXULTemplateBuilder; |
michael@0 | 13 | |
michael@0 | 14 | [Func="IsChromeOrXBL"] |
michael@0 | 15 | interface XULElement : Element { |
michael@0 | 16 | [SetterThrows] |
michael@0 | 17 | attribute DOMString className; |
michael@0 | 18 | |
michael@0 | 19 | // Layout properties |
michael@0 | 20 | [SetterThrows] |
michael@0 | 21 | attribute DOMString align; |
michael@0 | 22 | [SetterThrows] |
michael@0 | 23 | attribute DOMString dir; |
michael@0 | 24 | [SetterThrows] |
michael@0 | 25 | attribute DOMString flex; |
michael@0 | 26 | [SetterThrows] |
michael@0 | 27 | attribute DOMString flexGroup; |
michael@0 | 28 | [SetterThrows] |
michael@0 | 29 | attribute DOMString ordinal; |
michael@0 | 30 | [SetterThrows] |
michael@0 | 31 | attribute DOMString orient; |
michael@0 | 32 | [SetterThrows] |
michael@0 | 33 | attribute DOMString pack; |
michael@0 | 34 | |
michael@0 | 35 | // Properties for hiding elements. |
michael@0 | 36 | attribute boolean hidden; |
michael@0 | 37 | attribute boolean collapsed; |
michael@0 | 38 | |
michael@0 | 39 | // Property for hooking up to broadcasters |
michael@0 | 40 | [SetterThrows] |
michael@0 | 41 | attribute DOMString observes; |
michael@0 | 42 | |
michael@0 | 43 | // Properties for hooking up to popups |
michael@0 | 44 | [SetterThrows] |
michael@0 | 45 | attribute DOMString menu; |
michael@0 | 46 | [SetterThrows] |
michael@0 | 47 | attribute DOMString contextMenu; |
michael@0 | 48 | [SetterThrows] |
michael@0 | 49 | attribute DOMString tooltip; |
michael@0 | 50 | |
michael@0 | 51 | // Width/height properties |
michael@0 | 52 | [SetterThrows] |
michael@0 | 53 | attribute DOMString width; |
michael@0 | 54 | [SetterThrows] |
michael@0 | 55 | attribute DOMString height; |
michael@0 | 56 | [SetterThrows] |
michael@0 | 57 | attribute DOMString minWidth; |
michael@0 | 58 | [SetterThrows] |
michael@0 | 59 | attribute DOMString minHeight; |
michael@0 | 60 | [SetterThrows] |
michael@0 | 61 | attribute DOMString maxWidth; |
michael@0 | 62 | [SetterThrows] |
michael@0 | 63 | attribute DOMString maxHeight; |
michael@0 | 64 | |
michael@0 | 65 | // Persistence |
michael@0 | 66 | [SetterThrows] |
michael@0 | 67 | attribute DOMString persist; |
michael@0 | 68 | |
michael@0 | 69 | // Position properties for |
michael@0 | 70 | // * popups - these are screen coordinates |
michael@0 | 71 | // * other elements - these are client coordinates relative to parent stack. |
michael@0 | 72 | [SetterThrows] |
michael@0 | 73 | attribute DOMString left; |
michael@0 | 74 | [SetterThrows] |
michael@0 | 75 | attribute DOMString top; |
michael@0 | 76 | |
michael@0 | 77 | // XUL Template Builder |
michael@0 | 78 | [SetterThrows] |
michael@0 | 79 | attribute DOMString datasources; |
michael@0 | 80 | [SetterThrows] |
michael@0 | 81 | attribute DOMString ref; |
michael@0 | 82 | |
michael@0 | 83 | // Tooltip and status info |
michael@0 | 84 | [SetterThrows] |
michael@0 | 85 | attribute DOMString tooltipText; |
michael@0 | 86 | [SetterThrows] |
michael@0 | 87 | attribute DOMString statusText; |
michael@0 | 88 | |
michael@0 | 89 | attribute boolean allowEvents; |
michael@0 | 90 | |
michael@0 | 91 | readonly attribute MozRDFCompositeDataSource? database; |
michael@0 | 92 | readonly attribute MozXULTemplateBuilder? builder; |
michael@0 | 93 | [Throws] |
michael@0 | 94 | readonly attribute MozRDFResource? resource; |
michael@0 | 95 | [Throws] |
michael@0 | 96 | readonly attribute MozControllers controllers; |
michael@0 | 97 | [Throws] |
michael@0 | 98 | readonly attribute MozBoxObject? boxObject; |
michael@0 | 99 | |
michael@0 | 100 | [Throws] |
michael@0 | 101 | void focus(); |
michael@0 | 102 | [Throws] |
michael@0 | 103 | void blur(); |
michael@0 | 104 | [Throws] |
michael@0 | 105 | void click(); |
michael@0 | 106 | void doCommand(); |
michael@0 | 107 | |
michael@0 | 108 | // XXXbz this isn't really a nodelist! See bug 818548 |
michael@0 | 109 | NodeList getElementsByAttribute(DOMString name, |
michael@0 | 110 | DOMString value); |
michael@0 | 111 | // XXXbz this isn't really a nodelist! See bug 818548 |
michael@0 | 112 | [Throws] |
michael@0 | 113 | NodeList getElementsByAttributeNS(DOMString namespaceURI, |
michael@0 | 114 | DOMString name, |
michael@0 | 115 | DOMString value); |
michael@0 | 116 | [Constant] |
michael@0 | 117 | readonly attribute CSSStyleDeclaration style; |
michael@0 | 118 | }; |
michael@0 | 119 | |
michael@0 | 120 | // And the things from nsIFrameLoaderOwner |
michael@0 | 121 | [NoInterfaceObject] |
michael@0 | 122 | interface MozFrameLoaderOwner { |
michael@0 | 123 | [ChromeOnly] |
michael@0 | 124 | readonly attribute MozFrameLoader? frameLoader; |
michael@0 | 125 | |
michael@0 | 126 | [ChromeOnly, Throws] |
michael@0 | 127 | void swapFrameLoaders(XULElement aOtherOwner); |
michael@0 | 128 | }; |
michael@0 | 129 | |
michael@0 | 130 | XULElement implements GlobalEventHandlers; |
michael@0 | 131 | XULElement implements TouchEventHandlers; |
michael@0 | 132 | XULElement implements MozFrameLoaderOwner; |
michael@0 | 133 | XULElement implements OnErrorEventHandlerForNodes; |