dom/interfaces/base/nsIDOMChromeWindow.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/interfaces/base/nsIDOMChromeWindow.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,60 @@
     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 "domstubs.idl"
    1.10 +
    1.11 +interface nsIBrowserDOMWindow;
    1.12 +interface nsIDOMElement;
    1.13 +interface nsIDOMEvent;
    1.14 +interface nsIMessageBroadcaster;
    1.15 +
    1.16 +[scriptable, uuid(0c10226f-8abb-4345-aa6b-2780a6f4687e)]
    1.17 +interface nsIDOMChromeWindow : nsISupports
    1.18 +{
    1.19 +  const unsigned short STATE_MAXIMIZED = 1;
    1.20 +  const unsigned short STATE_MINIMIZED = 2;
    1.21 +  const unsigned short STATE_NORMAL = 3;
    1.22 +  const unsigned short STATE_FULLSCREEN = 4;
    1.23 +
    1.24 +  readonly attribute unsigned short              windowState;
    1.25 +
    1.26 +  /**
    1.27 +   * browserDOMWindow provides access to yet another layer of
    1.28 +   * utility functions implemented by chrome script. It will be null
    1.29 +   * for DOMWindows not corresponding to browsers.
    1.30 +   */
    1.31 +           attribute nsIBrowserDOMWindow browserDOMWindow;
    1.32 +
    1.33 +  void                      getAttention();
    1.34 +
    1.35 +  void                      getAttentionWithCycleCount(in long aCycleCount);
    1.36 +
    1.37 +  void                      setCursor(in DOMString cursor);
    1.38 +
    1.39 +  void                      maximize();
    1.40 +  void                      minimize();
    1.41 +  void                      restore();
    1.42 +
    1.43 +  /**
    1.44 +   * Notify a default button is loaded on a dialog or a wizard.
    1.45 +   * defaultButton is the default button.
    1.46 +   */
    1.47 +  void notifyDefaultButtonLoaded(in nsIDOMElement defaultButton);
    1.48 +
    1.49 +  readonly attribute nsIMessageBroadcaster messageManager;
    1.50 +
    1.51 +  /**
    1.52 +   * On some operating systems, we must allow the window manager to
    1.53 +   * handle window dragging. This function tells the window manager to
    1.54 +   * start dragging the window. This function will fail unless called
    1.55 +   * while the left mouse button is held down, callers must check this.
    1.56 +   *
    1.57 +   * The optional panel argument should be set when moving a panel.
    1.58 +   *
    1.59 +   * Returns NS_ERROR_NOT_IMPLEMENTED (and thus throws in JS) if the OS
    1.60 +   * doesn't support this.
    1.61 +   */
    1.62 +  void beginWindowMove(in nsIDOMEvent mouseDownEvent, [optional] in nsIDOMElement panel);
    1.63 +};

mercurial