Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPartialSHistory.idl
3 : */
4 :
5 : #ifndef __gen_nsIPartialSHistory_h__
6 : #define __gen_nsIPartialSHistory_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #include "mozilla/Assertions.h"
14 : #include "mozilla/DebugOnly.h"
15 :
16 : /* For IDL files that don't want to include root IDL files. */
17 : #ifndef NS_NO_VTABLE
18 : #define NS_NO_VTABLE
19 : #endif
20 : class nsIGroupedSHistory; /* forward declaration */
21 :
22 : class nsIFrameLoader; /* forward declaration */
23 :
24 :
25 : /* starting interface: nsIPartialSHistory */
26 : #define NS_IPARTIALSHISTORY_IID_STR "5cd75e28-838c-4a0a-972e-6005f736ef7a"
27 :
28 : #define NS_IPARTIALSHISTORY_IID \
29 : {0x5cd75e28, 0x838c, 0x4a0a, \
30 : { 0x97, 0x2e, 0x60, 0x05, 0xf7, 0x36, 0xef, 0x7a }}
31 :
32 0 : class NS_NO_VTABLE nsIPartialSHistory : public nsISupports {
33 : public:
34 :
35 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPARTIALSHISTORY_IID)
36 :
37 : /* [infallible] readonly attribute unsigned long count; */
38 : NS_IMETHOD GetCount(uint32_t *aCount) = 0;
39 0 : inline uint32_t GetCount()
40 : {
41 : uint32_t result;
42 0 : mozilla::DebugOnly<nsresult> rv = GetCount(&result);
43 0 : MOZ_ASSERT(NS_SUCCEEDED(rv));
44 0 : return result;
45 : }
46 :
47 : /* [infallible] readonly attribute long globalIndex; */
48 : NS_IMETHOD GetGlobalIndex(int32_t *aGlobalIndex) = 0;
49 0 : inline int32_t GetGlobalIndex()
50 : {
51 : int32_t result;
52 0 : mozilla::DebugOnly<nsresult> rv = GetGlobalIndex(&result);
53 0 : MOZ_ASSERT(NS_SUCCEEDED(rv));
54 0 : return result;
55 : }
56 :
57 : /* [infallible] readonly attribute unsigned long globalIndexOffset; */
58 : NS_IMETHOD GetGlobalIndexOffset(uint32_t *aGlobalIndexOffset) = 0;
59 0 : inline uint32_t GetGlobalIndexOffset()
60 : {
61 : uint32_t result;
62 0 : mozilla::DebugOnly<nsresult> rv = GetGlobalIndexOffset(&result);
63 0 : MOZ_ASSERT(NS_SUCCEEDED(rv));
64 0 : return result;
65 : }
66 :
67 : /* readonly attribute nsIFrameLoader ownerFrameLoader; */
68 : NS_IMETHOD GetOwnerFrameLoader(nsIFrameLoader * *aOwnerFrameLoader) = 0;
69 :
70 : /* readonly attribute nsIGroupedSHistory groupedSHistory; */
71 : NS_IMETHOD GetGroupedSHistory(nsIGroupedSHistory * *aGroupedSHistory) = 0;
72 :
73 : enum {
74 : STATE_INACTIVE = 0,
75 : STATE_ACTIVE = 1,
76 : STATE_PRERENDER = 2
77 : };
78 :
79 : /* [infallible] attribute long activeState; */
80 : NS_IMETHOD GetActiveState(int32_t *aActiveState) = 0;
81 0 : inline int32_t GetActiveState()
82 : {
83 : int32_t result;
84 0 : mozilla::DebugOnly<nsresult> rv = GetActiveState(&result);
85 0 : MOZ_ASSERT(NS_SUCCEEDED(rv));
86 0 : return result;
87 : }
88 : NS_IMETHOD SetActiveState(int32_t aActiveState) = 0;
89 :
90 : /* void onAttachGroupedSHistory (in nsIGroupedSHistory aGroup, in unsigned long aOffset); */
91 : NS_IMETHOD OnAttachGroupedSHistory(nsIGroupedSHistory *aGroup, uint32_t aOffset) = 0;
92 :
93 : /* void handleSHistoryUpdate (in unsigned long aCount, in unsigned long aLocalIndex, in boolean aTruncate); */
94 : NS_IMETHOD HandleSHistoryUpdate(uint32_t aCount, uint32_t aLocalIndex, bool aTruncate) = 0;
95 :
96 : /* void onActive (in unsigned long aGlobalLength, in unsigned long aTargetLocalIndex); */
97 : NS_IMETHOD OnActive(uint32_t aGlobalLength, uint32_t aTargetLocalIndex) = 0;
98 :
99 : /* void onDeactive (); */
100 : NS_IMETHOD OnDeactive(void) = 0;
101 :
102 : };
103 :
104 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPartialSHistory, NS_IPARTIALSHISTORY_IID)
105 :
106 : /* Use this macro when declaring classes that implement this interface. */
107 : #define NS_DECL_NSIPARTIALSHISTORY \
108 : using nsIPartialSHistory::GetCount; \
109 : NS_IMETHOD GetCount(uint32_t *aCount) override; \
110 : using nsIPartialSHistory::GetGlobalIndex; \
111 : NS_IMETHOD GetGlobalIndex(int32_t *aGlobalIndex) override; \
112 : using nsIPartialSHistory::GetGlobalIndexOffset; \
113 : NS_IMETHOD GetGlobalIndexOffset(uint32_t *aGlobalIndexOffset) override; \
114 : NS_IMETHOD GetOwnerFrameLoader(nsIFrameLoader * *aOwnerFrameLoader) override; \
115 : NS_IMETHOD GetGroupedSHistory(nsIGroupedSHistory * *aGroupedSHistory) override; \
116 : using nsIPartialSHistory::GetActiveState; \
117 : NS_IMETHOD GetActiveState(int32_t *aActiveState) override; \
118 : NS_IMETHOD SetActiveState(int32_t aActiveState) override; \
119 : NS_IMETHOD OnAttachGroupedSHistory(nsIGroupedSHistory *aGroup, uint32_t aOffset) override; \
120 : NS_IMETHOD HandleSHistoryUpdate(uint32_t aCount, uint32_t aLocalIndex, bool aTruncate) override; \
121 : NS_IMETHOD OnActive(uint32_t aGlobalLength, uint32_t aTargetLocalIndex) override; \
122 : NS_IMETHOD OnDeactive(void) override;
123 :
124 : /* Use this macro when declaring the members of this interface when the
125 : class doesn't implement the interface. This is useful for forwarding. */
126 : #define NS_DECL_NON_VIRTUAL_NSIPARTIALSHISTORY \
127 : using nsIPartialSHistory::GetCount; \
128 : nsresult GetCount(uint32_t *aCount); \
129 : using nsIPartialSHistory::GetGlobalIndex; \
130 : nsresult GetGlobalIndex(int32_t *aGlobalIndex); \
131 : using nsIPartialSHistory::GetGlobalIndexOffset; \
132 : nsresult GetGlobalIndexOffset(uint32_t *aGlobalIndexOffset); \
133 : nsresult GetOwnerFrameLoader(nsIFrameLoader * *aOwnerFrameLoader); \
134 : nsresult GetGroupedSHistory(nsIGroupedSHistory * *aGroupedSHistory); \
135 : using nsIPartialSHistory::GetActiveState; \
136 : nsresult GetActiveState(int32_t *aActiveState); \
137 : nsresult SetActiveState(int32_t aActiveState); \
138 : nsresult OnAttachGroupedSHistory(nsIGroupedSHistory *aGroup, uint32_t aOffset); \
139 : nsresult HandleSHistoryUpdate(uint32_t aCount, uint32_t aLocalIndex, bool aTruncate); \
140 : nsresult OnActive(uint32_t aGlobalLength, uint32_t aTargetLocalIndex); \
141 : nsresult OnDeactive(void);
142 :
143 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
144 : #define NS_FORWARD_NSIPARTIALSHISTORY(_to) \
145 : using nsIPartialSHistory::GetCount; \
146 : NS_IMETHOD GetCount(uint32_t *aCount) override { return _to GetCount(aCount); } \
147 : using nsIPartialSHistory::GetGlobalIndex; \
148 : NS_IMETHOD GetGlobalIndex(int32_t *aGlobalIndex) override { return _to GetGlobalIndex(aGlobalIndex); } \
149 : using nsIPartialSHistory::GetGlobalIndexOffset; \
150 : NS_IMETHOD GetGlobalIndexOffset(uint32_t *aGlobalIndexOffset) override { return _to GetGlobalIndexOffset(aGlobalIndexOffset); } \
151 : NS_IMETHOD GetOwnerFrameLoader(nsIFrameLoader * *aOwnerFrameLoader) override { return _to GetOwnerFrameLoader(aOwnerFrameLoader); } \
152 : NS_IMETHOD GetGroupedSHistory(nsIGroupedSHistory * *aGroupedSHistory) override { return _to GetGroupedSHistory(aGroupedSHistory); } \
153 : using nsIPartialSHistory::GetActiveState; \
154 : NS_IMETHOD GetActiveState(int32_t *aActiveState) override { return _to GetActiveState(aActiveState); } \
155 : NS_IMETHOD SetActiveState(int32_t aActiveState) override { return _to SetActiveState(aActiveState); } \
156 : NS_IMETHOD OnAttachGroupedSHistory(nsIGroupedSHistory *aGroup, uint32_t aOffset) override { return _to OnAttachGroupedSHistory(aGroup, aOffset); } \
157 : NS_IMETHOD HandleSHistoryUpdate(uint32_t aCount, uint32_t aLocalIndex, bool aTruncate) override { return _to HandleSHistoryUpdate(aCount, aLocalIndex, aTruncate); } \
158 : NS_IMETHOD OnActive(uint32_t aGlobalLength, uint32_t aTargetLocalIndex) override { return _to OnActive(aGlobalLength, aTargetLocalIndex); } \
159 : NS_IMETHOD OnDeactive(void) override { return _to OnDeactive(); }
160 :
161 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
162 : #define NS_FORWARD_SAFE_NSIPARTIALSHISTORY(_to) \
163 : NS_IMETHOD GetCount(uint32_t *aCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \
164 : NS_IMETHOD GetGlobalIndex(int32_t *aGlobalIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalIndex(aGlobalIndex); } \
165 : NS_IMETHOD GetGlobalIndexOffset(uint32_t *aGlobalIndexOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalIndexOffset(aGlobalIndexOffset); } \
166 : NS_IMETHOD GetOwnerFrameLoader(nsIFrameLoader * *aOwnerFrameLoader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerFrameLoader(aOwnerFrameLoader); } \
167 : NS_IMETHOD GetGroupedSHistory(nsIGroupedSHistory * *aGroupedSHistory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroupedSHistory(aGroupedSHistory); } \
168 : NS_IMETHOD GetActiveState(int32_t *aActiveState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveState(aActiveState); } \
169 : NS_IMETHOD SetActiveState(int32_t aActiveState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetActiveState(aActiveState); } \
170 : NS_IMETHOD OnAttachGroupedSHistory(nsIGroupedSHistory *aGroup, uint32_t aOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAttachGroupedSHistory(aGroup, aOffset); } \
171 : NS_IMETHOD HandleSHistoryUpdate(uint32_t aCount, uint32_t aLocalIndex, bool aTruncate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleSHistoryUpdate(aCount, aLocalIndex, aTruncate); } \
172 : NS_IMETHOD OnActive(uint32_t aGlobalLength, uint32_t aTargetLocalIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnActive(aGlobalLength, aTargetLocalIndex); } \
173 : NS_IMETHOD OnDeactive(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDeactive(); }
174 :
175 : #if 0
176 : /* Use the code below as a template for the implementation class for this interface. */
177 :
178 : /* Header file */
179 : class nsPartialSHistory : public nsIPartialSHistory
180 : {
181 : public:
182 : NS_DECL_ISUPPORTS
183 : NS_DECL_NSIPARTIALSHISTORY
184 :
185 : nsPartialSHistory();
186 :
187 : private:
188 : ~nsPartialSHistory();
189 :
190 : protected:
191 : /* additional members */
192 : };
193 :
194 : /* Implementation file */
195 : NS_IMPL_ISUPPORTS(nsPartialSHistory, nsIPartialSHistory)
196 :
197 : nsPartialSHistory::nsPartialSHistory()
198 : {
199 : /* member initializers and constructor code */
200 : }
201 :
202 : nsPartialSHistory::~nsPartialSHistory()
203 : {
204 : /* destructor code */
205 : }
206 :
207 : /* [infallible] readonly attribute unsigned long count; */
208 : NS_IMETHODIMP nsPartialSHistory::GetCount(uint32_t *aCount)
209 : {
210 : return NS_ERROR_NOT_IMPLEMENTED;
211 : }
212 :
213 : /* [infallible] readonly attribute long globalIndex; */
214 : NS_IMETHODIMP nsPartialSHistory::GetGlobalIndex(int32_t *aGlobalIndex)
215 : {
216 : return NS_ERROR_NOT_IMPLEMENTED;
217 : }
218 :
219 : /* [infallible] readonly attribute unsigned long globalIndexOffset; */
220 : NS_IMETHODIMP nsPartialSHistory::GetGlobalIndexOffset(uint32_t *aGlobalIndexOffset)
221 : {
222 : return NS_ERROR_NOT_IMPLEMENTED;
223 : }
224 :
225 : /* readonly attribute nsIFrameLoader ownerFrameLoader; */
226 : NS_IMETHODIMP nsPartialSHistory::GetOwnerFrameLoader(nsIFrameLoader * *aOwnerFrameLoader)
227 : {
228 : return NS_ERROR_NOT_IMPLEMENTED;
229 : }
230 :
231 : /* readonly attribute nsIGroupedSHistory groupedSHistory; */
232 : NS_IMETHODIMP nsPartialSHistory::GetGroupedSHistory(nsIGroupedSHistory * *aGroupedSHistory)
233 : {
234 : return NS_ERROR_NOT_IMPLEMENTED;
235 : }
236 :
237 : /* [infallible] attribute long activeState; */
238 : NS_IMETHODIMP nsPartialSHistory::GetActiveState(int32_t *aActiveState)
239 : {
240 : return NS_ERROR_NOT_IMPLEMENTED;
241 : }
242 : NS_IMETHODIMP nsPartialSHistory::SetActiveState(int32_t aActiveState)
243 : {
244 : return NS_ERROR_NOT_IMPLEMENTED;
245 : }
246 :
247 : /* void onAttachGroupedSHistory (in nsIGroupedSHistory aGroup, in unsigned long aOffset); */
248 : NS_IMETHODIMP nsPartialSHistory::OnAttachGroupedSHistory(nsIGroupedSHistory *aGroup, uint32_t aOffset)
249 : {
250 : return NS_ERROR_NOT_IMPLEMENTED;
251 : }
252 :
253 : /* void handleSHistoryUpdate (in unsigned long aCount, in unsigned long aLocalIndex, in boolean aTruncate); */
254 : NS_IMETHODIMP nsPartialSHistory::HandleSHistoryUpdate(uint32_t aCount, uint32_t aLocalIndex, bool aTruncate)
255 : {
256 : return NS_ERROR_NOT_IMPLEMENTED;
257 : }
258 :
259 : /* void onActive (in unsigned long aGlobalLength, in unsigned long aTargetLocalIndex); */
260 : NS_IMETHODIMP nsPartialSHistory::OnActive(uint32_t aGlobalLength, uint32_t aTargetLocalIndex)
261 : {
262 : return NS_ERROR_NOT_IMPLEMENTED;
263 : }
264 :
265 : /* void onDeactive (); */
266 : NS_IMETHODIMP nsPartialSHistory::OnDeactive()
267 : {
268 : return NS_ERROR_NOT_IMPLEMENTED;
269 : }
270 :
271 : /* End of implementation class template. */
272 : #endif
273 :
274 :
275 : #endif /* __gen_nsIPartialSHistory_h__ */
|