2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#include "domstubs.idl"
|
|
|
|
|
|
|
|
interface nsIBrowserDOMWindow;
|
2009-07-15 02:54:30 -07:00
|
|
|
interface nsIDOMElement;
|
2010-07-17 01:11:54 -07:00
|
|
|
interface nsIDOMEvent;
|
2012-08-27 07:13:02 -07:00
|
|
|
interface nsIMessageBroadcaster;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-12-09 07:34:04 -08:00
|
|
|
[scriptable, uuid(0c10226f-8abb-4345-aa6b-2780a6f4687e)]
|
2007-03-22 10:30:00 -07:00
|
|
|
interface nsIDOMChromeWindow : nsISupports
|
|
|
|
{
|
|
|
|
const unsigned short STATE_MAXIMIZED = 1;
|
|
|
|
const unsigned short STATE_MINIMIZED = 2;
|
|
|
|
const unsigned short STATE_NORMAL = 3;
|
2009-07-08 09:13:13 -07:00
|
|
|
const unsigned short STATE_FULLSCREEN = 4;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2007-08-24 18:55:28 -07:00
|
|
|
readonly attribute unsigned short windowState;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* browserDOMWindow provides access to yet another layer of
|
|
|
|
* utility functions implemented by chrome script. It will be null
|
|
|
|
* for DOMWindows not corresponding to browsers.
|
|
|
|
*/
|
2007-08-24 18:55:28 -07:00
|
|
|
attribute nsIBrowserDOMWindow browserDOMWindow;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
void getAttention();
|
|
|
|
|
|
|
|
void getAttentionWithCycleCount(in long aCycleCount);
|
|
|
|
|
|
|
|
void setCursor(in DOMString cursor);
|
|
|
|
|
|
|
|
void maximize();
|
|
|
|
void minimize();
|
|
|
|
void restore();
|
2009-07-15 02:54:30 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify a default button is loaded on a dialog or a wizard.
|
|
|
|
* defaultButton is the default button.
|
|
|
|
*/
|
|
|
|
void notifyDefaultButtonLoaded(in nsIDOMElement defaultButton);
|
2010-05-18 05:28:37 -07:00
|
|
|
|
2012-08-27 07:13:02 -07:00
|
|
|
readonly attribute nsIMessageBroadcaster messageManager;
|
2010-07-17 01:11:54 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* On some operating systems, we must allow the window manager to
|
|
|
|
* handle window dragging. This function tells the window manager to
|
|
|
|
* start dragging the window. This function will fail unless called
|
|
|
|
* while the left mouse button is held down, callers must check this.
|
|
|
|
*
|
2011-06-03 12:38:24 -07:00
|
|
|
* The optional panel argument should be set when moving a panel.
|
|
|
|
*
|
2010-07-17 01:11:54 -07:00
|
|
|
* Returns NS_ERROR_NOT_IMPLEMENTED (and thus throws in JS) if the OS
|
|
|
|
* doesn't support this.
|
|
|
|
*/
|
2011-06-03 12:38:24 -07:00
|
|
|
void beginWindowMove(in nsIDOMEvent mouseDownEvent, [optional] in nsIDOMElement panel);
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|