1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/docshell/base/nsILoadContext.idl
3 : */
4 :
5 : #ifndef __gen_nsILoadContext_h__
6 : #define __gen_nsILoadContext_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 nsIDOMWindow; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsILoadContext */
21 : #define NS_ILOADCONTEXT_IID_STR "386806c3-c4cb-4b3d-b05d-c08ea10f5585"
22 :
23 : #define NS_ILOADCONTEXT_IID \
24 : {0x386806c3, 0xc4cb, 0x4b3d, \
25 : { 0xb0, 0x5d, 0xc0, 0x8e, 0xa1, 0x0f, 0x55, 0x85 }}
26 :
27 0 : class NS_SCRIPTABLE nsILoadContext : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOADCONTEXT_IID)
31 :
32 : /* readonly attribute nsIDOMWindow associatedWindow; */
33 : NS_SCRIPTABLE NS_IMETHOD GetAssociatedWindow(nsIDOMWindow * *aAssociatedWindow) = 0;
34 :
35 : /* readonly attribute nsIDOMWindow topWindow; */
36 : NS_SCRIPTABLE NS_IMETHOD GetTopWindow(nsIDOMWindow * *aTopWindow) = 0;
37 :
38 : /* boolean isAppOfType (in unsigned long appType); */
39 : NS_SCRIPTABLE NS_IMETHOD IsAppOfType(PRUint32 appType, bool *_retval NS_OUTPARAM) = 0;
40 :
41 : /* readonly attribute boolean isContent; */
42 : NS_SCRIPTABLE NS_IMETHOD GetIsContent(bool *aIsContent) = 0;
43 :
44 : /* attribute boolean usePrivateBrowsing; */
45 : NS_SCRIPTABLE NS_IMETHOD GetUsePrivateBrowsing(bool *aUsePrivateBrowsing) = 0;
46 : NS_SCRIPTABLE NS_IMETHOD SetUsePrivateBrowsing(bool aUsePrivateBrowsing) = 0;
47 :
48 : /**
49 : * De-XPCOMed getter to make call-sites cleaner.
50 : */
51 : bool UsePrivateBrowsing() {
52 : bool usingPB;
53 : GetUsePrivateBrowsing(&usingPB);
54 : return usingPB;
55 : }
56 : };
57 :
58 : NS_DEFINE_STATIC_IID_ACCESSOR(nsILoadContext, NS_ILOADCONTEXT_IID)
59 :
60 : /* Use this macro when declaring classes that implement this interface. */
61 : #define NS_DECL_NSILOADCONTEXT \
62 : NS_SCRIPTABLE NS_IMETHOD GetAssociatedWindow(nsIDOMWindow * *aAssociatedWindow); \
63 : NS_SCRIPTABLE NS_IMETHOD GetTopWindow(nsIDOMWindow * *aTopWindow); \
64 : NS_SCRIPTABLE NS_IMETHOD IsAppOfType(PRUint32 appType, bool *_retval NS_OUTPARAM); \
65 : NS_SCRIPTABLE NS_IMETHOD GetIsContent(bool *aIsContent); \
66 : NS_SCRIPTABLE NS_IMETHOD GetUsePrivateBrowsing(bool *aUsePrivateBrowsing); \
67 : NS_SCRIPTABLE NS_IMETHOD SetUsePrivateBrowsing(bool aUsePrivateBrowsing); \
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
70 : #define NS_FORWARD_NSILOADCONTEXT(_to) \
71 : NS_SCRIPTABLE NS_IMETHOD GetAssociatedWindow(nsIDOMWindow * *aAssociatedWindow) { return _to GetAssociatedWindow(aAssociatedWindow); } \
72 : NS_SCRIPTABLE NS_IMETHOD GetTopWindow(nsIDOMWindow * *aTopWindow) { return _to GetTopWindow(aTopWindow); } \
73 : NS_SCRIPTABLE NS_IMETHOD IsAppOfType(PRUint32 appType, bool *_retval NS_OUTPARAM) { return _to IsAppOfType(appType, _retval); } \
74 : NS_SCRIPTABLE NS_IMETHOD GetIsContent(bool *aIsContent) { return _to GetIsContent(aIsContent); } \
75 : NS_SCRIPTABLE NS_IMETHOD GetUsePrivateBrowsing(bool *aUsePrivateBrowsing) { return _to GetUsePrivateBrowsing(aUsePrivateBrowsing); } \
76 : NS_SCRIPTABLE NS_IMETHOD SetUsePrivateBrowsing(bool aUsePrivateBrowsing) { return _to SetUsePrivateBrowsing(aUsePrivateBrowsing); } \
77 :
78 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
79 : #define NS_FORWARD_SAFE_NSILOADCONTEXT(_to) \
80 : NS_SCRIPTABLE NS_IMETHOD GetAssociatedWindow(nsIDOMWindow * *aAssociatedWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAssociatedWindow(aAssociatedWindow); } \
81 : NS_SCRIPTABLE NS_IMETHOD GetTopWindow(nsIDOMWindow * *aTopWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTopWindow(aTopWindow); } \
82 : NS_SCRIPTABLE NS_IMETHOD IsAppOfType(PRUint32 appType, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsAppOfType(appType, _retval); } \
83 : NS_SCRIPTABLE NS_IMETHOD GetIsContent(bool *aIsContent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsContent(aIsContent); } \
84 : NS_SCRIPTABLE NS_IMETHOD GetUsePrivateBrowsing(bool *aUsePrivateBrowsing) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsePrivateBrowsing(aUsePrivateBrowsing); } \
85 : NS_SCRIPTABLE NS_IMETHOD SetUsePrivateBrowsing(bool aUsePrivateBrowsing) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUsePrivateBrowsing(aUsePrivateBrowsing); } \
86 :
87 : #if 0
88 : /* Use the code below as a template for the implementation class for this interface. */
89 :
90 : /* Header file */
91 : class nsLoadContext : public nsILoadContext
92 : {
93 : public:
94 : NS_DECL_ISUPPORTS
95 : NS_DECL_NSILOADCONTEXT
96 :
97 : nsLoadContext();
98 :
99 : private:
100 : ~nsLoadContext();
101 :
102 : protected:
103 : /* additional members */
104 : };
105 :
106 : /* Implementation file */
107 : NS_IMPL_ISUPPORTS1(nsLoadContext, nsILoadContext)
108 :
109 : nsLoadContext::nsLoadContext()
110 : {
111 : /* member initializers and constructor code */
112 : }
113 :
114 : nsLoadContext::~nsLoadContext()
115 : {
116 : /* destructor code */
117 : }
118 :
119 : /* readonly attribute nsIDOMWindow associatedWindow; */
120 : NS_IMETHODIMP nsLoadContext::GetAssociatedWindow(nsIDOMWindow * *aAssociatedWindow)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* readonly attribute nsIDOMWindow topWindow; */
126 : NS_IMETHODIMP nsLoadContext::GetTopWindow(nsIDOMWindow * *aTopWindow)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* boolean isAppOfType (in unsigned long appType); */
132 : NS_IMETHODIMP nsLoadContext::IsAppOfType(PRUint32 appType, bool *_retval NS_OUTPARAM)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* readonly attribute boolean isContent; */
138 : NS_IMETHODIMP nsLoadContext::GetIsContent(bool *aIsContent)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* attribute boolean usePrivateBrowsing; */
144 : NS_IMETHODIMP nsLoadContext::GetUsePrivateBrowsing(bool *aUsePrivateBrowsing)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 : NS_IMETHODIMP nsLoadContext::SetUsePrivateBrowsing(bool aUsePrivateBrowsing)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* End of implementation class template. */
154 : #endif
155 :
156 :
157 : #endif /* __gen_nsILoadContext_h__ */
|