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