1998-12-03 04:36:47 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "License"); you may not use this file except in
|
|
|
|
* compliance with the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS"
|
|
|
|
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
|
|
|
|
* the License for the specific language governing rights and limitations
|
|
|
|
* under the License.
|
|
|
|
*
|
|
|
|
* The Original Code is Mozilla Communicator client code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape Communications
|
|
|
|
* Corporation. Portions created by Netscape are Copyright (C) 1998
|
|
|
|
* Netscape Communications Corporation. All Rights Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef nsIAppShellService_h__
|
|
|
|
#define nsIAppShellService_h__
|
|
|
|
|
1998-12-30 03:03:00 +03:00
|
|
|
#include "nscore.h"
|
1998-12-03 04:36:47 +03:00
|
|
|
#include "nsCom.h"
|
|
|
|
#include "nsISupports.h"
|
|
|
|
|
|
|
|
/* Forward declarations... */
|
|
|
|
class nsIFactory;
|
|
|
|
class nsIURL;
|
|
|
|
class nsIWidget;
|
1999-01-21 10:18:30 +03:00
|
|
|
class nsString;
|
1999-02-10 19:38:51 +03:00
|
|
|
class nsIStreamObserver;
|
1998-12-03 04:36:47 +03:00
|
|
|
|
|
|
|
// e5e5af70-8a38-11d2-9938-0080c7cb1080
|
|
|
|
#define NS_IAPPSHELL_SERVICE_IID \
|
|
|
|
{ 0xe5e5af70, 0x8a38, 0x11d2, \
|
|
|
|
{0x99, 0x38, 0x00, 0x80, 0xc7, 0xcb, 0x10, 0x80} }
|
|
|
|
|
|
|
|
|
|
|
|
class nsIAppShellService : public nsISupports
|
|
|
|
{
|
|
|
|
public:
|
1999-02-10 19:38:51 +03:00
|
|
|
static const nsIID& IID() { static nsIID iid = NS_IAPPSHELL_SERVICE_IID; return iid; }
|
1998-12-03 04:36:47 +03:00
|
|
|
|
|
|
|
NS_IMETHOD Initialize(void) = 0;
|
|
|
|
NS_IMETHOD Run(void) = 0;
|
1999-02-10 19:38:51 +03:00
|
|
|
NS_IMETHOD GetNativeEvent(void *& aEvent, nsIWidget* aWidget, PRBool &aIsInWindow, PRBool &aIsMouseEvent) = 0;
|
|
|
|
NS_IMETHOD DispatchNativeEvent(void * aEvent) = 0;
|
1998-12-03 04:36:47 +03:00
|
|
|
NS_IMETHOD Shutdown(void) = 0;
|
|
|
|
|
1999-01-21 10:18:30 +03:00
|
|
|
NS_IMETHOD CreateTopLevelWindow(nsIURL* aUrl,
|
|
|
|
nsString& aControllerIID,
|
1999-02-19 00:52:27 +03:00
|
|
|
nsIWidget*& aResult, nsIStreamObserver* anObserver,
|
|
|
|
PRInt32 aInitialWidth, PRInt32 aInitialHeight) = 0;
|
1999-02-10 19:38:51 +03:00
|
|
|
NS_IMETHOD CreateDialogWindow(nsIWidget * aParent,
|
|
|
|
nsIURL* aUrl,
|
|
|
|
nsString& aControllerIID,
|
1999-02-19 00:52:27 +03:00
|
|
|
nsIWidget*& aResult, nsIStreamObserver* anObserver,
|
|
|
|
PRInt32 aInitialWidth, PRInt32 aInitialHeight) = 0;
|
1998-12-03 04:36:47 +03:00
|
|
|
NS_IMETHOD CloseTopLevelWindow(nsIWidget* aWindow) = 0;
|
1999-02-15 08:38:15 +03:00
|
|
|
NS_IMETHOD RegisterTopLevelWindow(nsIWidget* aWindow) = 0;
|
|
|
|
NS_IMETHOD UnregisterTopLevelWindow(nsIWidget* aWindow) = 0;
|
1998-12-03 04:36:47 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsIAppShellService_h__ */
|