dom/interfaces/xul/nsIDOMXULPopupElement.idl
author Nicholas Cameron <ncameron@mozilla.com>
Mon, 15 Apr 2013 13:25:14 +1200
changeset 135516 32f6b90836a63fb51527ccc892587f1a7b5a75d3
parent 135457 9b71c6c95c6c2c1ad1d2416a958d6e44b1f4e5f9
child 190870 30c536b1ee3400ff73c54d4e1bb27249b9b6ced6
permissions -rw-r--r--
Bug 861127, refactor ContentClientRemote::CreateBuffer. r=Bas

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsIDOMElement.idl"
#include "nsIDOMXULElement.idl"

[scriptable, uuid(84fcce86-79de-4e22-8b9a-2c014ebde3e5)]
interface nsIDOMXULPopupElement : nsIDOMXULElement {
  const unsigned short      BEFORE_START                   = 1;
  const unsigned short      BEFORE_END                     = 2;
  const unsigned short      AFTER_START                    = 3;
  const unsigned short      AFTER_END                      = 4;
  const unsigned short      START_BEFORE                   = 5;
  const unsigned short      START_AFTER                    = 6;
  const unsigned short      END_BEFORE                     = 7;
  const unsigned short      END_AFTER                      = 8;
  const unsigned short      OVERLAP                        = 9;
  const unsigned short      AT_POINTER                     = 10;
  const unsigned short      AFTER_POINTER                  = 11;

  attribute DOMString position;
  
  void showPopup(in unsigned short alignment, 
                 in nsIDOMElement target,
                 in nsIDOMElement anchor);
  void hidePopup();
};