1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpfe/appshell/public/nsIPopupWindowManager.idl
3 : */
4 :
5 : #ifndef __gen_nsIPopupWindowManager_h__
6 : #define __gen_nsIPopupWindowManager_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIURI; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIPopupWindowManager */
21 : #define NS_IPOPUPWINDOWMANAGER_IID_STR "3210a6aa-b464-4f57-9335-b22815567cf1"
22 :
23 : #define NS_IPOPUPWINDOWMANAGER_IID \
24 : {0x3210a6aa, 0xb464, 0x4f57, \
25 : { 0x93, 0x35, 0xb2, 0x28, 0x15, 0x56, 0x7c, 0xf1 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPopupWindowManager : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPOPUPWINDOWMANAGER_IID)
31 :
32 : enum {
33 : ALLOW_POPUP = 1U,
34 : DENY_POPUP = 2U,
35 : ALLOW_POPUP_WITH_PREJUDICE = 3U
36 : };
37 :
38 : /* PRUint32 testPermission (in nsIURI uri); */
39 : NS_SCRIPTABLE NS_IMETHOD TestPermission(nsIURI *uri, PRUint32 *_retval NS_OUTPARAM) = 0;
40 :
41 : };
42 :
43 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPopupWindowManager, NS_IPOPUPWINDOWMANAGER_IID)
44 :
45 : /* Use this macro when declaring classes that implement this interface. */
46 : #define NS_DECL_NSIPOPUPWINDOWMANAGER \
47 : NS_SCRIPTABLE NS_IMETHOD TestPermission(nsIURI *uri, PRUint32 *_retval NS_OUTPARAM);
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
50 : #define NS_FORWARD_NSIPOPUPWINDOWMANAGER(_to) \
51 : NS_SCRIPTABLE NS_IMETHOD TestPermission(nsIURI *uri, PRUint32 *_retval NS_OUTPARAM) { return _to TestPermission(uri, _retval); }
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
54 : #define NS_FORWARD_SAFE_NSIPOPUPWINDOWMANAGER(_to) \
55 : NS_SCRIPTABLE NS_IMETHOD TestPermission(nsIURI *uri, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->TestPermission(uri, _retval); }
56 :
57 : #if 0
58 : /* Use the code below as a template for the implementation class for this interface. */
59 :
60 : /* Header file */
61 : class nsPopupWindowManager : public nsIPopupWindowManager
62 : {
63 : public:
64 : NS_DECL_ISUPPORTS
65 : NS_DECL_NSIPOPUPWINDOWMANAGER
66 :
67 : nsPopupWindowManager();
68 :
69 : private:
70 : ~nsPopupWindowManager();
71 :
72 : protected:
73 : /* additional members */
74 : };
75 :
76 : /* Implementation file */
77 : NS_IMPL_ISUPPORTS1(nsPopupWindowManager, nsIPopupWindowManager)
78 :
79 : nsPopupWindowManager::nsPopupWindowManager()
80 : {
81 : /* member initializers and constructor code */
82 : }
83 :
84 : nsPopupWindowManager::~nsPopupWindowManager()
85 : {
86 : /* destructor code */
87 : }
88 :
89 : /* PRUint32 testPermission (in nsIURI uri); */
90 : NS_IMETHODIMP nsPopupWindowManager::TestPermission(nsIURI *uri, PRUint32 *_retval NS_OUTPARAM)
91 : {
92 : return NS_ERROR_NOT_IMPLEMENTED;
93 : }
94 :
95 : /* End of implementation class template. */
96 : #endif
97 :
98 : #define NS_POPUPWINDOWMANAGER_CONTRACTID "@mozilla.org/PopupWindowManager;1"
99 :
100 : #endif /* __gen_nsIPopupWindowManager_h__ */
|