dom/interfaces/base/nsIDOMChromeWindow.idl

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #include "domstubs.idl"
michael@0 7
michael@0 8 interface nsIBrowserDOMWindow;
michael@0 9 interface nsIDOMElement;
michael@0 10 interface nsIDOMEvent;
michael@0 11 interface nsIMessageBroadcaster;
michael@0 12
michael@0 13 [scriptable, uuid(0c10226f-8abb-4345-aa6b-2780a6f4687e)]
michael@0 14 interface nsIDOMChromeWindow : nsISupports
michael@0 15 {
michael@0 16 const unsigned short STATE_MAXIMIZED = 1;
michael@0 17 const unsigned short STATE_MINIMIZED = 2;
michael@0 18 const unsigned short STATE_NORMAL = 3;
michael@0 19 const unsigned short STATE_FULLSCREEN = 4;
michael@0 20
michael@0 21 readonly attribute unsigned short windowState;
michael@0 22
michael@0 23 /**
michael@0 24 * browserDOMWindow provides access to yet another layer of
michael@0 25 * utility functions implemented by chrome script. It will be null
michael@0 26 * for DOMWindows not corresponding to browsers.
michael@0 27 */
michael@0 28 attribute nsIBrowserDOMWindow browserDOMWindow;
michael@0 29
michael@0 30 void getAttention();
michael@0 31
michael@0 32 void getAttentionWithCycleCount(in long aCycleCount);
michael@0 33
michael@0 34 void setCursor(in DOMString cursor);
michael@0 35
michael@0 36 void maximize();
michael@0 37 void minimize();
michael@0 38 void restore();
michael@0 39
michael@0 40 /**
michael@0 41 * Notify a default button is loaded on a dialog or a wizard.
michael@0 42 * defaultButton is the default button.
michael@0 43 */
michael@0 44 void notifyDefaultButtonLoaded(in nsIDOMElement defaultButton);
michael@0 45
michael@0 46 readonly attribute nsIMessageBroadcaster messageManager;
michael@0 47
michael@0 48 /**
michael@0 49 * On some operating systems, we must allow the window manager to
michael@0 50 * handle window dragging. This function tells the window manager to
michael@0 51 * start dragging the window. This function will fail unless called
michael@0 52 * while the left mouse button is held down, callers must check this.
michael@0 53 *
michael@0 54 * The optional panel argument should be set when moving a panel.
michael@0 55 *
michael@0 56 * Returns NS_ERROR_NOT_IMPLEMENTED (and thus throws in JS) if the OS
michael@0 57 * doesn't support this.
michael@0 58 */
michael@0 59 void beginWindowMove(in nsIDOMEvent mouseDownEvent, [optional] in nsIDOMElement panel);
michael@0 60 };

mercurial