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