1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/html/nsIDOMHTMLInputElement.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMHTMLInputElement_h__
6 : #define __gen_nsIDOMHTMLInputElement_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMHTMLElement_h__
10 : #include "nsIDOMHTMLElement.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 nsIControllers; /* forward declaration */
18 :
19 : class nsIDOMFileList; /* forward declaration */
20 :
21 : class nsIDOMValidityState; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIDOMHTMLInputElement */
25 : #define NS_IDOMHTMLINPUTELEMENT_IID_STR "7330cd35-c930-4f45-ae61-f5380c30222d"
26 :
27 : #define NS_IDOMHTMLINPUTELEMENT_IID \
28 : {0x7330cd35, 0xc930, 0x4f45, \
29 : { 0xae, 0x61, 0xf5, 0x38, 0x0c, 0x30, 0x22, 0x2d }}
30 :
31 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLInputElement : public nsIDOMHTMLElement {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLINPUTELEMENT_IID)
35 :
36 : /* attribute DOMString accept; */
37 : NS_SCRIPTABLE NS_IMETHOD GetAccept(nsAString & aAccept) = 0;
38 : NS_SCRIPTABLE NS_IMETHOD SetAccept(const nsAString & aAccept) = 0;
39 :
40 : /* attribute DOMString alt; */
41 : NS_SCRIPTABLE NS_IMETHOD GetAlt(nsAString & aAlt) = 0;
42 : NS_SCRIPTABLE NS_IMETHOD SetAlt(const nsAString & aAlt) = 0;
43 :
44 : /* attribute DOMString autocomplete; */
45 : NS_SCRIPTABLE NS_IMETHOD GetAutocomplete(nsAString & aAutocomplete) = 0;
46 : NS_SCRIPTABLE NS_IMETHOD SetAutocomplete(const nsAString & aAutocomplete) = 0;
47 :
48 : /* attribute boolean autofocus; */
49 : NS_SCRIPTABLE NS_IMETHOD GetAutofocus(bool *aAutofocus) = 0;
50 : NS_SCRIPTABLE NS_IMETHOD SetAutofocus(bool aAutofocus) = 0;
51 :
52 : /* attribute boolean defaultChecked; */
53 : NS_SCRIPTABLE NS_IMETHOD GetDefaultChecked(bool *aDefaultChecked) = 0;
54 : NS_SCRIPTABLE NS_IMETHOD SetDefaultChecked(bool aDefaultChecked) = 0;
55 :
56 : /* attribute boolean checked; */
57 : NS_SCRIPTABLE NS_IMETHOD GetChecked(bool *aChecked) = 0;
58 : NS_SCRIPTABLE NS_IMETHOD SetChecked(bool aChecked) = 0;
59 :
60 : /* attribute boolean disabled; */
61 : NS_SCRIPTABLE NS_IMETHOD GetDisabled(bool *aDisabled) = 0;
62 : NS_SCRIPTABLE NS_IMETHOD SetDisabled(bool aDisabled) = 0;
63 :
64 : /* readonly attribute nsIDOMHTMLFormElement form; */
65 : NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
66 :
67 : /* attribute DOMString formAction; */
68 : NS_SCRIPTABLE NS_IMETHOD GetFormAction(nsAString & aFormAction) = 0;
69 : NS_SCRIPTABLE NS_IMETHOD SetFormAction(const nsAString & aFormAction) = 0;
70 :
71 : /* attribute DOMString formEnctype; */
72 : NS_SCRIPTABLE NS_IMETHOD GetFormEnctype(nsAString & aFormEnctype) = 0;
73 : NS_SCRIPTABLE NS_IMETHOD SetFormEnctype(const nsAString & aFormEnctype) = 0;
74 :
75 : /* attribute DOMString formMethod; */
76 : NS_SCRIPTABLE NS_IMETHOD GetFormMethod(nsAString & aFormMethod) = 0;
77 : NS_SCRIPTABLE NS_IMETHOD SetFormMethod(const nsAString & aFormMethod) = 0;
78 :
79 : /* attribute boolean formNoValidate; */
80 : NS_SCRIPTABLE NS_IMETHOD GetFormNoValidate(bool *aFormNoValidate) = 0;
81 : NS_SCRIPTABLE NS_IMETHOD SetFormNoValidate(bool aFormNoValidate) = 0;
82 :
83 : /* attribute DOMString formTarget; */
84 : NS_SCRIPTABLE NS_IMETHOD GetFormTarget(nsAString & aFormTarget) = 0;
85 : NS_SCRIPTABLE NS_IMETHOD SetFormTarget(const nsAString & aFormTarget) = 0;
86 :
87 : /* readonly attribute nsIDOMFileList files; */
88 : NS_SCRIPTABLE NS_IMETHOD GetFiles(nsIDOMFileList * *aFiles) = 0;
89 :
90 : /* attribute boolean indeterminate; */
91 : NS_SCRIPTABLE NS_IMETHOD GetIndeterminate(bool *aIndeterminate) = 0;
92 : NS_SCRIPTABLE NS_IMETHOD SetIndeterminate(bool aIndeterminate) = 0;
93 :
94 : /* readonly attribute nsIDOMHTMLElement list; */
95 : NS_SCRIPTABLE NS_IMETHOD GetList(nsIDOMHTMLElement * *aList) = 0;
96 :
97 : /* attribute long maxLength; */
98 : NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) = 0;
99 : NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) = 0;
100 :
101 : /* attribute boolean multiple; */
102 : NS_SCRIPTABLE NS_IMETHOD GetMultiple(bool *aMultiple) = 0;
103 : NS_SCRIPTABLE NS_IMETHOD SetMultiple(bool aMultiple) = 0;
104 :
105 : /* attribute DOMString name; */
106 : NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
107 : NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) = 0;
108 :
109 : /* attribute DOMString pattern; */
110 : NS_SCRIPTABLE NS_IMETHOD GetPattern(nsAString & aPattern) = 0;
111 : NS_SCRIPTABLE NS_IMETHOD SetPattern(const nsAString & aPattern) = 0;
112 :
113 : /* attribute DOMString placeholder; */
114 : NS_SCRIPTABLE NS_IMETHOD GetPlaceholder(nsAString & aPlaceholder) = 0;
115 : NS_SCRIPTABLE NS_IMETHOD SetPlaceholder(const nsAString & aPlaceholder) = 0;
116 :
117 : /* attribute boolean readOnly; */
118 : NS_SCRIPTABLE NS_IMETHOD GetReadOnly(bool *aReadOnly) = 0;
119 : NS_SCRIPTABLE NS_IMETHOD SetReadOnly(bool aReadOnly) = 0;
120 :
121 : /* attribute boolean required; */
122 : NS_SCRIPTABLE NS_IMETHOD GetRequired(bool *aRequired) = 0;
123 : NS_SCRIPTABLE NS_IMETHOD SetRequired(bool aRequired) = 0;
124 :
125 : /* attribute DOMString align; */
126 : NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign) = 0;
127 : NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) = 0;
128 :
129 : /* attribute unsigned long size; */
130 : NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint32 *aSize) = 0;
131 : NS_SCRIPTABLE NS_IMETHOD SetSize(PRUint32 aSize) = 0;
132 :
133 : /* attribute DOMString src; */
134 : NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc) = 0;
135 : NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc) = 0;
136 :
137 : /* attribute DOMString type; */
138 : NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) = 0;
139 : NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) = 0;
140 :
141 : /* attribute DOMString defaultValue; */
142 : NS_SCRIPTABLE NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue) = 0;
143 : NS_SCRIPTABLE NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue) = 0;
144 :
145 : /* attribute DOMString value; */
146 : NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) = 0;
147 : NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) = 0;
148 :
149 : /* readonly attribute boolean willValidate; */
150 : NS_SCRIPTABLE NS_IMETHOD GetWillValidate(bool *aWillValidate) = 0;
151 :
152 : /* readonly attribute nsIDOMValidityState validity; */
153 : NS_SCRIPTABLE NS_IMETHOD GetValidity(nsIDOMValidityState * *aValidity) = 0;
154 :
155 : /* readonly attribute DOMString validationMessage; */
156 : NS_SCRIPTABLE NS_IMETHOD GetValidationMessage(nsAString & aValidationMessage) = 0;
157 :
158 : /* boolean checkValidity (); */
159 : NS_SCRIPTABLE NS_IMETHOD CheckValidity(bool *_retval NS_OUTPARAM) = 0;
160 :
161 : /* void setCustomValidity (in DOMString error); */
162 : NS_SCRIPTABLE NS_IMETHOD SetCustomValidity(const nsAString & error) = 0;
163 :
164 : /* void select (); */
165 : NS_SCRIPTABLE NS_IMETHOD Select(void) = 0;
166 :
167 : /* attribute long selectionStart; */
168 : NS_SCRIPTABLE NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart) = 0;
169 : NS_SCRIPTABLE NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart) = 0;
170 :
171 : /* attribute long selectionEnd; */
172 : NS_SCRIPTABLE NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd) = 0;
173 : NS_SCRIPTABLE NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd) = 0;
174 :
175 : /* void setSelectionRange (in long selectionStart, in long selectionEnd, [optional] in DOMString direction); */
176 : NS_SCRIPTABLE NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd, const nsAString & direction) = 0;
177 :
178 : /* attribute DOMString selectionDirection; */
179 : NS_SCRIPTABLE NS_IMETHOD GetSelectionDirection(nsAString & aSelectionDirection) = 0;
180 : NS_SCRIPTABLE NS_IMETHOD SetSelectionDirection(const nsAString & aSelectionDirection) = 0;
181 :
182 : /* attribute DOMString useMap; */
183 : NS_SCRIPTABLE NS_IMETHOD GetUseMap(nsAString & aUseMap) = 0;
184 : NS_SCRIPTABLE NS_IMETHOD SetUseMap(const nsAString & aUseMap) = 0;
185 :
186 : /* readonly attribute nsIControllers controllers; */
187 : NS_SCRIPTABLE NS_IMETHOD GetControllers(nsIControllers * *aControllers) = 0;
188 :
189 : /* readonly attribute long textLength; */
190 : NS_SCRIPTABLE NS_IMETHOD GetTextLength(PRInt32 *aTextLength) = 0;
191 :
192 : /* void mozGetFileNameArray ([optional] out unsigned long aLength, [array, size_is (aLength), retval] out wstring aFileNames); */
193 : NS_SCRIPTABLE NS_IMETHOD MozGetFileNameArray(PRUint32 *aLength NS_OUTPARAM, PRUnichar * **aFileNames NS_OUTPARAM) = 0;
194 :
195 : /* void mozSetFileNameArray ([array, size_is (aLength)] in wstring aFileNames, in unsigned long aLength); */
196 : NS_SCRIPTABLE NS_IMETHOD MozSetFileNameArray(const PRUnichar * *aFileNames, PRUint32 aLength) = 0;
197 :
198 : /* boolean mozIsTextField (in boolean aExcludePassword); */
199 : NS_SCRIPTABLE NS_IMETHOD MozIsTextField(bool aExcludePassword, bool *_retval NS_OUTPARAM) = 0;
200 :
201 : };
202 :
203 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLInputElement, NS_IDOMHTMLINPUTELEMENT_IID)
204 :
205 : /* Use this macro when declaring classes that implement this interface. */
206 : #define NS_DECL_NSIDOMHTMLINPUTELEMENT \
207 : NS_SCRIPTABLE NS_IMETHOD GetAccept(nsAString & aAccept); \
208 : NS_SCRIPTABLE NS_IMETHOD SetAccept(const nsAString & aAccept); \
209 : NS_SCRIPTABLE NS_IMETHOD GetAlt(nsAString & aAlt); \
210 : NS_SCRIPTABLE NS_IMETHOD SetAlt(const nsAString & aAlt); \
211 : NS_SCRIPTABLE NS_IMETHOD GetAutocomplete(nsAString & aAutocomplete); \
212 : NS_SCRIPTABLE NS_IMETHOD SetAutocomplete(const nsAString & aAutocomplete); \
213 : NS_SCRIPTABLE NS_IMETHOD GetAutofocus(bool *aAutofocus); \
214 : NS_SCRIPTABLE NS_IMETHOD SetAutofocus(bool aAutofocus); \
215 : NS_SCRIPTABLE NS_IMETHOD GetDefaultChecked(bool *aDefaultChecked); \
216 : NS_SCRIPTABLE NS_IMETHOD SetDefaultChecked(bool aDefaultChecked); \
217 : NS_SCRIPTABLE NS_IMETHOD GetChecked(bool *aChecked); \
218 : NS_SCRIPTABLE NS_IMETHOD SetChecked(bool aChecked); \
219 : NS_SCRIPTABLE NS_IMETHOD GetDisabled(bool *aDisabled); \
220 : NS_SCRIPTABLE NS_IMETHOD SetDisabled(bool aDisabled); \
221 : NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \
222 : NS_SCRIPTABLE NS_IMETHOD GetFormAction(nsAString & aFormAction); \
223 : NS_SCRIPTABLE NS_IMETHOD SetFormAction(const nsAString & aFormAction); \
224 : NS_SCRIPTABLE NS_IMETHOD GetFormEnctype(nsAString & aFormEnctype); \
225 : NS_SCRIPTABLE NS_IMETHOD SetFormEnctype(const nsAString & aFormEnctype); \
226 : NS_SCRIPTABLE NS_IMETHOD GetFormMethod(nsAString & aFormMethod); \
227 : NS_SCRIPTABLE NS_IMETHOD SetFormMethod(const nsAString & aFormMethod); \
228 : NS_SCRIPTABLE NS_IMETHOD GetFormNoValidate(bool *aFormNoValidate); \
229 : NS_SCRIPTABLE NS_IMETHOD SetFormNoValidate(bool aFormNoValidate); \
230 : NS_SCRIPTABLE NS_IMETHOD GetFormTarget(nsAString & aFormTarget); \
231 : NS_SCRIPTABLE NS_IMETHOD SetFormTarget(const nsAString & aFormTarget); \
232 : NS_SCRIPTABLE NS_IMETHOD GetFiles(nsIDOMFileList * *aFiles); \
233 : NS_SCRIPTABLE NS_IMETHOD GetIndeterminate(bool *aIndeterminate); \
234 : NS_SCRIPTABLE NS_IMETHOD SetIndeterminate(bool aIndeterminate); \
235 : NS_SCRIPTABLE NS_IMETHOD GetList(nsIDOMHTMLElement * *aList); \
236 : NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength); \
237 : NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength); \
238 : NS_SCRIPTABLE NS_IMETHOD GetMultiple(bool *aMultiple); \
239 : NS_SCRIPTABLE NS_IMETHOD SetMultiple(bool aMultiple); \
240 : NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
241 : NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName); \
242 : NS_SCRIPTABLE NS_IMETHOD GetPattern(nsAString & aPattern); \
243 : NS_SCRIPTABLE NS_IMETHOD SetPattern(const nsAString & aPattern); \
244 : NS_SCRIPTABLE NS_IMETHOD GetPlaceholder(nsAString & aPlaceholder); \
245 : NS_SCRIPTABLE NS_IMETHOD SetPlaceholder(const nsAString & aPlaceholder); \
246 : NS_SCRIPTABLE NS_IMETHOD GetReadOnly(bool *aReadOnly); \
247 : NS_SCRIPTABLE NS_IMETHOD SetReadOnly(bool aReadOnly); \
248 : NS_SCRIPTABLE NS_IMETHOD GetRequired(bool *aRequired); \
249 : NS_SCRIPTABLE NS_IMETHOD SetRequired(bool aRequired); \
250 : NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign); \
251 : NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign); \
252 : NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint32 *aSize); \
253 : NS_SCRIPTABLE NS_IMETHOD SetSize(PRUint32 aSize); \
254 : NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc); \
255 : NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc); \
256 : NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
257 : NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType); \
258 : NS_SCRIPTABLE NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue); \
259 : NS_SCRIPTABLE NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue); \
260 : NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue); \
261 : NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue); \
262 : NS_SCRIPTABLE NS_IMETHOD GetWillValidate(bool *aWillValidate); \
263 : NS_SCRIPTABLE NS_IMETHOD GetValidity(nsIDOMValidityState * *aValidity); \
264 : NS_SCRIPTABLE NS_IMETHOD GetValidationMessage(nsAString & aValidationMessage); \
265 : NS_SCRIPTABLE NS_IMETHOD CheckValidity(bool *_retval NS_OUTPARAM); \
266 : NS_SCRIPTABLE NS_IMETHOD SetCustomValidity(const nsAString & error); \
267 : NS_SCRIPTABLE NS_IMETHOD Select(void); \
268 : NS_SCRIPTABLE NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart); \
269 : NS_SCRIPTABLE NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart); \
270 : NS_SCRIPTABLE NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd); \
271 : NS_SCRIPTABLE NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd); \
272 : NS_SCRIPTABLE NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd, const nsAString & direction); \
273 : NS_SCRIPTABLE NS_IMETHOD GetSelectionDirection(nsAString & aSelectionDirection); \
274 : NS_SCRIPTABLE NS_IMETHOD SetSelectionDirection(const nsAString & aSelectionDirection); \
275 : NS_SCRIPTABLE NS_IMETHOD GetUseMap(nsAString & aUseMap); \
276 : NS_SCRIPTABLE NS_IMETHOD SetUseMap(const nsAString & aUseMap); \
277 : NS_SCRIPTABLE NS_IMETHOD GetControllers(nsIControllers * *aControllers); \
278 : NS_SCRIPTABLE NS_IMETHOD GetTextLength(PRInt32 *aTextLength); \
279 : NS_SCRIPTABLE NS_IMETHOD MozGetFileNameArray(PRUint32 *aLength NS_OUTPARAM, PRUnichar * **aFileNames NS_OUTPARAM); \
280 : NS_SCRIPTABLE NS_IMETHOD MozSetFileNameArray(const PRUnichar * *aFileNames, PRUint32 aLength); \
281 : NS_SCRIPTABLE NS_IMETHOD MozIsTextField(bool aExcludePassword, bool *_retval NS_OUTPARAM);
282 :
283 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
284 : #define NS_FORWARD_NSIDOMHTMLINPUTELEMENT(_to) \
285 : NS_SCRIPTABLE NS_IMETHOD GetAccept(nsAString & aAccept) { return _to GetAccept(aAccept); } \
286 : NS_SCRIPTABLE NS_IMETHOD SetAccept(const nsAString & aAccept) { return _to SetAccept(aAccept); } \
287 : NS_SCRIPTABLE NS_IMETHOD GetAlt(nsAString & aAlt) { return _to GetAlt(aAlt); } \
288 : NS_SCRIPTABLE NS_IMETHOD SetAlt(const nsAString & aAlt) { return _to SetAlt(aAlt); } \
289 : NS_SCRIPTABLE NS_IMETHOD GetAutocomplete(nsAString & aAutocomplete) { return _to GetAutocomplete(aAutocomplete); } \
290 : NS_SCRIPTABLE NS_IMETHOD SetAutocomplete(const nsAString & aAutocomplete) { return _to SetAutocomplete(aAutocomplete); } \
291 : NS_SCRIPTABLE NS_IMETHOD GetAutofocus(bool *aAutofocus) { return _to GetAutofocus(aAutofocus); } \
292 : NS_SCRIPTABLE NS_IMETHOD SetAutofocus(bool aAutofocus) { return _to SetAutofocus(aAutofocus); } \
293 : NS_SCRIPTABLE NS_IMETHOD GetDefaultChecked(bool *aDefaultChecked) { return _to GetDefaultChecked(aDefaultChecked); } \
294 : NS_SCRIPTABLE NS_IMETHOD SetDefaultChecked(bool aDefaultChecked) { return _to SetDefaultChecked(aDefaultChecked); } \
295 : NS_SCRIPTABLE NS_IMETHOD GetChecked(bool *aChecked) { return _to GetChecked(aChecked); } \
296 : NS_SCRIPTABLE NS_IMETHOD SetChecked(bool aChecked) { return _to SetChecked(aChecked); } \
297 : NS_SCRIPTABLE NS_IMETHOD GetDisabled(bool *aDisabled) { return _to GetDisabled(aDisabled); } \
298 : NS_SCRIPTABLE NS_IMETHOD SetDisabled(bool aDisabled) { return _to SetDisabled(aDisabled); } \
299 : NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm); } \
300 : NS_SCRIPTABLE NS_IMETHOD GetFormAction(nsAString & aFormAction) { return _to GetFormAction(aFormAction); } \
301 : NS_SCRIPTABLE NS_IMETHOD SetFormAction(const nsAString & aFormAction) { return _to SetFormAction(aFormAction); } \
302 : NS_SCRIPTABLE NS_IMETHOD GetFormEnctype(nsAString & aFormEnctype) { return _to GetFormEnctype(aFormEnctype); } \
303 : NS_SCRIPTABLE NS_IMETHOD SetFormEnctype(const nsAString & aFormEnctype) { return _to SetFormEnctype(aFormEnctype); } \
304 : NS_SCRIPTABLE NS_IMETHOD GetFormMethod(nsAString & aFormMethod) { return _to GetFormMethod(aFormMethod); } \
305 : NS_SCRIPTABLE NS_IMETHOD SetFormMethod(const nsAString & aFormMethod) { return _to SetFormMethod(aFormMethod); } \
306 : NS_SCRIPTABLE NS_IMETHOD GetFormNoValidate(bool *aFormNoValidate) { return _to GetFormNoValidate(aFormNoValidate); } \
307 : NS_SCRIPTABLE NS_IMETHOD SetFormNoValidate(bool aFormNoValidate) { return _to SetFormNoValidate(aFormNoValidate); } \
308 : NS_SCRIPTABLE NS_IMETHOD GetFormTarget(nsAString & aFormTarget) { return _to GetFormTarget(aFormTarget); } \
309 : NS_SCRIPTABLE NS_IMETHOD SetFormTarget(const nsAString & aFormTarget) { return _to SetFormTarget(aFormTarget); } \
310 : NS_SCRIPTABLE NS_IMETHOD GetFiles(nsIDOMFileList * *aFiles) { return _to GetFiles(aFiles); } \
311 : NS_SCRIPTABLE NS_IMETHOD GetIndeterminate(bool *aIndeterminate) { return _to GetIndeterminate(aIndeterminate); } \
312 : NS_SCRIPTABLE NS_IMETHOD SetIndeterminate(bool aIndeterminate) { return _to SetIndeterminate(aIndeterminate); } \
313 : NS_SCRIPTABLE NS_IMETHOD GetList(nsIDOMHTMLElement * *aList) { return _to GetList(aList); } \
314 : NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return _to GetMaxLength(aMaxLength); } \
315 : NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) { return _to SetMaxLength(aMaxLength); } \
316 : NS_SCRIPTABLE NS_IMETHOD GetMultiple(bool *aMultiple) { return _to GetMultiple(aMultiple); } \
317 : NS_SCRIPTABLE NS_IMETHOD SetMultiple(bool aMultiple) { return _to SetMultiple(aMultiple); } \
318 : NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
319 : NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
320 : NS_SCRIPTABLE NS_IMETHOD GetPattern(nsAString & aPattern) { return _to GetPattern(aPattern); } \
321 : NS_SCRIPTABLE NS_IMETHOD SetPattern(const nsAString & aPattern) { return _to SetPattern(aPattern); } \
322 : NS_SCRIPTABLE NS_IMETHOD GetPlaceholder(nsAString & aPlaceholder) { return _to GetPlaceholder(aPlaceholder); } \
323 : NS_SCRIPTABLE NS_IMETHOD SetPlaceholder(const nsAString & aPlaceholder) { return _to SetPlaceholder(aPlaceholder); } \
324 : NS_SCRIPTABLE NS_IMETHOD GetReadOnly(bool *aReadOnly) { return _to GetReadOnly(aReadOnly); } \
325 : NS_SCRIPTABLE NS_IMETHOD SetReadOnly(bool aReadOnly) { return _to SetReadOnly(aReadOnly); } \
326 : NS_SCRIPTABLE NS_IMETHOD GetRequired(bool *aRequired) { return _to GetRequired(aRequired); } \
327 : NS_SCRIPTABLE NS_IMETHOD SetRequired(bool aRequired) { return _to SetRequired(aRequired); } \
328 : NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign) { return _to GetAlign(aAlign); } \
329 : NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) { return _to SetAlign(aAlign); } \
330 : NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint32 *aSize) { return _to GetSize(aSize); } \
331 : NS_SCRIPTABLE NS_IMETHOD SetSize(PRUint32 aSize) { return _to SetSize(aSize); } \
332 : NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc) { return _to GetSrc(aSrc); } \
333 : NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc) { return _to SetSrc(aSrc); } \
334 : NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
335 : NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); } \
336 : NS_SCRIPTABLE NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue) { return _to GetDefaultValue(aDefaultValue); } \
337 : NS_SCRIPTABLE NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue) { return _to SetDefaultValue(aDefaultValue); } \
338 : NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
339 : NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } \
340 : NS_SCRIPTABLE NS_IMETHOD GetWillValidate(bool *aWillValidate) { return _to GetWillValidate(aWillValidate); } \
341 : NS_SCRIPTABLE NS_IMETHOD GetValidity(nsIDOMValidityState * *aValidity) { return _to GetValidity(aValidity); } \
342 : NS_SCRIPTABLE NS_IMETHOD GetValidationMessage(nsAString & aValidationMessage) { return _to GetValidationMessage(aValidationMessage); } \
343 : NS_SCRIPTABLE NS_IMETHOD CheckValidity(bool *_retval NS_OUTPARAM) { return _to CheckValidity(_retval); } \
344 : NS_SCRIPTABLE NS_IMETHOD SetCustomValidity(const nsAString & error) { return _to SetCustomValidity(error); } \
345 : NS_SCRIPTABLE NS_IMETHOD Select(void) { return _to Select(); } \
346 : NS_SCRIPTABLE NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart) { return _to GetSelectionStart(aSelectionStart); } \
347 : NS_SCRIPTABLE NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart) { return _to SetSelectionStart(aSelectionStart); } \
348 : NS_SCRIPTABLE NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd) { return _to GetSelectionEnd(aSelectionEnd); } \
349 : NS_SCRIPTABLE NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd) { return _to SetSelectionEnd(aSelectionEnd); } \
350 : NS_SCRIPTABLE NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd, const nsAString & direction) { return _to SetSelectionRange(selectionStart, selectionEnd, direction); } \
351 : NS_SCRIPTABLE NS_IMETHOD GetSelectionDirection(nsAString & aSelectionDirection) { return _to GetSelectionDirection(aSelectionDirection); } \
352 : NS_SCRIPTABLE NS_IMETHOD SetSelectionDirection(const nsAString & aSelectionDirection) { return _to SetSelectionDirection(aSelectionDirection); } \
353 : NS_SCRIPTABLE NS_IMETHOD GetUseMap(nsAString & aUseMap) { return _to GetUseMap(aUseMap); } \
354 : NS_SCRIPTABLE NS_IMETHOD SetUseMap(const nsAString & aUseMap) { return _to SetUseMap(aUseMap); } \
355 : NS_SCRIPTABLE NS_IMETHOD GetControllers(nsIControllers * *aControllers) { return _to GetControllers(aControllers); } \
356 : NS_SCRIPTABLE NS_IMETHOD GetTextLength(PRInt32 *aTextLength) { return _to GetTextLength(aTextLength); } \
357 : NS_SCRIPTABLE NS_IMETHOD MozGetFileNameArray(PRUint32 *aLength NS_OUTPARAM, PRUnichar * **aFileNames NS_OUTPARAM) { return _to MozGetFileNameArray(aLength, aFileNames); } \
358 : NS_SCRIPTABLE NS_IMETHOD MozSetFileNameArray(const PRUnichar * *aFileNames, PRUint32 aLength) { return _to MozSetFileNameArray(aFileNames, aLength); } \
359 : NS_SCRIPTABLE NS_IMETHOD MozIsTextField(bool aExcludePassword, bool *_retval NS_OUTPARAM) { return _to MozIsTextField(aExcludePassword, _retval); }
360 :
361 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
362 : #define NS_FORWARD_SAFE_NSIDOMHTMLINPUTELEMENT(_to) \
363 : NS_SCRIPTABLE NS_IMETHOD GetAccept(nsAString & aAccept) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccept(aAccept); } \
364 : NS_SCRIPTABLE NS_IMETHOD SetAccept(const nsAString & aAccept) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccept(aAccept); } \
365 : NS_SCRIPTABLE NS_IMETHOD GetAlt(nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlt(aAlt); } \
366 : NS_SCRIPTABLE NS_IMETHOD SetAlt(const nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlt(aAlt); } \
367 : NS_SCRIPTABLE NS_IMETHOD GetAutocomplete(nsAString & aAutocomplete) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAutocomplete(aAutocomplete); } \
368 : NS_SCRIPTABLE NS_IMETHOD SetAutocomplete(const nsAString & aAutocomplete) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAutocomplete(aAutocomplete); } \
369 : NS_SCRIPTABLE NS_IMETHOD GetAutofocus(bool *aAutofocus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAutofocus(aAutofocus); } \
370 : NS_SCRIPTABLE NS_IMETHOD SetAutofocus(bool aAutofocus) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAutofocus(aAutofocus); } \
371 : NS_SCRIPTABLE NS_IMETHOD GetDefaultChecked(bool *aDefaultChecked) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultChecked(aDefaultChecked); } \
372 : NS_SCRIPTABLE NS_IMETHOD SetDefaultChecked(bool aDefaultChecked) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultChecked(aDefaultChecked); } \
373 : NS_SCRIPTABLE NS_IMETHOD GetChecked(bool *aChecked) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChecked(aChecked); } \
374 : NS_SCRIPTABLE NS_IMETHOD SetChecked(bool aChecked) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChecked(aChecked); } \
375 : NS_SCRIPTABLE NS_IMETHOD GetDisabled(bool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
376 : NS_SCRIPTABLE NS_IMETHOD SetDisabled(bool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
377 : NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
378 : NS_SCRIPTABLE NS_IMETHOD GetFormAction(nsAString & aFormAction) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormAction(aFormAction); } \
379 : NS_SCRIPTABLE NS_IMETHOD SetFormAction(const nsAString & aFormAction) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFormAction(aFormAction); } \
380 : NS_SCRIPTABLE NS_IMETHOD GetFormEnctype(nsAString & aFormEnctype) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormEnctype(aFormEnctype); } \
381 : NS_SCRIPTABLE NS_IMETHOD SetFormEnctype(const nsAString & aFormEnctype) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFormEnctype(aFormEnctype); } \
382 : NS_SCRIPTABLE NS_IMETHOD GetFormMethod(nsAString & aFormMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormMethod(aFormMethod); } \
383 : NS_SCRIPTABLE NS_IMETHOD SetFormMethod(const nsAString & aFormMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFormMethod(aFormMethod); } \
384 : NS_SCRIPTABLE NS_IMETHOD GetFormNoValidate(bool *aFormNoValidate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormNoValidate(aFormNoValidate); } \
385 : NS_SCRIPTABLE NS_IMETHOD SetFormNoValidate(bool aFormNoValidate) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFormNoValidate(aFormNoValidate); } \
386 : NS_SCRIPTABLE NS_IMETHOD GetFormTarget(nsAString & aFormTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormTarget(aFormTarget); } \
387 : NS_SCRIPTABLE NS_IMETHOD SetFormTarget(const nsAString & aFormTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFormTarget(aFormTarget); } \
388 : NS_SCRIPTABLE NS_IMETHOD GetFiles(nsIDOMFileList * *aFiles) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFiles(aFiles); } \
389 : NS_SCRIPTABLE NS_IMETHOD GetIndeterminate(bool *aIndeterminate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndeterminate(aIndeterminate); } \
390 : NS_SCRIPTABLE NS_IMETHOD SetIndeterminate(bool aIndeterminate) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIndeterminate(aIndeterminate); } \
391 : NS_SCRIPTABLE NS_IMETHOD GetList(nsIDOMHTMLElement * *aList) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetList(aList); } \
392 : NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLength(aMaxLength); } \
393 : NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxLength(aMaxLength); } \
394 : NS_SCRIPTABLE NS_IMETHOD GetMultiple(bool *aMultiple) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMultiple(aMultiple); } \
395 : NS_SCRIPTABLE NS_IMETHOD SetMultiple(bool aMultiple) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMultiple(aMultiple); } \
396 : NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
397 : NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
398 : NS_SCRIPTABLE NS_IMETHOD GetPattern(nsAString & aPattern) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPattern(aPattern); } \
399 : NS_SCRIPTABLE NS_IMETHOD SetPattern(const nsAString & aPattern) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPattern(aPattern); } \
400 : NS_SCRIPTABLE NS_IMETHOD GetPlaceholder(nsAString & aPlaceholder) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlaceholder(aPlaceholder); } \
401 : NS_SCRIPTABLE NS_IMETHOD SetPlaceholder(const nsAString & aPlaceholder) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPlaceholder(aPlaceholder); } \
402 : NS_SCRIPTABLE NS_IMETHOD GetReadOnly(bool *aReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadOnly(aReadOnly); } \
403 : NS_SCRIPTABLE NS_IMETHOD SetReadOnly(bool aReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReadOnly(aReadOnly); } \
404 : NS_SCRIPTABLE NS_IMETHOD GetRequired(bool *aRequired) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequired(aRequired); } \
405 : NS_SCRIPTABLE NS_IMETHOD SetRequired(bool aRequired) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequired(aRequired); } \
406 : NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlign(aAlign); } \
407 : NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlign(aAlign); } \
408 : NS_SCRIPTABLE NS_IMETHOD GetSize(PRUint32 *aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
409 : NS_SCRIPTABLE NS_IMETHOD SetSize(PRUint32 aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); } \
410 : NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSrc(aSrc); } \
411 : NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSrc(aSrc); } \
412 : NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
413 : NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
414 : NS_SCRIPTABLE NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultValue(aDefaultValue); } \
415 : NS_SCRIPTABLE NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultValue(aDefaultValue); } \
416 : NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
417 : NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
418 : NS_SCRIPTABLE NS_IMETHOD GetWillValidate(bool *aWillValidate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWillValidate(aWillValidate); } \
419 : NS_SCRIPTABLE NS_IMETHOD GetValidity(nsIDOMValidityState * *aValidity) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValidity(aValidity); } \
420 : NS_SCRIPTABLE NS_IMETHOD GetValidationMessage(nsAString & aValidationMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValidationMessage(aValidationMessage); } \
421 : NS_SCRIPTABLE NS_IMETHOD CheckValidity(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckValidity(_retval); } \
422 : NS_SCRIPTABLE NS_IMETHOD SetCustomValidity(const nsAString & error) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCustomValidity(error); } \
423 : NS_SCRIPTABLE NS_IMETHOD Select(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Select(); } \
424 : NS_SCRIPTABLE NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionStart(aSelectionStart); } \
425 : NS_SCRIPTABLE NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionStart(aSelectionStart); } \
426 : NS_SCRIPTABLE NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionEnd(aSelectionEnd); } \
427 : NS_SCRIPTABLE NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionEnd(aSelectionEnd); } \
428 : NS_SCRIPTABLE NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd, const nsAString & direction) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionRange(selectionStart, selectionEnd, direction); } \
429 : NS_SCRIPTABLE NS_IMETHOD GetSelectionDirection(nsAString & aSelectionDirection) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionDirection(aSelectionDirection); } \
430 : NS_SCRIPTABLE NS_IMETHOD SetSelectionDirection(const nsAString & aSelectionDirection) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionDirection(aSelectionDirection); } \
431 : NS_SCRIPTABLE NS_IMETHOD GetUseMap(nsAString & aUseMap) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUseMap(aUseMap); } \
432 : NS_SCRIPTABLE NS_IMETHOD SetUseMap(const nsAString & aUseMap) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUseMap(aUseMap); } \
433 : NS_SCRIPTABLE NS_IMETHOD GetControllers(nsIControllers * *aControllers) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetControllers(aControllers); } \
434 : NS_SCRIPTABLE NS_IMETHOD GetTextLength(PRInt32 *aTextLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextLength(aTextLength); } \
435 : NS_SCRIPTABLE NS_IMETHOD MozGetFileNameArray(PRUint32 *aLength NS_OUTPARAM, PRUnichar * **aFileNames NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozGetFileNameArray(aLength, aFileNames); } \
436 : NS_SCRIPTABLE NS_IMETHOD MozSetFileNameArray(const PRUnichar * *aFileNames, PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozSetFileNameArray(aFileNames, aLength); } \
437 : NS_SCRIPTABLE NS_IMETHOD MozIsTextField(bool aExcludePassword, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozIsTextField(aExcludePassword, _retval); }
438 :
439 : #if 0
440 : /* Use the code below as a template for the implementation class for this interface. */
441 :
442 : /* Header file */
443 : class nsDOMHTMLInputElement : public nsIDOMHTMLInputElement
444 : {
445 : public:
446 : NS_DECL_ISUPPORTS
447 : NS_DECL_NSIDOMHTMLINPUTELEMENT
448 :
449 : nsDOMHTMLInputElement();
450 :
451 : private:
452 : ~nsDOMHTMLInputElement();
453 :
454 : protected:
455 : /* additional members */
456 : };
457 :
458 : /* Implementation file */
459 : NS_IMPL_ISUPPORTS1(nsDOMHTMLInputElement, nsIDOMHTMLInputElement)
460 :
461 : nsDOMHTMLInputElement::nsDOMHTMLInputElement()
462 : {
463 : /* member initializers and constructor code */
464 : }
465 :
466 : nsDOMHTMLInputElement::~nsDOMHTMLInputElement()
467 : {
468 : /* destructor code */
469 : }
470 :
471 : /* attribute DOMString accept; */
472 : NS_IMETHODIMP nsDOMHTMLInputElement::GetAccept(nsAString & aAccept)
473 : {
474 : return NS_ERROR_NOT_IMPLEMENTED;
475 : }
476 : NS_IMETHODIMP nsDOMHTMLInputElement::SetAccept(const nsAString & aAccept)
477 : {
478 : return NS_ERROR_NOT_IMPLEMENTED;
479 : }
480 :
481 : /* attribute DOMString alt; */
482 : NS_IMETHODIMP nsDOMHTMLInputElement::GetAlt(nsAString & aAlt)
483 : {
484 : return NS_ERROR_NOT_IMPLEMENTED;
485 : }
486 : NS_IMETHODIMP nsDOMHTMLInputElement::SetAlt(const nsAString & aAlt)
487 : {
488 : return NS_ERROR_NOT_IMPLEMENTED;
489 : }
490 :
491 : /* attribute DOMString autocomplete; */
492 : NS_IMETHODIMP nsDOMHTMLInputElement::GetAutocomplete(nsAString & aAutocomplete)
493 : {
494 : return NS_ERROR_NOT_IMPLEMENTED;
495 : }
496 : NS_IMETHODIMP nsDOMHTMLInputElement::SetAutocomplete(const nsAString & aAutocomplete)
497 : {
498 : return NS_ERROR_NOT_IMPLEMENTED;
499 : }
500 :
501 : /* attribute boolean autofocus; */
502 : NS_IMETHODIMP nsDOMHTMLInputElement::GetAutofocus(bool *aAutofocus)
503 : {
504 : return NS_ERROR_NOT_IMPLEMENTED;
505 : }
506 : NS_IMETHODIMP nsDOMHTMLInputElement::SetAutofocus(bool aAutofocus)
507 : {
508 : return NS_ERROR_NOT_IMPLEMENTED;
509 : }
510 :
511 : /* attribute boolean defaultChecked; */
512 : NS_IMETHODIMP nsDOMHTMLInputElement::GetDefaultChecked(bool *aDefaultChecked)
513 : {
514 : return NS_ERROR_NOT_IMPLEMENTED;
515 : }
516 : NS_IMETHODIMP nsDOMHTMLInputElement::SetDefaultChecked(bool aDefaultChecked)
517 : {
518 : return NS_ERROR_NOT_IMPLEMENTED;
519 : }
520 :
521 : /* attribute boolean checked; */
522 : NS_IMETHODIMP nsDOMHTMLInputElement::GetChecked(bool *aChecked)
523 : {
524 : return NS_ERROR_NOT_IMPLEMENTED;
525 : }
526 : NS_IMETHODIMP nsDOMHTMLInputElement::SetChecked(bool aChecked)
527 : {
528 : return NS_ERROR_NOT_IMPLEMENTED;
529 : }
530 :
531 : /* attribute boolean disabled; */
532 : NS_IMETHODIMP nsDOMHTMLInputElement::GetDisabled(bool *aDisabled)
533 : {
534 : return NS_ERROR_NOT_IMPLEMENTED;
535 : }
536 : NS_IMETHODIMP nsDOMHTMLInputElement::SetDisabled(bool aDisabled)
537 : {
538 : return NS_ERROR_NOT_IMPLEMENTED;
539 : }
540 :
541 : /* readonly attribute nsIDOMHTMLFormElement form; */
542 : NS_IMETHODIMP nsDOMHTMLInputElement::GetForm(nsIDOMHTMLFormElement * *aForm)
543 : {
544 : return NS_ERROR_NOT_IMPLEMENTED;
545 : }
546 :
547 : /* attribute DOMString formAction; */
548 : NS_IMETHODIMP nsDOMHTMLInputElement::GetFormAction(nsAString & aFormAction)
549 : {
550 : return NS_ERROR_NOT_IMPLEMENTED;
551 : }
552 : NS_IMETHODIMP nsDOMHTMLInputElement::SetFormAction(const nsAString & aFormAction)
553 : {
554 : return NS_ERROR_NOT_IMPLEMENTED;
555 : }
556 :
557 : /* attribute DOMString formEnctype; */
558 : NS_IMETHODIMP nsDOMHTMLInputElement::GetFormEnctype(nsAString & aFormEnctype)
559 : {
560 : return NS_ERROR_NOT_IMPLEMENTED;
561 : }
562 : NS_IMETHODIMP nsDOMHTMLInputElement::SetFormEnctype(const nsAString & aFormEnctype)
563 : {
564 : return NS_ERROR_NOT_IMPLEMENTED;
565 : }
566 :
567 : /* attribute DOMString formMethod; */
568 : NS_IMETHODIMP nsDOMHTMLInputElement::GetFormMethod(nsAString & aFormMethod)
569 : {
570 : return NS_ERROR_NOT_IMPLEMENTED;
571 : }
572 : NS_IMETHODIMP nsDOMHTMLInputElement::SetFormMethod(const nsAString & aFormMethod)
573 : {
574 : return NS_ERROR_NOT_IMPLEMENTED;
575 : }
576 :
577 : /* attribute boolean formNoValidate; */
578 : NS_IMETHODIMP nsDOMHTMLInputElement::GetFormNoValidate(bool *aFormNoValidate)
579 : {
580 : return NS_ERROR_NOT_IMPLEMENTED;
581 : }
582 : NS_IMETHODIMP nsDOMHTMLInputElement::SetFormNoValidate(bool aFormNoValidate)
583 : {
584 : return NS_ERROR_NOT_IMPLEMENTED;
585 : }
586 :
587 : /* attribute DOMString formTarget; */
588 : NS_IMETHODIMP nsDOMHTMLInputElement::GetFormTarget(nsAString & aFormTarget)
589 : {
590 : return NS_ERROR_NOT_IMPLEMENTED;
591 : }
592 : NS_IMETHODIMP nsDOMHTMLInputElement::SetFormTarget(const nsAString & aFormTarget)
593 : {
594 : return NS_ERROR_NOT_IMPLEMENTED;
595 : }
596 :
597 : /* readonly attribute nsIDOMFileList files; */
598 : NS_IMETHODIMP nsDOMHTMLInputElement::GetFiles(nsIDOMFileList * *aFiles)
599 : {
600 : return NS_ERROR_NOT_IMPLEMENTED;
601 : }
602 :
603 : /* attribute boolean indeterminate; */
604 : NS_IMETHODIMP nsDOMHTMLInputElement::GetIndeterminate(bool *aIndeterminate)
605 : {
606 : return NS_ERROR_NOT_IMPLEMENTED;
607 : }
608 : NS_IMETHODIMP nsDOMHTMLInputElement::SetIndeterminate(bool aIndeterminate)
609 : {
610 : return NS_ERROR_NOT_IMPLEMENTED;
611 : }
612 :
613 : /* readonly attribute nsIDOMHTMLElement list; */
614 : NS_IMETHODIMP nsDOMHTMLInputElement::GetList(nsIDOMHTMLElement * *aList)
615 : {
616 : return NS_ERROR_NOT_IMPLEMENTED;
617 : }
618 :
619 : /* attribute long maxLength; */
620 : NS_IMETHODIMP nsDOMHTMLInputElement::GetMaxLength(PRInt32 *aMaxLength)
621 : {
622 : return NS_ERROR_NOT_IMPLEMENTED;
623 : }
624 : NS_IMETHODIMP nsDOMHTMLInputElement::SetMaxLength(PRInt32 aMaxLength)
625 : {
626 : return NS_ERROR_NOT_IMPLEMENTED;
627 : }
628 :
629 : /* attribute boolean multiple; */
630 : NS_IMETHODIMP nsDOMHTMLInputElement::GetMultiple(bool *aMultiple)
631 : {
632 : return NS_ERROR_NOT_IMPLEMENTED;
633 : }
634 : NS_IMETHODIMP nsDOMHTMLInputElement::SetMultiple(bool aMultiple)
635 : {
636 : return NS_ERROR_NOT_IMPLEMENTED;
637 : }
638 :
639 : /* attribute DOMString name; */
640 : NS_IMETHODIMP nsDOMHTMLInputElement::GetName(nsAString & aName)
641 : {
642 : return NS_ERROR_NOT_IMPLEMENTED;
643 : }
644 : NS_IMETHODIMP nsDOMHTMLInputElement::SetName(const nsAString & aName)
645 : {
646 : return NS_ERROR_NOT_IMPLEMENTED;
647 : }
648 :
649 : /* attribute DOMString pattern; */
650 : NS_IMETHODIMP nsDOMHTMLInputElement::GetPattern(nsAString & aPattern)
651 : {
652 : return NS_ERROR_NOT_IMPLEMENTED;
653 : }
654 : NS_IMETHODIMP nsDOMHTMLInputElement::SetPattern(const nsAString & aPattern)
655 : {
656 : return NS_ERROR_NOT_IMPLEMENTED;
657 : }
658 :
659 : /* attribute DOMString placeholder; */
660 : NS_IMETHODIMP nsDOMHTMLInputElement::GetPlaceholder(nsAString & aPlaceholder)
661 : {
662 : return NS_ERROR_NOT_IMPLEMENTED;
663 : }
664 : NS_IMETHODIMP nsDOMHTMLInputElement::SetPlaceholder(const nsAString & aPlaceholder)
665 : {
666 : return NS_ERROR_NOT_IMPLEMENTED;
667 : }
668 :
669 : /* attribute boolean readOnly; */
670 : NS_IMETHODIMP nsDOMHTMLInputElement::GetReadOnly(bool *aReadOnly)
671 : {
672 : return NS_ERROR_NOT_IMPLEMENTED;
673 : }
674 : NS_IMETHODIMP nsDOMHTMLInputElement::SetReadOnly(bool aReadOnly)
675 : {
676 : return NS_ERROR_NOT_IMPLEMENTED;
677 : }
678 :
679 : /* attribute boolean required; */
680 : NS_IMETHODIMP nsDOMHTMLInputElement::GetRequired(bool *aRequired)
681 : {
682 : return NS_ERROR_NOT_IMPLEMENTED;
683 : }
684 : NS_IMETHODIMP nsDOMHTMLInputElement::SetRequired(bool aRequired)
685 : {
686 : return NS_ERROR_NOT_IMPLEMENTED;
687 : }
688 :
689 : /* attribute DOMString align; */
690 : NS_IMETHODIMP nsDOMHTMLInputElement::GetAlign(nsAString & aAlign)
691 : {
692 : return NS_ERROR_NOT_IMPLEMENTED;
693 : }
694 : NS_IMETHODIMP nsDOMHTMLInputElement::SetAlign(const nsAString & aAlign)
695 : {
696 : return NS_ERROR_NOT_IMPLEMENTED;
697 : }
698 :
699 : /* attribute unsigned long size; */
700 : NS_IMETHODIMP nsDOMHTMLInputElement::GetSize(PRUint32 *aSize)
701 : {
702 : return NS_ERROR_NOT_IMPLEMENTED;
703 : }
704 : NS_IMETHODIMP nsDOMHTMLInputElement::SetSize(PRUint32 aSize)
705 : {
706 : return NS_ERROR_NOT_IMPLEMENTED;
707 : }
708 :
709 : /* attribute DOMString src; */
710 : NS_IMETHODIMP nsDOMHTMLInputElement::GetSrc(nsAString & aSrc)
711 : {
712 : return NS_ERROR_NOT_IMPLEMENTED;
713 : }
714 : NS_IMETHODIMP nsDOMHTMLInputElement::SetSrc(const nsAString & aSrc)
715 : {
716 : return NS_ERROR_NOT_IMPLEMENTED;
717 : }
718 :
719 : /* attribute DOMString type; */
720 : NS_IMETHODIMP nsDOMHTMLInputElement::GetType(nsAString & aType)
721 : {
722 : return NS_ERROR_NOT_IMPLEMENTED;
723 : }
724 : NS_IMETHODIMP nsDOMHTMLInputElement::SetType(const nsAString & aType)
725 : {
726 : return NS_ERROR_NOT_IMPLEMENTED;
727 : }
728 :
729 : /* attribute DOMString defaultValue; */
730 : NS_IMETHODIMP nsDOMHTMLInputElement::GetDefaultValue(nsAString & aDefaultValue)
731 : {
732 : return NS_ERROR_NOT_IMPLEMENTED;
733 : }
734 : NS_IMETHODIMP nsDOMHTMLInputElement::SetDefaultValue(const nsAString & aDefaultValue)
735 : {
736 : return NS_ERROR_NOT_IMPLEMENTED;
737 : }
738 :
739 : /* attribute DOMString value; */
740 : NS_IMETHODIMP nsDOMHTMLInputElement::GetValue(nsAString & aValue)
741 : {
742 : return NS_ERROR_NOT_IMPLEMENTED;
743 : }
744 : NS_IMETHODIMP nsDOMHTMLInputElement::SetValue(const nsAString & aValue)
745 : {
746 : return NS_ERROR_NOT_IMPLEMENTED;
747 : }
748 :
749 : /* readonly attribute boolean willValidate; */
750 : NS_IMETHODIMP nsDOMHTMLInputElement::GetWillValidate(bool *aWillValidate)
751 : {
752 : return NS_ERROR_NOT_IMPLEMENTED;
753 : }
754 :
755 : /* readonly attribute nsIDOMValidityState validity; */
756 : NS_IMETHODIMP nsDOMHTMLInputElement::GetValidity(nsIDOMValidityState * *aValidity)
757 : {
758 : return NS_ERROR_NOT_IMPLEMENTED;
759 : }
760 :
761 : /* readonly attribute DOMString validationMessage; */
762 : NS_IMETHODIMP nsDOMHTMLInputElement::GetValidationMessage(nsAString & aValidationMessage)
763 : {
764 : return NS_ERROR_NOT_IMPLEMENTED;
765 : }
766 :
767 : /* boolean checkValidity (); */
768 : NS_IMETHODIMP nsDOMHTMLInputElement::CheckValidity(bool *_retval NS_OUTPARAM)
769 : {
770 : return NS_ERROR_NOT_IMPLEMENTED;
771 : }
772 :
773 : /* void setCustomValidity (in DOMString error); */
774 : NS_IMETHODIMP nsDOMHTMLInputElement::SetCustomValidity(const nsAString & error)
775 : {
776 : return NS_ERROR_NOT_IMPLEMENTED;
777 : }
778 :
779 : /* void select (); */
780 : NS_IMETHODIMP nsDOMHTMLInputElement::Select()
781 : {
782 : return NS_ERROR_NOT_IMPLEMENTED;
783 : }
784 :
785 : /* attribute long selectionStart; */
786 : NS_IMETHODIMP nsDOMHTMLInputElement::GetSelectionStart(PRInt32 *aSelectionStart)
787 : {
788 : return NS_ERROR_NOT_IMPLEMENTED;
789 : }
790 : NS_IMETHODIMP nsDOMHTMLInputElement::SetSelectionStart(PRInt32 aSelectionStart)
791 : {
792 : return NS_ERROR_NOT_IMPLEMENTED;
793 : }
794 :
795 : /* attribute long selectionEnd; */
796 : NS_IMETHODIMP nsDOMHTMLInputElement::GetSelectionEnd(PRInt32 *aSelectionEnd)
797 : {
798 : return NS_ERROR_NOT_IMPLEMENTED;
799 : }
800 : NS_IMETHODIMP nsDOMHTMLInputElement::SetSelectionEnd(PRInt32 aSelectionEnd)
801 : {
802 : return NS_ERROR_NOT_IMPLEMENTED;
803 : }
804 :
805 : /* void setSelectionRange (in long selectionStart, in long selectionEnd, [optional] in DOMString direction); */
806 : NS_IMETHODIMP nsDOMHTMLInputElement::SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd, const nsAString & direction)
807 : {
808 : return NS_ERROR_NOT_IMPLEMENTED;
809 : }
810 :
811 : /* attribute DOMString selectionDirection; */
812 : NS_IMETHODIMP nsDOMHTMLInputElement::GetSelectionDirection(nsAString & aSelectionDirection)
813 : {
814 : return NS_ERROR_NOT_IMPLEMENTED;
815 : }
816 : NS_IMETHODIMP nsDOMHTMLInputElement::SetSelectionDirection(const nsAString & aSelectionDirection)
817 : {
818 : return NS_ERROR_NOT_IMPLEMENTED;
819 : }
820 :
821 : /* attribute DOMString useMap; */
822 : NS_IMETHODIMP nsDOMHTMLInputElement::GetUseMap(nsAString & aUseMap)
823 : {
824 : return NS_ERROR_NOT_IMPLEMENTED;
825 : }
826 : NS_IMETHODIMP nsDOMHTMLInputElement::SetUseMap(const nsAString & aUseMap)
827 : {
828 : return NS_ERROR_NOT_IMPLEMENTED;
829 : }
830 :
831 : /* readonly attribute nsIControllers controllers; */
832 : NS_IMETHODIMP nsDOMHTMLInputElement::GetControllers(nsIControllers * *aControllers)
833 : {
834 : return NS_ERROR_NOT_IMPLEMENTED;
835 : }
836 :
837 : /* readonly attribute long textLength; */
838 : NS_IMETHODIMP nsDOMHTMLInputElement::GetTextLength(PRInt32 *aTextLength)
839 : {
840 : return NS_ERROR_NOT_IMPLEMENTED;
841 : }
842 :
843 : /* void mozGetFileNameArray ([optional] out unsigned long aLength, [array, size_is (aLength), retval] out wstring aFileNames); */
844 : NS_IMETHODIMP nsDOMHTMLInputElement::MozGetFileNameArray(PRUint32 *aLength NS_OUTPARAM, PRUnichar * **aFileNames NS_OUTPARAM)
845 : {
846 : return NS_ERROR_NOT_IMPLEMENTED;
847 : }
848 :
849 : /* void mozSetFileNameArray ([array, size_is (aLength)] in wstring aFileNames, in unsigned long aLength); */
850 : NS_IMETHODIMP nsDOMHTMLInputElement::MozSetFileNameArray(const PRUnichar * *aFileNames, PRUint32 aLength)
851 : {
852 : return NS_ERROR_NOT_IMPLEMENTED;
853 : }
854 :
855 : /* boolean mozIsTextField (in boolean aExcludePassword); */
856 : NS_IMETHODIMP nsDOMHTMLInputElement::MozIsTextField(bool aExcludePassword, bool *_retval NS_OUTPARAM)
857 : {
858 : return NS_ERROR_NOT_IMPLEMENTED;
859 : }
860 :
861 : /* End of implementation class template. */
862 : #endif
863 :
864 :
865 : #endif /* __gen_nsIDOMHTMLInputElement_h__ */
|