2002-09-11 06:10:46 +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/. */
|
2002-09-11 06:10:46 +04:00
|
|
|
|
|
|
|
#ifndef nsPopupWindowManager_h__
|
|
|
|
#define nsPopupWindowManager_h__
|
|
|
|
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
|
|
|
|
#include "nsIObserver.h"
|
2002-10-25 08:46:19 +04:00
|
|
|
#include "nsIPermissionManager.h"
|
2002-09-11 06:10:46 +04:00
|
|
|
#include "nsIPopupWindowManager.h"
|
2003-03-22 04:24:51 +03:00
|
|
|
#include "nsWeakReference.h"
|
2002-09-11 06:10:46 +04:00
|
|
|
|
|
|
|
class nsPopupWindowManager : public nsIPopupWindowManager,
|
2003-03-22 04:24:51 +03:00
|
|
|
public nsIObserver,
|
|
|
|
public nsSupportsWeakReference {
|
2002-09-11 06:10:46 +04:00
|
|
|
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIPOPUPWINDOWMANAGER
|
|
|
|
NS_DECL_NSIOBSERVER
|
|
|
|
|
|
|
|
nsPopupWindowManager();
|
|
|
|
nsresult Init();
|
|
|
|
|
|
|
|
private:
|
2014-06-24 02:40:02 +04:00
|
|
|
virtual ~nsPopupWindowManager();
|
|
|
|
|
2012-08-22 19:56:38 +04:00
|
|
|
uint32_t mPolicy;
|
2003-03-22 04:24:51 +03:00
|
|
|
nsCOMPtr<nsIPermissionManager> mPermissionManager;
|
2002-09-11 06:10:46 +04:00
|
|
|
};
|
|
|
|
|
2005-02-06 11:25:40 +03:00
|
|
|
// {822bcd11-6432-48be-9e9d-36f7804b7747}
|
2002-09-11 06:10:46 +04:00
|
|
|
#define NS_POPUPWINDOWMANAGER_CID \
|
2005-02-06 11:25:40 +03:00
|
|
|
{0x822bcd11, 0x6432, 0x48be, {0x9e, 0x9d, 0x36, 0xf7, 0x80, 0x4b, 0x77, 0x47}}
|
2002-09-11 06:10:46 +04:00
|
|
|
|
|
|
|
#endif /* nsPopupWindowManager_h__ */
|