2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04: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/. */
|
2004-10-29 23:28:38 +04:00
|
|
|
|
2000-02-05 08:38:13 +03:00
|
|
|
#ifndef __nsAppShellService_h
|
|
|
|
#define __nsAppShellService_h
|
|
|
|
|
|
|
|
#include "nsIAppShellService.h"
|
|
|
|
#include "nsIObserver.h"
|
|
|
|
|
2000-02-29 03:20:55 +03:00
|
|
|
//Interfaces Needed
|
2005-02-20 01:42:01 +03:00
|
|
|
#include "nsWebShellWindow.h"
|
2004-10-29 23:28:38 +04:00
|
|
|
#include "nsStringFwd.h"
|
2005-02-20 01:42:01 +03:00
|
|
|
#include "nsAutoPtr.h"
|
2014-06-06 06:51:14 +04:00
|
|
|
#include "nsITabParent.h"
|
2012-07-19 08:49:48 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2004-10-29 23:28:38 +04:00
|
|
|
|
|
|
|
// {0099907D-123C-4853-A46A-43098B5FB68C}
|
|
|
|
#define NS_APPSHELLSERVICE_CID \
|
|
|
|
{ 0x99907d, 0x123c, 0x4853, { 0xa4, 0x6a, 0x43, 0x9, 0x8b, 0x5f, 0xb6, 0x8c } }
|
2000-02-29 03:20:55 +03:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class nsAppShellService final : public nsIAppShellService,
|
2015-03-27 21:52:19 +03:00
|
|
|
public nsIObserver
|
2000-02-05 08:38:13 +03:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIAPPSHELLSERVICE
|
|
|
|
NS_DECL_NSIOBSERVER
|
|
|
|
|
2004-10-29 23:28:38 +04:00
|
|
|
nsAppShellService();
|
|
|
|
|
2000-02-05 08:38:13 +03:00
|
|
|
protected:
|
2004-10-29 23:28:38 +04:00
|
|
|
~nsAppShellService();
|
2000-02-05 08:38:13 +03:00
|
|
|
|
2013-01-07 06:16:48 +04:00
|
|
|
nsresult CreateHiddenWindowHelper(bool aIsPrivate);
|
|
|
|
void EnsurePrivateHiddenWindow();
|
|
|
|
|
2005-02-20 01:42:01 +03:00
|
|
|
nsresult JustCreateTopWindow(nsIXULWindow *aParent,
|
2014-06-06 06:51:14 +04:00
|
|
|
nsIURI *aUrl,
|
2012-08-22 19:56:38 +04:00
|
|
|
uint32_t aChromeMask,
|
|
|
|
int32_t aInitialWidth, int32_t aInitialHeight,
|
2011-10-14 17:06:39 +04:00
|
|
|
bool aIsHiddenWindow,
|
2014-06-06 06:51:14 +04:00
|
|
|
nsITabParent *aOpeningTab,
|
2005-02-20 01:42:01 +03:00
|
|
|
nsWebShellWindow **aResult);
|
2012-08-22 19:56:38 +04:00
|
|
|
uint32_t CalculateWindowZLevel(nsIXULWindow *aParent, uint32_t aChromeMask);
|
2000-02-05 08:38:13 +03:00
|
|
|
|
2005-02-20 01:42:01 +03:00
|
|
|
nsRefPtr<nsWebShellWindow> mHiddenWindow;
|
2012-12-11 08:49:17 +04:00
|
|
|
nsRefPtr<nsWebShellWindow> mHiddenPrivateWindow;
|
2011-09-29 10:19:26 +04:00
|
|
|
bool mXPCOMWillShutDown;
|
|
|
|
bool mXPCOMShuttingDown;
|
2012-08-22 19:56:38 +04:00
|
|
|
uint16_t mModalWindowCount;
|
2011-09-29 10:19:26 +04:00
|
|
|
bool mApplicationProvidedHiddenWindow;
|
2015-04-29 12:25:26 +03:00
|
|
|
uint32_t mScreenId;
|
2000-02-05 08:38:13 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|