Back to index

lightning-sunbird  0.9+nobinonly
nsIWebBrowserChrome.idl
Go to the documentation of this file.
00001 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *
00003  * ***** BEGIN LICENSE BLOCK *****
00004  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00005  *
00006  * The contents of this file are subject to the Mozilla Public License Version
00007  * 1.1 (the "License"); you may not use this file except in compliance with
00008  * the License. You may obtain a copy of the License at
00009  * http://www.mozilla.org/MPL/
00010  *
00011  * Software distributed under the License is distributed on an "AS IS" basis,
00012  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00013  * for the specific language governing rights and limitations under the
00014  * License.
00015  *
00016  * The Original Code is the Mozilla browser.
00017  *
00018  * The Initial Developer of the Original Code is
00019  * Netscape Communications, Inc.
00020  * Portions created by the Initial Developer are Copyright (C) 1999
00021  * the Initial Developer. All Rights Reserved.
00022  *
00023  * Contributor(s):
00024  *   Travis Bogard <travis@netscape.com>
00025  *
00026  * Alternatively, the contents of this file may be used under the terms of
00027  * either the GNU General Public License Version 2 or later (the "GPL"), or
00028  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00029  * in which case the provisions of the GPL or the LGPL are applicable instead
00030  * of those above. If you wish to allow use of your version of this file only
00031  * under the terms of either the GPL or the LGPL, and not to allow others to
00032  * use your version of this file under the terms of the MPL, indicate your
00033  * decision by deleting the provisions above and replace them with the notice
00034  * and other provisions required by the GPL or the LGPL. If you do not delete
00035  * the provisions above, a recipient may use your version of this file under
00036  * the terms of any one of the MPL, the GPL or the LGPL.
00037  *
00038  * ***** END LICENSE BLOCK ***** */
00039 
00040 #include "nsISupports.idl"
00041 
00042 interface nsIWebBrowser;
00043 interface nsIDocShellTreeItem;
00044 
00052 [scriptable, uuid(BA434C60-9D52-11d3-AFB0-00A024FFC08C)]
00053 interface nsIWebBrowserChrome : nsISupports
00054 {
00055     const unsigned long STATUS_SCRIPT         = 0x00000001;
00056     const unsigned long STATUS_SCRIPT_DEFAULT = 0x00000002;
00057     const unsigned long STATUS_LINK           = 0x00000003;
00058 
00065     void setStatus(in unsigned long statusType, in wstring status);
00066 
00075     attribute nsIWebBrowser webBrowser;
00076 
00080     const unsigned long CHROME_DEFAULT          = 0x00000001;
00081     const unsigned long CHROME_WINDOW_BORDERS   = 0x00000002;
00082     const unsigned long CHROME_WINDOW_CLOSE     = 0x00000004;
00083     const unsigned long CHROME_WINDOW_RESIZE    = 0x00000008;
00084     const unsigned long CHROME_MENUBAR          = 0x00000010;
00085     const unsigned long CHROME_TOOLBAR          = 0x00000020;
00086     const unsigned long CHROME_LOCATIONBAR      = 0x00000040;
00087     const unsigned long CHROME_STATUSBAR        = 0x00000080;
00088     const unsigned long CHROME_PERSONAL_TOOLBAR = 0x00000100;
00089     const unsigned long CHROME_SCROLLBARS       = 0x00000200;
00090     const unsigned long CHROME_TITLEBAR         = 0x00000400;
00091     const unsigned long CHROME_EXTRA            = 0x00000800;
00092     
00093     // createBrowserWindow specific flags
00094     const unsigned long CHROME_WITH_SIZE        = 0x00001000;
00095     const unsigned long CHROME_WITH_POSITION    = 0x00002000;
00096 
00097     // special cases
00098     const unsigned long CHROME_WINDOW_MIN       = 0x00004000;
00099     const unsigned long CHROME_WINDOW_POPUP     = 0x00008000;
00100 
00101     const unsigned long CHROME_WINDOW_RAISED    = 0x02000000;
00102     const unsigned long CHROME_WINDOW_LOWERED   = 0x04000000;
00103     const unsigned long CHROME_CENTER_SCREEN    = 0x08000000;
00104 
00105     // Make the new window dependent on the parent.  This flag is only
00106     // meaningful if CHROME_OPENAS_CHROME is set; content windows should not be
00107     // dependent.
00108     const unsigned long CHROME_DEPENDENT        = 0x10000000;
00109 
00110     // Note: The modal style bit just affects the way the window looks and does
00111     //       mean it's actually modal.
00112     const unsigned long CHROME_MODAL            = 0x20000000; 
00113     const unsigned long CHROME_OPENAS_DIALOG    = 0x40000000;
00114     const unsigned long CHROME_OPENAS_CHROME    = 0x80000000;
00115     
00116     const unsigned long CHROME_ALL              = 0x00000ffe;
00117     
00123     attribute unsigned long chromeFlags;
00124 
00129     void destroyBrowserWindow();
00130 
00137     void sizeBrowserTo(in long aCX, in long aCY);
00138     
00144     void showAsModal();
00145     
00150     boolean isWindowModal();
00151 
00157     void exitModalEventLoop(in nsresult aStatus);
00158 };
00159