tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

XULElement.webidl (1600B)


      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 file,
      4 * You can obtain one at http://mozilla.org/MPL/2.0/.
      5 */
      6 
      7 interface XULControllers;
      8 
      9 [ChromeOnly, Exposed=Window]
     10 interface XULElement : Element {
     11  [HTMLConstructor] constructor();
     12 
     13  // Properties for hiding elements.
     14  attribute boolean hidden;
     15  attribute boolean collapsed;
     16 
     17  // Property for hooking up to broadcasters
     18  [SetterThrows]
     19  attribute DOMString observes;
     20 
     21  // Properties for hooking up to popups
     22  [SetterThrows]
     23  attribute DOMString menu;
     24  [SetterThrows]
     25  attribute DOMString contextMenu;
     26  [SetterThrows]
     27  attribute DOMString tooltip;
     28 
     29  // Tooltip
     30  [SetterThrows]
     31  attribute DOMString tooltipText;
     32 
     33  // Properties for images
     34  [SetterThrows]
     35  attribute DOMString src;
     36 
     37  [BinaryName="ensureControllers"]
     38  readonly attribute XULControllers controllers;
     39 
     40  [NeedsCallerType]
     41  undefined click();
     42  undefined doCommand();
     43 
     44  // Returns true if this is a menu-type element that has a menu
     45  // frame associated with it.
     46  boolean hasMenu();
     47 
     48  // If this is a menu-type element, opens or closes the menu
     49  // depending on the argument passed.
     50  undefined openMenu(boolean open);
     51 };
     52 
     53 XULElement includes ElementOffsetAttributes;
     54 XULElement includes GlobalEventHandlers;
     55 XULElement includes HTMLOrForeignElement;
     56 XULElement includes ElementCSSInlineStyle;
     57 XULElement includes TouchEventHandlers;
     58 XULElement includes OnErrorEventHandlerForNodes;