2001-09-25 22:58:40 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
2004-09-12 15:59:33 +00:00
|
|
|
* Version: Mozilla-sample-code 1.0
|
2002-06-19 14:25:27 +00:00
|
|
|
*
|
2004-09-12 15:59:33 +00:00
|
|
|
* Copyright (c) 2002 Netscape Communications Corporation and
|
|
|
|
* other contributors
|
2002-06-19 14:25:27 +00:00
|
|
|
*
|
2004-09-12 15:59:33 +00:00
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this Mozilla sample software and associated documentation files
|
|
|
|
* (the "Software"), to deal in the Software without restriction, including
|
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
* distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
|
|
* persons to whom the Software is furnished to do so, subject to the
|
|
|
|
* following conditions:
|
2002-06-19 14:25:27 +00:00
|
|
|
*
|
2004-09-12 15:59:33 +00:00
|
|
|
* The above copyright notice and this permission notice shall be included
|
|
|
|
* in all copies or substantial portions of the Software.
|
2002-06-19 14:25:27 +00:00
|
|
|
*
|
2004-09-12 15:59:33 +00:00
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
|
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
|
|
* DEALINGS IN THE SOFTWARE.
|
2001-02-07 05:04:38 +00:00
|
|
|
*
|
2001-09-25 22:58:40 +00:00
|
|
|
* Contributor(s):
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
2001-02-07 05:04:38 +00:00
|
|
|
|
2005-09-15 12:04:57 +00:00
|
|
|
#include "nscore.h"
|
2001-02-07 05:04:38 +00:00
|
|
|
|
2001-02-17 02:43:58 +00:00
|
|
|
class nsIWebBrowserChrome;
|
2001-02-07 05:04:38 +00:00
|
|
|
|
2001-04-21 02:45:37 +00:00
|
|
|
namespace AppCallbacks {
|
|
|
|
nsresult CreateBrowserWindow(PRUint32 aChromeFlags,
|
|
|
|
nsIWebBrowserChrome *aParent,
|
|
|
|
nsIWebBrowserChrome **aNewWindow);
|
2001-02-07 05:04:38 +00:00
|
|
|
|
2001-04-21 02:45:37 +00:00
|
|
|
void EnableChromeWindow(nsIWebBrowserChrome *aWindow, PRBool aEnabled);
|
|
|
|
|
|
|
|
PRUint32 RunEventLoop(PRBool &aRunCondition);
|
|
|
|
}
|