dom/webidl/XULElement.webidl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/webidl/XULElement.webidl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,133 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 + */
     1.9 +
    1.10 +interface MozBoxObject;
    1.11 +interface MozControllers;
    1.12 +interface MozFrameLoader;
    1.13 +interface MozRDFCompositeDataSource;
    1.14 +interface MozRDFResource;
    1.15 +interface MozXULTemplateBuilder;
    1.16 +
    1.17 +[Func="IsChromeOrXBL"]
    1.18 +interface XULElement : Element {
    1.19 +  [SetterThrows]
    1.20 +  attribute DOMString className;
    1.21 +
    1.22 +  // Layout properties
    1.23 +  [SetterThrows]
    1.24 +  attribute DOMString align;
    1.25 +  [SetterThrows]
    1.26 +  attribute DOMString dir;
    1.27 +  [SetterThrows]
    1.28 +  attribute DOMString flex;
    1.29 +  [SetterThrows]
    1.30 +  attribute DOMString flexGroup;
    1.31 +  [SetterThrows]
    1.32 +  attribute DOMString ordinal;
    1.33 +  [SetterThrows]
    1.34 +  attribute DOMString orient;
    1.35 +  [SetterThrows]
    1.36 +  attribute DOMString pack;
    1.37 +
    1.38 +  // Properties for hiding elements.
    1.39 +  attribute boolean hidden;
    1.40 +  attribute boolean collapsed;
    1.41 +
    1.42 +  // Property for hooking up to broadcasters
    1.43 +  [SetterThrows]
    1.44 +  attribute DOMString observes;
    1.45 +
    1.46 +  // Properties for hooking up to popups
    1.47 +  [SetterThrows]
    1.48 +  attribute DOMString menu;
    1.49 +  [SetterThrows]
    1.50 +  attribute DOMString contextMenu;
    1.51 +  [SetterThrows]
    1.52 +  attribute DOMString tooltip;
    1.53 +
    1.54 +  // Width/height properties
    1.55 +  [SetterThrows]
    1.56 +  attribute DOMString width;
    1.57 +  [SetterThrows]
    1.58 +  attribute DOMString height;
    1.59 +  [SetterThrows]
    1.60 +  attribute DOMString minWidth;
    1.61 +  [SetterThrows]
    1.62 +  attribute DOMString minHeight;
    1.63 +  [SetterThrows]
    1.64 +  attribute DOMString maxWidth;
    1.65 +  [SetterThrows]
    1.66 +  attribute DOMString maxHeight;
    1.67 +
    1.68 +  // Persistence
    1.69 +  [SetterThrows]
    1.70 +  attribute DOMString persist;
    1.71 +
    1.72 +  // Position properties for
    1.73 +  // * popups - these are screen coordinates
    1.74 +  // * other elements - these are client coordinates relative to parent stack.
    1.75 +  [SetterThrows]
    1.76 +  attribute DOMString left;
    1.77 +  [SetterThrows]
    1.78 +  attribute DOMString top;
    1.79 +
    1.80 +  // XUL Template Builder
    1.81 +  [SetterThrows]
    1.82 +  attribute DOMString datasources;
    1.83 +  [SetterThrows]
    1.84 +  attribute DOMString ref;
    1.85 +
    1.86 +  // Tooltip and status info
    1.87 +  [SetterThrows]
    1.88 +  attribute DOMString tooltipText;
    1.89 +  [SetterThrows]
    1.90 +  attribute DOMString statusText;
    1.91 +
    1.92 +  attribute boolean allowEvents;
    1.93 +
    1.94 +  readonly attribute MozRDFCompositeDataSource? database;
    1.95 +  readonly attribute MozXULTemplateBuilder?     builder;
    1.96 +  [Throws]
    1.97 +  readonly attribute MozRDFResource?            resource;
    1.98 +  [Throws]
    1.99 +  readonly attribute MozControllers             controllers;
   1.100 +  [Throws]
   1.101 +  readonly attribute MozBoxObject?              boxObject;
   1.102 +
   1.103 +  [Throws]
   1.104 +  void                      focus();
   1.105 +  [Throws]
   1.106 +  void                      blur();
   1.107 +  [Throws]
   1.108 +  void                      click();
   1.109 +  void                      doCommand();
   1.110 +
   1.111 +  // XXXbz this isn't really a nodelist!  See bug 818548
   1.112 +  NodeList            getElementsByAttribute(DOMString name,
   1.113 +                                             DOMString value);
   1.114 +  // XXXbz this isn't really a nodelist!  See bug 818548
   1.115 +  [Throws]
   1.116 +  NodeList            getElementsByAttributeNS(DOMString namespaceURI,
   1.117 +                                               DOMString name,
   1.118 +                                               DOMString value);
   1.119 +  [Constant]
   1.120 +  readonly attribute CSSStyleDeclaration style;
   1.121 +};
   1.122 +
   1.123 +// And the things from nsIFrameLoaderOwner
   1.124 +[NoInterfaceObject]
   1.125 +interface MozFrameLoaderOwner {
   1.126 +  [ChromeOnly]
   1.127 +  readonly attribute MozFrameLoader? frameLoader;
   1.128 +
   1.129 +  [ChromeOnly, Throws]
   1.130 +  void swapFrameLoaders(XULElement aOtherOwner);
   1.131 +};
   1.132 +
   1.133 +XULElement implements GlobalEventHandlers;
   1.134 +XULElement implements TouchEventHandlers;
   1.135 +XULElement implements MozFrameLoaderOwner;
   1.136 +XULElement implements OnErrorEventHandlerForNodes;

mercurial