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