dom/interfaces/xul/nsIDOMXULElement.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/interfaces/xul/nsIDOMXULElement.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,85 @@
     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
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsIDOMElement.idl"
    1.10 +
    1.11 +interface nsIRDFCompositeDataSource;
    1.12 +interface nsIXULTemplateBuilder;
    1.13 +interface nsIRDFResource;
    1.14 +interface nsIControllers;
    1.15 +interface nsIBoxObject;
    1.16 +
    1.17 +
    1.18 +[scriptable, uuid(e89578c8-64ec-4047-984a-cce1b1735543)]
    1.19 +interface nsIDOMXULElement : nsIDOMElement
    1.20 +{
    1.21 +  attribute DOMString                 className;
    1.22 +
    1.23 +  // Layout properties
    1.24 +  attribute DOMString align;
    1.25 +  attribute DOMString dir;
    1.26 +  attribute DOMString flex;
    1.27 +  attribute DOMString flexGroup;
    1.28 +  attribute DOMString ordinal;
    1.29 +  attribute DOMString orient;
    1.30 +  attribute DOMString pack;
    1.31 +  
    1.32 +  // Properties for hiding elements.
    1.33 +  attribute boolean hidden;
    1.34 +  attribute boolean collapsed;
    1.35 +  
    1.36 +  // Property for hooking up to broadcasters
    1.37 +  attribute DOMString observes;
    1.38 +  
    1.39 +  // Properties for hooking up to popups
    1.40 +  attribute DOMString menu;
    1.41 +  attribute DOMString contextMenu;
    1.42 +  attribute DOMString tooltip;
    1.43 +  
    1.44 +  // Width/height properties
    1.45 +  attribute DOMString width;
    1.46 +  attribute DOMString height;
    1.47 +  attribute DOMString minWidth;
    1.48 +  attribute DOMString minHeight;
    1.49 +  attribute DOMString maxWidth;
    1.50 +  attribute DOMString maxHeight;
    1.51 +
    1.52 +  // Persistence 
    1.53 +  attribute DOMString persist;
    1.54 +
    1.55 +  // Position properties for
    1.56 +  // * popups - these are screen coordinates
    1.57 +  // * other elements - these are client coordinates relative to parent stack. 
    1.58 +  attribute DOMString left;
    1.59 +  attribute DOMString top;
    1.60 +  
    1.61 +  // XUL Template Builder 
    1.62 +  attribute DOMString datasources;
    1.63 +  attribute DOMString ref;
    1.64 +
    1.65 +  // Tooltip and status info
    1.66 +  attribute DOMString tooltipText;
    1.67 +  attribute DOMString statusText;
    1.68 +  
    1.69 +  attribute boolean allowEvents;
    1.70 +
    1.71 +  readonly attribute nsIRDFCompositeDataSource database;
    1.72 +  readonly attribute nsIXULTemplateBuilder     builder;
    1.73 +  readonly attribute nsIRDFResource            resource;
    1.74 +  readonly attribute nsIControllers            controllers;
    1.75 +  readonly attribute nsIBoxObject              boxObject;
    1.76 +
    1.77 +  void                      focus();
    1.78 +  void                      blur();
    1.79 +  void                      click();
    1.80 +  void                      doCommand();
    1.81 +
    1.82 +  nsIDOMNodeList            getElementsByAttribute(in DOMString name,
    1.83 +                                                   in DOMString value);
    1.84 +
    1.85 +  nsIDOMNodeList            getElementsByAttributeNS(in DOMString namespaceURI,
    1.86 +                                                     in DOMString name,
    1.87 +                                                     in DOMString value);
    1.88 +};

mercurial