xpfe/appshell/src/nsAppShellService.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpfe/appshell/src/nsAppShellService.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,54 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef __nsAppShellService_h
    1.10 +#define __nsAppShellService_h
    1.11 +
    1.12 +#include "nsIAppShellService.h"
    1.13 +#include "nsIObserver.h"
    1.14 +
    1.15 +//Interfaces Needed
    1.16 +#include "nsWebShellWindow.h"
    1.17 +#include "nsStringFwd.h"
    1.18 +#include "nsAutoPtr.h"
    1.19 +#include "mozilla/Attributes.h"
    1.20 +
    1.21 +// {0099907D-123C-4853-A46A-43098B5FB68C}
    1.22 +#define NS_APPSHELLSERVICE_CID \
    1.23 +{ 0x99907d, 0x123c, 0x4853, { 0xa4, 0x6a, 0x43, 0x9, 0x8b, 0x5f, 0xb6, 0x8c } }
    1.24 +
    1.25 +class nsAppShellService MOZ_FINAL : public nsIAppShellService,
    1.26 +                                    public nsIObserver
    1.27 +{
    1.28 +public:
    1.29 +  NS_DECL_ISUPPORTS
    1.30 +  NS_DECL_NSIAPPSHELLSERVICE
    1.31 +  NS_DECL_NSIOBSERVER
    1.32 +
    1.33 +  nsAppShellService();
    1.34 +
    1.35 +protected:
    1.36 +  ~nsAppShellService();
    1.37 +
    1.38 +  nsresult CreateHiddenWindowHelper(bool aIsPrivate);
    1.39 +  void EnsurePrivateHiddenWindow();
    1.40 +
    1.41 +  nsresult JustCreateTopWindow(nsIXULWindow *aParent,
    1.42 +                               nsIURI *aUrl, 
    1.43 +                               uint32_t aChromeMask,
    1.44 +                               int32_t aInitialWidth, int32_t aInitialHeight,
    1.45 +                               bool aIsHiddenWindow,
    1.46 +                               nsWebShellWindow **aResult);
    1.47 +  uint32_t CalculateWindowZLevel(nsIXULWindow *aParent, uint32_t aChromeMask);
    1.48 +
    1.49 +  nsRefPtr<nsWebShellWindow>  mHiddenWindow;
    1.50 +  nsRefPtr<nsWebShellWindow>  mHiddenPrivateWindow;
    1.51 +  bool                        mXPCOMWillShutDown;
    1.52 +  bool                        mXPCOMShuttingDown;
    1.53 +  uint16_t                    mModalWindowCount;
    1.54 +  bool                        mApplicationProvidedHiddenWindow;
    1.55 +};
    1.56 +
    1.57 +#endif

mercurial