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
|
2019-11-05 20:56:27 +03:00
|
|
|
#include "nsXULWindow.h"
|
2004-10-29 23:28:38 +04:00
|
|
|
#include "nsStringFwd.h"
|
2005-02-20 01:42:01 +03:00
|
|
|
#include "nsAutoPtr.h"
|
2019-04-09 23:59:37 +03:00
|
|
|
#include "nsIRemoteTab.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 \
|
|
|
|
} \
|
|
|
|
}
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class nsAppShellService final : public nsIAppShellService, 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
|
|
|
|
2019-03-05 23:18:25 +03:00
|
|
|
void EnsureHiddenWindow();
|
2013-01-07 06:16:48 +04:00
|
|
|
|
2019-11-05 10:24:26 +03:00
|
|
|
nsresult JustCreateTopWindow(nsIXULWindow* aParent, nsIURI* aUrl,
|
2012-08-22 19:56:38 +04:00
|
|
|
uint32_t aChromeMask, int32_t aInitialWidth,
|
2011-10-14 17:06:39 +04:00
|
|
|
int32_t aInitialHeight, bool aIsHiddenWindow,
|
2019-05-01 11:47:10 +03:00
|
|
|
nsIRemoteTab* aOpeningTab,
|
|
|
|
mozIDOMWindowProxy* aOpenerWindow,
|
2019-11-05 20:56:27 +03:00
|
|
|
nsXULWindow** aResult);
|
2019-11-05 10:24:26 +03:00
|
|
|
uint32_t CalculateWindowZLevel(nsIXULWindow* aParent, uint32_t aChromeMask);
|
2000-02-05 08:38:13 +03:00
|
|
|
|
2019-11-05 20:56:27 +03:00
|
|
|
RefPtr<nsXULWindow> mHiddenWindow;
|
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
|