Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAccessible.idl
3 : */
4 :
5 : #ifndef __gen_nsIAccessible_h__
6 : #define __gen_nsIAccessible_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIArray_h__
14 : #include "nsIArray.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 : class nsIPersistentProperties; /* forward declaration */
22 :
23 : class nsIDOMCSSPrimitiveValue; /* forward declaration */
24 :
25 : class nsIDOMNode; /* forward declaration */
26 :
27 : class nsIAccessibleDocument; /* forward declaration */
28 :
29 : class nsIAccessibleRelation; /* forward declaration */
30 :
31 : namespace mozilla {
32 : namespace a11y {
33 : class Accessible;
34 : }
35 : }
36 :
37 : /* starting interface: nsIAccessible */
38 : #define NS_IACCESSIBLE_IID_STR "de2869d9-563c-4943-996b-31a4daa4d097"
39 :
40 : #define NS_IACCESSIBLE_IID \
41 : {0xde2869d9, 0x563c, 0x4943, \
42 : { 0x99, 0x6b, 0x31, 0xa4, 0xda, 0xa4, 0xd0, 0x97 }}
43 :
44 0 : class nsIAccessible : public nsISupports {
45 : public:
46 :
47 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLE_IID)
48 :
49 : /* readonly attribute nsIAccessible parent; */
50 : NS_IMETHOD GetParent(nsIAccessible * *aParent) = 0;
51 :
52 : /* readonly attribute nsIAccessible nextSibling; */
53 : NS_IMETHOD GetNextSibling(nsIAccessible * *aNextSibling) = 0;
54 :
55 : /* readonly attribute nsIAccessible previousSibling; */
56 : NS_IMETHOD GetPreviousSibling(nsIAccessible * *aPreviousSibling) = 0;
57 :
58 : /* readonly attribute nsIAccessible firstChild; */
59 : NS_IMETHOD GetFirstChild(nsIAccessible * *aFirstChild) = 0;
60 :
61 : /* readonly attribute nsIAccessible lastChild; */
62 : NS_IMETHOD GetLastChild(nsIAccessible * *aLastChild) = 0;
63 :
64 : /* readonly attribute nsIArray children; */
65 : NS_IMETHOD GetChildren(nsIArray * *aChildren) = 0;
66 :
67 : /* readonly attribute long childCount; */
68 : NS_IMETHOD GetChildCount(int32_t *aChildCount) = 0;
69 :
70 : /* readonly attribute long indexInParent; */
71 : NS_IMETHOD GetIndexInParent(int32_t *aIndexInParent) = 0;
72 :
73 : /* readonly attribute nsIDOMNode DOMNode; */
74 : NS_IMETHOD GetDOMNode(nsIDOMNode * *aDOMNode) = 0;
75 :
76 : /* readonly attribute DOMString id; */
77 : NS_IMETHOD GetId(nsAString & aId) = 0;
78 :
79 : /* readonly attribute nsIAccessibleDocument document; */
80 : NS_IMETHOD GetDocument(nsIAccessibleDocument * *aDocument) = 0;
81 :
82 : /* readonly attribute nsIAccessibleDocument rootDocument; */
83 : NS_IMETHOD GetRootDocument(nsIAccessibleDocument * *aRootDocument) = 0;
84 :
85 : /* readonly attribute DOMString language; */
86 : NS_IMETHOD GetLanguage(nsAString & aLanguage) = 0;
87 :
88 : /* readonly attribute AString name; */
89 : NS_IMETHOD GetName(nsAString & aName) = 0;
90 :
91 : /* readonly attribute AString value; */
92 : NS_IMETHOD GetValue(nsAString & aValue) = 0;
93 :
94 : /* readonly attribute AString description; */
95 : NS_IMETHOD GetDescription(nsAString & aDescription) = 0;
96 :
97 : /* readonly attribute AString accessKey; */
98 : NS_IMETHOD GetAccessKey(nsAString & aAccessKey) = 0;
99 :
100 : /* readonly attribute AString keyboardShortcut; */
101 : NS_IMETHOD GetKeyboardShortcut(nsAString & aKeyboardShortcut) = 0;
102 :
103 : /* readonly attribute unsigned long role; */
104 : NS_IMETHOD GetRole(uint32_t *aRole) = 0;
105 :
106 : /* void getState (out unsigned long aState, out unsigned long aExtraState); */
107 : NS_IMETHOD GetState(uint32_t *aState, uint32_t *aExtraState) = 0;
108 :
109 : /* readonly attribute AString help; */
110 : NS_IMETHOD GetHelp(nsAString & aHelp) = 0;
111 :
112 : /* readonly attribute nsIAccessible focusedChild; */
113 : NS_IMETHOD GetFocusedChild(nsIAccessible * *aFocusedChild) = 0;
114 :
115 : /* readonly attribute nsIPersistentProperties attributes; */
116 : NS_IMETHOD GetAttributes(nsIPersistentProperties * *aAttributes) = 0;
117 :
118 : /* void groupPosition (out long aGroupLevel, out long aSimilarItemsInGroup, out long aPositionInGroup); */
119 : NS_IMETHOD GroupPosition(int32_t *aGroupLevel, int32_t *aSimilarItemsInGroup, int32_t *aPositionInGroup) = 0;
120 :
121 : /* nsIAccessible getChildAtPoint (in long x, in long y); */
122 : NS_IMETHOD GetChildAtPoint(int32_t x, int32_t y, nsIAccessible * *_retval) = 0;
123 :
124 : /* nsIAccessible getDeepestChildAtPoint (in long x, in long y); */
125 : NS_IMETHOD GetDeepestChildAtPoint(int32_t x, int32_t y, nsIAccessible * *_retval) = 0;
126 :
127 : /* nsIAccessible getChildAt (in long aChildIndex); */
128 : NS_IMETHOD GetChildAt(int32_t aChildIndex, nsIAccessible * *_retval) = 0;
129 :
130 : /* nsIAccessibleRelation getRelationByType (in unsigned long aRelationType); */
131 : NS_IMETHOD GetRelationByType(uint32_t aRelationType, nsIAccessibleRelation * *_retval) = 0;
132 :
133 : /* nsIArray getRelations (); */
134 : NS_IMETHOD GetRelations(nsIArray * *_retval) = 0;
135 :
136 : /* void getBounds (out long x, out long y, out long width, out long height); */
137 : NS_IMETHOD GetBounds(int32_t *x, int32_t *y, int32_t *width, int32_t *height) = 0;
138 :
139 : /* void setSelected (in boolean isSelected); */
140 : NS_IMETHOD SetSelected(bool isSelected) = 0;
141 :
142 : /* void takeSelection (); */
143 : NS_IMETHOD TakeSelection(void) = 0;
144 :
145 : /* void takeFocus (); */
146 : NS_IMETHOD TakeFocus(void) = 0;
147 :
148 : /* readonly attribute uint8_t actionCount; */
149 : NS_IMETHOD GetActionCount(uint8_t *aActionCount) = 0;
150 :
151 : /* AString getActionName (in uint8_t index); */
152 : NS_IMETHOD GetActionName(uint8_t index, nsAString & _retval) = 0;
153 :
154 : /* AString getActionDescription (in uint8_t aIndex); */
155 : NS_IMETHOD GetActionDescription(uint8_t aIndex, nsAString & _retval) = 0;
156 :
157 : /* void doAction (in uint8_t index); */
158 : NS_IMETHOD DoAction(uint8_t index) = 0;
159 :
160 : /* void scrollTo (in unsigned long aScrollType); */
161 : NS_IMETHOD ScrollTo(uint32_t aScrollType) = 0;
162 :
163 : /* void scrollToPoint (in unsigned long coordinateType, in long x, in long y); */
164 : NS_IMETHOD ScrollToPoint(uint32_t coordinateType, int32_t x, int32_t y) = 0;
165 :
166 : virtual mozilla::a11y::Accessible* ToInternalAccessible() const = 0;
167 : };
168 :
169 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessible, NS_IACCESSIBLE_IID)
170 :
171 : /* Use this macro when declaring classes that implement this interface. */
172 : #define NS_DECL_NSIACCESSIBLE \
173 : NS_IMETHOD GetParent(nsIAccessible * *aParent) override; \
174 : NS_IMETHOD GetNextSibling(nsIAccessible * *aNextSibling) override; \
175 : NS_IMETHOD GetPreviousSibling(nsIAccessible * *aPreviousSibling) override; \
176 : NS_IMETHOD GetFirstChild(nsIAccessible * *aFirstChild) override; \
177 : NS_IMETHOD GetLastChild(nsIAccessible * *aLastChild) override; \
178 : NS_IMETHOD GetChildren(nsIArray * *aChildren) override; \
179 : NS_IMETHOD GetChildCount(int32_t *aChildCount) override; \
180 : NS_IMETHOD GetIndexInParent(int32_t *aIndexInParent) override; \
181 : NS_IMETHOD GetDOMNode(nsIDOMNode * *aDOMNode) override; \
182 : NS_IMETHOD GetId(nsAString & aId) override; \
183 : NS_IMETHOD GetDocument(nsIAccessibleDocument * *aDocument) override; \
184 : NS_IMETHOD GetRootDocument(nsIAccessibleDocument * *aRootDocument) override; \
185 : NS_IMETHOD GetLanguage(nsAString & aLanguage) override; \
186 : NS_IMETHOD GetName(nsAString & aName) override; \
187 : NS_IMETHOD GetValue(nsAString & aValue) override; \
188 : NS_IMETHOD GetDescription(nsAString & aDescription) override; \
189 : NS_IMETHOD GetAccessKey(nsAString & aAccessKey) override; \
190 : NS_IMETHOD GetKeyboardShortcut(nsAString & aKeyboardShortcut) override; \
191 : NS_IMETHOD GetRole(uint32_t *aRole) override; \
192 : NS_IMETHOD GetState(uint32_t *aState, uint32_t *aExtraState) override; \
193 : NS_IMETHOD GetHelp(nsAString & aHelp) override; \
194 : NS_IMETHOD GetFocusedChild(nsIAccessible * *aFocusedChild) override; \
195 : NS_IMETHOD GetAttributes(nsIPersistentProperties * *aAttributes) override; \
196 : NS_IMETHOD GroupPosition(int32_t *aGroupLevel, int32_t *aSimilarItemsInGroup, int32_t *aPositionInGroup) override; \
197 : NS_IMETHOD GetChildAtPoint(int32_t x, int32_t y, nsIAccessible * *_retval) override; \
198 : NS_IMETHOD GetDeepestChildAtPoint(int32_t x, int32_t y, nsIAccessible * *_retval) override; \
199 : NS_IMETHOD GetChildAt(int32_t aChildIndex, nsIAccessible * *_retval) override; \
200 : NS_IMETHOD GetRelationByType(uint32_t aRelationType, nsIAccessibleRelation * *_retval) override; \
201 : NS_IMETHOD GetRelations(nsIArray * *_retval) override; \
202 : NS_IMETHOD GetBounds(int32_t *x, int32_t *y, int32_t *width, int32_t *height) override; \
203 : NS_IMETHOD SetSelected(bool isSelected) override; \
204 : NS_IMETHOD TakeSelection(void) override; \
205 : NS_IMETHOD TakeFocus(void) override; \
206 : NS_IMETHOD GetActionCount(uint8_t *aActionCount) override; \
207 : NS_IMETHOD GetActionName(uint8_t index, nsAString & _retval) override; \
208 : NS_IMETHOD GetActionDescription(uint8_t aIndex, nsAString & _retval) override; \
209 : NS_IMETHOD DoAction(uint8_t index) override; \
210 : NS_IMETHOD ScrollTo(uint32_t aScrollType) override; \
211 : NS_IMETHOD ScrollToPoint(uint32_t coordinateType, int32_t x, int32_t y) override; \
212 :
213 : /* Use this macro when declaring the members of this interface when the
214 : class doesn't implement the interface. This is useful for forwarding. */
215 : #define NS_DECL_NON_VIRTUAL_NSIACCESSIBLE \
216 : nsresult GetParent(nsIAccessible * *aParent); \
217 : nsresult GetNextSibling(nsIAccessible * *aNextSibling); \
218 : nsresult GetPreviousSibling(nsIAccessible * *aPreviousSibling); \
219 : nsresult GetFirstChild(nsIAccessible * *aFirstChild); \
220 : nsresult GetLastChild(nsIAccessible * *aLastChild); \
221 : nsresult GetChildren(nsIArray * *aChildren); \
222 : nsresult GetChildCount(int32_t *aChildCount); \
223 : nsresult GetIndexInParent(int32_t *aIndexInParent); \
224 : nsresult GetDOMNode(nsIDOMNode * *aDOMNode); \
225 : nsresult GetId(nsAString & aId); \
226 : nsresult GetDocument(nsIAccessibleDocument * *aDocument); \
227 : nsresult GetRootDocument(nsIAccessibleDocument * *aRootDocument); \
228 : nsresult GetLanguage(nsAString & aLanguage); \
229 : nsresult GetName(nsAString & aName); \
230 : nsresult GetValue(nsAString & aValue); \
231 : nsresult GetDescription(nsAString & aDescription); \
232 : nsresult GetAccessKey(nsAString & aAccessKey); \
233 : nsresult GetKeyboardShortcut(nsAString & aKeyboardShortcut); \
234 : nsresult GetRole(uint32_t *aRole); \
235 : nsresult GetState(uint32_t *aState, uint32_t *aExtraState); \
236 : nsresult GetHelp(nsAString & aHelp); \
237 : nsresult GetFocusedChild(nsIAccessible * *aFocusedChild); \
238 : nsresult GetAttributes(nsIPersistentProperties * *aAttributes); \
239 : nsresult GroupPosition(int32_t *aGroupLevel, int32_t *aSimilarItemsInGroup, int32_t *aPositionInGroup); \
240 : nsresult GetChildAtPoint(int32_t x, int32_t y, nsIAccessible * *_retval); \
241 : nsresult GetDeepestChildAtPoint(int32_t x, int32_t y, nsIAccessible * *_retval); \
242 : nsresult GetChildAt(int32_t aChildIndex, nsIAccessible * *_retval); \
243 : nsresult GetRelationByType(uint32_t aRelationType, nsIAccessibleRelation * *_retval); \
244 : nsresult GetRelations(nsIArray * *_retval); \
245 : nsresult GetBounds(int32_t *x, int32_t *y, int32_t *width, int32_t *height); \
246 : nsresult SetSelected(bool isSelected); \
247 : nsresult TakeSelection(void); \
248 : nsresult TakeFocus(void); \
249 : nsresult GetActionCount(uint8_t *aActionCount); \
250 : nsresult GetActionName(uint8_t index, nsAString & _retval); \
251 : nsresult GetActionDescription(uint8_t aIndex, nsAString & _retval); \
252 : nsresult DoAction(uint8_t index); \
253 : nsresult ScrollTo(uint32_t aScrollType); \
254 : nsresult ScrollToPoint(uint32_t coordinateType, int32_t x, int32_t y); \
255 :
256 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
257 : #define NS_FORWARD_NSIACCESSIBLE(_to) \
258 : NS_IMETHOD GetParent(nsIAccessible * *aParent) override { return _to GetParent(aParent); } \
259 : NS_IMETHOD GetNextSibling(nsIAccessible * *aNextSibling) override { return _to GetNextSibling(aNextSibling); } \
260 : NS_IMETHOD GetPreviousSibling(nsIAccessible * *aPreviousSibling) override { return _to GetPreviousSibling(aPreviousSibling); } \
261 : NS_IMETHOD GetFirstChild(nsIAccessible * *aFirstChild) override { return _to GetFirstChild(aFirstChild); } \
262 : NS_IMETHOD GetLastChild(nsIAccessible * *aLastChild) override { return _to GetLastChild(aLastChild); } \
263 : NS_IMETHOD GetChildren(nsIArray * *aChildren) override { return _to GetChildren(aChildren); } \
264 : NS_IMETHOD GetChildCount(int32_t *aChildCount) override { return _to GetChildCount(aChildCount); } \
265 : NS_IMETHOD GetIndexInParent(int32_t *aIndexInParent) override { return _to GetIndexInParent(aIndexInParent); } \
266 : NS_IMETHOD GetDOMNode(nsIDOMNode * *aDOMNode) override { return _to GetDOMNode(aDOMNode); } \
267 : NS_IMETHOD GetId(nsAString & aId) override { return _to GetId(aId); } \
268 : NS_IMETHOD GetDocument(nsIAccessibleDocument * *aDocument) override { return _to GetDocument(aDocument); } \
269 : NS_IMETHOD GetRootDocument(nsIAccessibleDocument * *aRootDocument) override { return _to GetRootDocument(aRootDocument); } \
270 : NS_IMETHOD GetLanguage(nsAString & aLanguage) override { return _to GetLanguage(aLanguage); } \
271 : NS_IMETHOD GetName(nsAString & aName) override { return _to GetName(aName); } \
272 : NS_IMETHOD GetValue(nsAString & aValue) override { return _to GetValue(aValue); } \
273 : NS_IMETHOD GetDescription(nsAString & aDescription) override { return _to GetDescription(aDescription); } \
274 : NS_IMETHOD GetAccessKey(nsAString & aAccessKey) override { return _to GetAccessKey(aAccessKey); } \
275 : NS_IMETHOD GetKeyboardShortcut(nsAString & aKeyboardShortcut) override { return _to GetKeyboardShortcut(aKeyboardShortcut); } \
276 : NS_IMETHOD GetRole(uint32_t *aRole) override { return _to GetRole(aRole); } \
277 : NS_IMETHOD GetState(uint32_t *aState, uint32_t *aExtraState) override { return _to GetState(aState, aExtraState); } \
278 : NS_IMETHOD GetHelp(nsAString & aHelp) override { return _to GetHelp(aHelp); } \
279 : NS_IMETHOD GetFocusedChild(nsIAccessible * *aFocusedChild) override { return _to GetFocusedChild(aFocusedChild); } \
280 : NS_IMETHOD GetAttributes(nsIPersistentProperties * *aAttributes) override { return _to GetAttributes(aAttributes); } \
281 : NS_IMETHOD GroupPosition(int32_t *aGroupLevel, int32_t *aSimilarItemsInGroup, int32_t *aPositionInGroup) override { return _to GroupPosition(aGroupLevel, aSimilarItemsInGroup, aPositionInGroup); } \
282 : NS_IMETHOD GetChildAtPoint(int32_t x, int32_t y, nsIAccessible * *_retval) override { return _to GetChildAtPoint(x, y, _retval); } \
283 : NS_IMETHOD GetDeepestChildAtPoint(int32_t x, int32_t y, nsIAccessible * *_retval) override { return _to GetDeepestChildAtPoint(x, y, _retval); } \
284 : NS_IMETHOD GetChildAt(int32_t aChildIndex, nsIAccessible * *_retval) override { return _to GetChildAt(aChildIndex, _retval); } \
285 : NS_IMETHOD GetRelationByType(uint32_t aRelationType, nsIAccessibleRelation * *_retval) override { return _to GetRelationByType(aRelationType, _retval); } \
286 : NS_IMETHOD GetRelations(nsIArray * *_retval) override { return _to GetRelations(_retval); } \
287 : NS_IMETHOD GetBounds(int32_t *x, int32_t *y, int32_t *width, int32_t *height) override { return _to GetBounds(x, y, width, height); } \
288 : NS_IMETHOD SetSelected(bool isSelected) override { return _to SetSelected(isSelected); } \
289 : NS_IMETHOD TakeSelection(void) override { return _to TakeSelection(); } \
290 : NS_IMETHOD TakeFocus(void) override { return _to TakeFocus(); } \
291 : NS_IMETHOD GetActionCount(uint8_t *aActionCount) override { return _to GetActionCount(aActionCount); } \
292 : NS_IMETHOD GetActionName(uint8_t index, nsAString & _retval) override { return _to GetActionName(index, _retval); } \
293 : NS_IMETHOD GetActionDescription(uint8_t aIndex, nsAString & _retval) override { return _to GetActionDescription(aIndex, _retval); } \
294 : NS_IMETHOD DoAction(uint8_t index) override { return _to DoAction(index); } \
295 : NS_IMETHOD ScrollTo(uint32_t aScrollType) override { return _to ScrollTo(aScrollType); } \
296 : NS_IMETHOD ScrollToPoint(uint32_t coordinateType, int32_t x, int32_t y) override { return _to ScrollToPoint(coordinateType, x, y); } \
297 :
298 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
299 : #define NS_FORWARD_SAFE_NSIACCESSIBLE(_to) \
300 : NS_IMETHOD GetParent(nsIAccessible * *aParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParent(aParent); } \
301 : NS_IMETHOD GetNextSibling(nsIAccessible * *aNextSibling) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextSibling(aNextSibling); } \
302 : NS_IMETHOD GetPreviousSibling(nsIAccessible * *aPreviousSibling) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreviousSibling(aPreviousSibling); } \
303 : NS_IMETHOD GetFirstChild(nsIAccessible * *aFirstChild) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstChild(aFirstChild); } \
304 : NS_IMETHOD GetLastChild(nsIAccessible * *aLastChild) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastChild(aLastChild); } \
305 : NS_IMETHOD GetChildren(nsIArray * *aChildren) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildren(aChildren); } \
306 : NS_IMETHOD GetChildCount(int32_t *aChildCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildCount(aChildCount); } \
307 : NS_IMETHOD GetIndexInParent(int32_t *aIndexInParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexInParent(aIndexInParent); } \
308 : NS_IMETHOD GetDOMNode(nsIDOMNode * *aDOMNode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDOMNode(aDOMNode); } \
309 : NS_IMETHOD GetId(nsAString & aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
310 : NS_IMETHOD GetDocument(nsIAccessibleDocument * *aDocument) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocument(aDocument); } \
311 : NS_IMETHOD GetRootDocument(nsIAccessibleDocument * *aRootDocument) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRootDocument(aRootDocument); } \
312 : NS_IMETHOD GetLanguage(nsAString & aLanguage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLanguage(aLanguage); } \
313 : NS_IMETHOD GetName(nsAString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
314 : NS_IMETHOD GetValue(nsAString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
315 : NS_IMETHOD GetDescription(nsAString & aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
316 : NS_IMETHOD GetAccessKey(nsAString & aAccessKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessKey(aAccessKey); } \
317 : NS_IMETHOD GetKeyboardShortcut(nsAString & aKeyboardShortcut) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyboardShortcut(aKeyboardShortcut); } \
318 : NS_IMETHOD GetRole(uint32_t *aRole) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRole(aRole); } \
319 : NS_IMETHOD GetState(uint32_t *aState, uint32_t *aExtraState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState, aExtraState); } \
320 : NS_IMETHOD GetHelp(nsAString & aHelp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHelp(aHelp); } \
321 : NS_IMETHOD GetFocusedChild(nsIAccessible * *aFocusedChild) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFocusedChild(aFocusedChild); } \
322 : NS_IMETHOD GetAttributes(nsIPersistentProperties * *aAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttributes(aAttributes); } \
323 : NS_IMETHOD GroupPosition(int32_t *aGroupLevel, int32_t *aSimilarItemsInGroup, int32_t *aPositionInGroup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GroupPosition(aGroupLevel, aSimilarItemsInGroup, aPositionInGroup); } \
324 : NS_IMETHOD GetChildAtPoint(int32_t x, int32_t y, nsIAccessible * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildAtPoint(x, y, _retval); } \
325 : NS_IMETHOD GetDeepestChildAtPoint(int32_t x, int32_t y, nsIAccessible * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDeepestChildAtPoint(x, y, _retval); } \
326 : NS_IMETHOD GetChildAt(int32_t aChildIndex, nsIAccessible * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildAt(aChildIndex, _retval); } \
327 : NS_IMETHOD GetRelationByType(uint32_t aRelationType, nsIAccessibleRelation * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelationByType(aRelationType, _retval); } \
328 : NS_IMETHOD GetRelations(nsIArray * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelations(_retval); } \
329 : NS_IMETHOD GetBounds(int32_t *x, int32_t *y, int32_t *width, int32_t *height) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBounds(x, y, width, height); } \
330 : NS_IMETHOD SetSelected(bool isSelected) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelected(isSelected); } \
331 : NS_IMETHOD TakeSelection(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TakeSelection(); } \
332 : NS_IMETHOD TakeFocus(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TakeFocus(); } \
333 : NS_IMETHOD GetActionCount(uint8_t *aActionCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActionCount(aActionCount); } \
334 : NS_IMETHOD GetActionName(uint8_t index, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActionName(index, _retval); } \
335 : NS_IMETHOD GetActionDescription(uint8_t aIndex, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActionDescription(aIndex, _retval); } \
336 : NS_IMETHOD DoAction(uint8_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoAction(index); } \
337 : NS_IMETHOD ScrollTo(uint32_t aScrollType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollTo(aScrollType); } \
338 : NS_IMETHOD ScrollToPoint(uint32_t coordinateType, int32_t x, int32_t y) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollToPoint(coordinateType, x, y); } \
339 :
340 : #if 0
341 : /* Use the code below as a template for the implementation class for this interface. */
342 :
343 : /* Header file */
344 : class nsAccessible : public nsIAccessible
345 : {
346 : public:
347 : NS_DECL_ISUPPORTS
348 : NS_DECL_NSIACCESSIBLE
349 :
350 : nsAccessible();
351 :
352 : private:
353 : ~nsAccessible();
354 :
355 : protected:
356 : /* additional members */
357 : };
358 :
359 : /* Implementation file */
360 : NS_IMPL_ISUPPORTS(nsAccessible, nsIAccessible)
361 :
362 : nsAccessible::nsAccessible()
363 : {
364 : /* member initializers and constructor code */
365 : }
366 :
367 : nsAccessible::~nsAccessible()
368 : {
369 : /* destructor code */
370 : }
371 :
372 : /* readonly attribute nsIAccessible parent; */
373 : NS_IMETHODIMP nsAccessible::GetParent(nsIAccessible * *aParent)
374 : {
375 : return NS_ERROR_NOT_IMPLEMENTED;
376 : }
377 :
378 : /* readonly attribute nsIAccessible nextSibling; */
379 : NS_IMETHODIMP nsAccessible::GetNextSibling(nsIAccessible * *aNextSibling)
380 : {
381 : return NS_ERROR_NOT_IMPLEMENTED;
382 : }
383 :
384 : /* readonly attribute nsIAccessible previousSibling; */
385 : NS_IMETHODIMP nsAccessible::GetPreviousSibling(nsIAccessible * *aPreviousSibling)
386 : {
387 : return NS_ERROR_NOT_IMPLEMENTED;
388 : }
389 :
390 : /* readonly attribute nsIAccessible firstChild; */
391 : NS_IMETHODIMP nsAccessible::GetFirstChild(nsIAccessible * *aFirstChild)
392 : {
393 : return NS_ERROR_NOT_IMPLEMENTED;
394 : }
395 :
396 : /* readonly attribute nsIAccessible lastChild; */
397 : NS_IMETHODIMP nsAccessible::GetLastChild(nsIAccessible * *aLastChild)
398 : {
399 : return NS_ERROR_NOT_IMPLEMENTED;
400 : }
401 :
402 : /* readonly attribute nsIArray children; */
403 : NS_IMETHODIMP nsAccessible::GetChildren(nsIArray * *aChildren)
404 : {
405 : return NS_ERROR_NOT_IMPLEMENTED;
406 : }
407 :
408 : /* readonly attribute long childCount; */
409 : NS_IMETHODIMP nsAccessible::GetChildCount(int32_t *aChildCount)
410 : {
411 : return NS_ERROR_NOT_IMPLEMENTED;
412 : }
413 :
414 : /* readonly attribute long indexInParent; */
415 : NS_IMETHODIMP nsAccessible::GetIndexInParent(int32_t *aIndexInParent)
416 : {
417 : return NS_ERROR_NOT_IMPLEMENTED;
418 : }
419 :
420 : /* readonly attribute nsIDOMNode DOMNode; */
421 : NS_IMETHODIMP nsAccessible::GetDOMNode(nsIDOMNode * *aDOMNode)
422 : {
423 : return NS_ERROR_NOT_IMPLEMENTED;
424 : }
425 :
426 : /* readonly attribute DOMString id; */
427 : NS_IMETHODIMP nsAccessible::GetId(nsAString & aId)
428 : {
429 : return NS_ERROR_NOT_IMPLEMENTED;
430 : }
431 :
432 : /* readonly attribute nsIAccessibleDocument document; */
433 : NS_IMETHODIMP nsAccessible::GetDocument(nsIAccessibleDocument * *aDocument)
434 : {
435 : return NS_ERROR_NOT_IMPLEMENTED;
436 : }
437 :
438 : /* readonly attribute nsIAccessibleDocument rootDocument; */
439 : NS_IMETHODIMP nsAccessible::GetRootDocument(nsIAccessibleDocument * *aRootDocument)
440 : {
441 : return NS_ERROR_NOT_IMPLEMENTED;
442 : }
443 :
444 : /* readonly attribute DOMString language; */
445 : NS_IMETHODIMP nsAccessible::GetLanguage(nsAString & aLanguage)
446 : {
447 : return NS_ERROR_NOT_IMPLEMENTED;
448 : }
449 :
450 : /* readonly attribute AString name; */
451 : NS_IMETHODIMP nsAccessible::GetName(nsAString & aName)
452 : {
453 : return NS_ERROR_NOT_IMPLEMENTED;
454 : }
455 :
456 : /* readonly attribute AString value; */
457 : NS_IMETHODIMP nsAccessible::GetValue(nsAString & aValue)
458 : {
459 : return NS_ERROR_NOT_IMPLEMENTED;
460 : }
461 :
462 : /* readonly attribute AString description; */
463 : NS_IMETHODIMP nsAccessible::GetDescription(nsAString & aDescription)
464 : {
465 : return NS_ERROR_NOT_IMPLEMENTED;
466 : }
467 :
468 : /* readonly attribute AString accessKey; */
469 : NS_IMETHODIMP nsAccessible::GetAccessKey(nsAString & aAccessKey)
470 : {
471 : return NS_ERROR_NOT_IMPLEMENTED;
472 : }
473 :
474 : /* readonly attribute AString keyboardShortcut; */
475 : NS_IMETHODIMP nsAccessible::GetKeyboardShortcut(nsAString & aKeyboardShortcut)
476 : {
477 : return NS_ERROR_NOT_IMPLEMENTED;
478 : }
479 :
480 : /* readonly attribute unsigned long role; */
481 : NS_IMETHODIMP nsAccessible::GetRole(uint32_t *aRole)
482 : {
483 : return NS_ERROR_NOT_IMPLEMENTED;
484 : }
485 :
486 : /* void getState (out unsigned long aState, out unsigned long aExtraState); */
487 : NS_IMETHODIMP nsAccessible::GetState(uint32_t *aState, uint32_t *aExtraState)
488 : {
489 : return NS_ERROR_NOT_IMPLEMENTED;
490 : }
491 :
492 : /* readonly attribute AString help; */
493 : NS_IMETHODIMP nsAccessible::GetHelp(nsAString & aHelp)
494 : {
495 : return NS_ERROR_NOT_IMPLEMENTED;
496 : }
497 :
498 : /* readonly attribute nsIAccessible focusedChild; */
499 : NS_IMETHODIMP nsAccessible::GetFocusedChild(nsIAccessible * *aFocusedChild)
500 : {
501 : return NS_ERROR_NOT_IMPLEMENTED;
502 : }
503 :
504 : /* readonly attribute nsIPersistentProperties attributes; */
505 : NS_IMETHODIMP nsAccessible::GetAttributes(nsIPersistentProperties * *aAttributes)
506 : {
507 : return NS_ERROR_NOT_IMPLEMENTED;
508 : }
509 :
510 : /* void groupPosition (out long aGroupLevel, out long aSimilarItemsInGroup, out long aPositionInGroup); */
511 : NS_IMETHODIMP nsAccessible::GroupPosition(int32_t *aGroupLevel, int32_t *aSimilarItemsInGroup, int32_t *aPositionInGroup)
512 : {
513 : return NS_ERROR_NOT_IMPLEMENTED;
514 : }
515 :
516 : /* nsIAccessible getChildAtPoint (in long x, in long y); */
517 : NS_IMETHODIMP nsAccessible::GetChildAtPoint(int32_t x, int32_t y, nsIAccessible * *_retval)
518 : {
519 : return NS_ERROR_NOT_IMPLEMENTED;
520 : }
521 :
522 : /* nsIAccessible getDeepestChildAtPoint (in long x, in long y); */
523 : NS_IMETHODIMP nsAccessible::GetDeepestChildAtPoint(int32_t x, int32_t y, nsIAccessible * *_retval)
524 : {
525 : return NS_ERROR_NOT_IMPLEMENTED;
526 : }
527 :
528 : /* nsIAccessible getChildAt (in long aChildIndex); */
529 : NS_IMETHODIMP nsAccessible::GetChildAt(int32_t aChildIndex, nsIAccessible * *_retval)
530 : {
531 : return NS_ERROR_NOT_IMPLEMENTED;
532 : }
533 :
534 : /* nsIAccessibleRelation getRelationByType (in unsigned long aRelationType); */
535 : NS_IMETHODIMP nsAccessible::GetRelationByType(uint32_t aRelationType, nsIAccessibleRelation * *_retval)
536 : {
537 : return NS_ERROR_NOT_IMPLEMENTED;
538 : }
539 :
540 : /* nsIArray getRelations (); */
541 : NS_IMETHODIMP nsAccessible::GetRelations(nsIArray * *_retval)
542 : {
543 : return NS_ERROR_NOT_IMPLEMENTED;
544 : }
545 :
546 : /* void getBounds (out long x, out long y, out long width, out long height); */
547 : NS_IMETHODIMP nsAccessible::GetBounds(int32_t *x, int32_t *y, int32_t *width, int32_t *height)
548 : {
549 : return NS_ERROR_NOT_IMPLEMENTED;
550 : }
551 :
552 : /* void setSelected (in boolean isSelected); */
553 : NS_IMETHODIMP nsAccessible::SetSelected(bool isSelected)
554 : {
555 : return NS_ERROR_NOT_IMPLEMENTED;
556 : }
557 :
558 : /* void takeSelection (); */
559 : NS_IMETHODIMP nsAccessible::TakeSelection()
560 : {
561 : return NS_ERROR_NOT_IMPLEMENTED;
562 : }
563 :
564 : /* void takeFocus (); */
565 : NS_IMETHODIMP nsAccessible::TakeFocus()
566 : {
567 : return NS_ERROR_NOT_IMPLEMENTED;
568 : }
569 :
570 : /* readonly attribute uint8_t actionCount; */
571 : NS_IMETHODIMP nsAccessible::GetActionCount(uint8_t *aActionCount)
572 : {
573 : return NS_ERROR_NOT_IMPLEMENTED;
574 : }
575 :
576 : /* AString getActionName (in uint8_t index); */
577 : NS_IMETHODIMP nsAccessible::GetActionName(uint8_t index, nsAString & _retval)
578 : {
579 : return NS_ERROR_NOT_IMPLEMENTED;
580 : }
581 :
582 : /* AString getActionDescription (in uint8_t aIndex); */
583 : NS_IMETHODIMP nsAccessible::GetActionDescription(uint8_t aIndex, nsAString & _retval)
584 : {
585 : return NS_ERROR_NOT_IMPLEMENTED;
586 : }
587 :
588 : /* void doAction (in uint8_t index); */
589 : NS_IMETHODIMP nsAccessible::DoAction(uint8_t index)
590 : {
591 : return NS_ERROR_NOT_IMPLEMENTED;
592 : }
593 :
594 : /* void scrollTo (in unsigned long aScrollType); */
595 : NS_IMETHODIMP nsAccessible::ScrollTo(uint32_t aScrollType)
596 : {
597 : return NS_ERROR_NOT_IMPLEMENTED;
598 : }
599 :
600 : /* void scrollToPoint (in unsigned long coordinateType, in long x, in long y); */
601 : NS_IMETHODIMP nsAccessible::ScrollToPoint(uint32_t coordinateType, int32_t x, int32_t y)
602 : {
603 : return NS_ERROR_NOT_IMPLEMENTED;
604 : }
605 :
606 : /* End of implementation class template. */
607 : #endif
608 :
609 :
610 : #endif /* __gen_nsIAccessible_h__ */
|