1/*
2 * This file is part of the WebKit open source project.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20#if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT)
21#error "Only <webkitdom/webkitdom.h> can be included directly."
22#endif
23
24#ifndef WebKitDOMHTMLInputElement_h
25#define WebKitDOMHTMLInputElement_h
26
27#include <glib-object.h>
28#include <webkitdom/WebKitDOMHTMLElement.h>
29#include <webkitdom/webkitdomdefines.h>
30
31G_BEGIN_DECLS
32
33#define WEBKIT_DOM_TYPE_HTML_INPUT_ELEMENT (webkit_dom_html_input_element_get_type())
34#define WEBKIT_DOM_HTML_INPUT_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_HTML_INPUT_ELEMENT, WebKitDOMHTMLInputElement))
35#define WEBKIT_DOM_HTML_INPUT_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_HTML_INPUT_ELEMENT, WebKitDOMHTMLInputElementClass)
36#define WEBKIT_DOM_IS_HTML_INPUT_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_HTML_INPUT_ELEMENT))
37#define WEBKIT_DOM_IS_HTML_INPUT_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_DOM_TYPE_HTML_INPUT_ELEMENT))
38#define WEBKIT_DOM_HTML_INPUT_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_DOM_TYPE_HTML_INPUT_ELEMENT, WebKitDOMHTMLInputElementClass))
39
40struct _WebKitDOMHTMLInputElement {
41 WebKitDOMHTMLElement parent_instance;
42};
43
44struct _WebKitDOMHTMLInputElementClass {
45 WebKitDOMHTMLElementClass parent_class;
46};
47
48WEBKIT_DEPRECATED GType
49webkit_dom_html_input_element_get_type(void);
50
51/**
52 * webkit_dom_html_input_element_select:
53 * @self: A #WebKitDOMHTMLInputElement
54 *
55 *
56 * Deprecated: 2.22: Use JavaScriptCore API instead
57**/
58WEBKIT_DEPRECATED void
59webkit_dom_html_input_element_select(WebKitDOMHTMLInputElement* self);
60
61/**
62 * webkit_dom_html_input_element_get_accept:
63 * @self: A #WebKitDOMHTMLInputElement
64 *
65 * Returns: A #gchar
66 *
67 * Deprecated: 2.22: Use JavaScriptCore API instead
68**/
69WEBKIT_DEPRECATED gchar*
70webkit_dom_html_input_element_get_accept(WebKitDOMHTMLInputElement* self);
71
72/**
73 * webkit_dom_html_input_element_set_accept:
74 * @self: A #WebKitDOMHTMLInputElement
75 * @value: A #gchar
76 *
77 *
78 * Deprecated: 2.22: Use JavaScriptCore API instead
79**/
80WEBKIT_DEPRECATED void
81webkit_dom_html_input_element_set_accept(WebKitDOMHTMLInputElement* self, const gchar* value);
82
83/**
84 * webkit_dom_html_input_element_get_alt:
85 * @self: A #WebKitDOMHTMLInputElement
86 *
87 * Returns: A #gchar
88 *
89 * Deprecated: 2.22: Use JavaScriptCore API instead
90**/
91WEBKIT_DEPRECATED gchar*
92webkit_dom_html_input_element_get_alt(WebKitDOMHTMLInputElement* self);
93
94/**
95 * webkit_dom_html_input_element_set_alt:
96 * @self: A #WebKitDOMHTMLInputElement
97 * @value: A #gchar
98 *
99 *
100 * Deprecated: 2.22: Use JavaScriptCore API instead
101**/
102WEBKIT_DEPRECATED void
103webkit_dom_html_input_element_set_alt(WebKitDOMHTMLInputElement* self, const gchar* value);
104
105/**
106 * webkit_dom_html_input_element_get_autofocus:
107 * @self: A #WebKitDOMHTMLInputElement
108 *
109 * Returns: A #gboolean
110 *
111 * Deprecated: 2.22: Use JavaScriptCore API instead
112**/
113WEBKIT_DEPRECATED gboolean
114webkit_dom_html_input_element_get_autofocus(WebKitDOMHTMLInputElement* self);
115
116/**
117 * webkit_dom_html_input_element_set_autofocus:
118 * @self: A #WebKitDOMHTMLInputElement
119 * @value: A #gboolean
120 *
121 *
122 * Deprecated: 2.22: Use JavaScriptCore API instead
123**/
124WEBKIT_DEPRECATED void
125webkit_dom_html_input_element_set_autofocus(WebKitDOMHTMLInputElement* self, gboolean value);
126
127/**
128 * webkit_dom_html_input_element_get_default_checked:
129 * @self: A #WebKitDOMHTMLInputElement
130 *
131 * Returns: A #gboolean
132 *
133 * Deprecated: 2.22: Use JavaScriptCore API instead
134**/
135WEBKIT_DEPRECATED gboolean
136webkit_dom_html_input_element_get_default_checked(WebKitDOMHTMLInputElement* self);
137
138/**
139 * webkit_dom_html_input_element_set_default_checked:
140 * @self: A #WebKitDOMHTMLInputElement
141 * @value: A #gboolean
142 *
143 * Since: 2.16
144 *
145 * Deprecated: 2.22: Use JavaScriptCore API instead
146**/
147WEBKIT_DEPRECATED void
148webkit_dom_html_input_element_set_default_checked(WebKitDOMHTMLInputElement* self, gboolean value);
149
150/**
151 * webkit_dom_html_input_element_get_checked:
152 * @self: A #WebKitDOMHTMLInputElement
153 *
154 * Returns: A #gboolean
155 *
156 * Deprecated: 2.22: Use JavaScriptCore API instead
157**/
158WEBKIT_DEPRECATED gboolean
159webkit_dom_html_input_element_get_checked(WebKitDOMHTMLInputElement* self);
160
161/**
162 * webkit_dom_html_input_element_set_checked:
163 * @self: A #WebKitDOMHTMLInputElement
164 * @value: A #gboolean
165 *
166 *
167 * Deprecated: 2.22: Use JavaScriptCore API instead
168**/
169WEBKIT_DEPRECATED void
170webkit_dom_html_input_element_set_checked(WebKitDOMHTMLInputElement* self, gboolean value);
171
172/**
173 * webkit_dom_html_input_element_get_disabled:
174 * @self: A #WebKitDOMHTMLInputElement
175 *
176 * Returns: A #gboolean
177 *
178 * Deprecated: 2.22: Use JavaScriptCore API instead
179**/
180WEBKIT_DEPRECATED gboolean
181webkit_dom_html_input_element_get_disabled(WebKitDOMHTMLInputElement* self);
182
183/**
184 * webkit_dom_html_input_element_set_disabled:
185 * @self: A #WebKitDOMHTMLInputElement
186 * @value: A #gboolean
187 *
188 *
189 * Deprecated: 2.22: Use JavaScriptCore API instead
190**/
191WEBKIT_DEPRECATED void
192webkit_dom_html_input_element_set_disabled(WebKitDOMHTMLInputElement* self, gboolean value);
193
194/**
195 * webkit_dom_html_input_element_get_form:
196 * @self: A #WebKitDOMHTMLInputElement
197 *
198 * Returns: (transfer none): A #WebKitDOMHTMLFormElement
199 *
200 * Deprecated: 2.22: Use JavaScriptCore API instead
201**/
202WEBKIT_DEPRECATED WebKitDOMHTMLFormElement*
203webkit_dom_html_input_element_get_form(WebKitDOMHTMLInputElement* self);
204
205/**
206 * webkit_dom_html_input_element_get_files:
207 * @self: A #WebKitDOMHTMLInputElement
208 *
209 * Returns: (transfer full): A #WebKitDOMFileList
210 *
211 * Deprecated: 2.22: Use JavaScriptCore API instead
212**/
213WEBKIT_DEPRECATED WebKitDOMFileList*
214webkit_dom_html_input_element_get_files(WebKitDOMHTMLInputElement* self);
215
216/**
217 * webkit_dom_html_input_element_set_files:
218 * @self: A #WebKitDOMHTMLInputElement
219 * @value: A #WebKitDOMFileList
220 *
221 *
222 * Deprecated: 2.22: Use JavaScriptCore API instead
223**/
224WEBKIT_DEPRECATED void
225webkit_dom_html_input_element_set_files(WebKitDOMHTMLInputElement* self, WebKitDOMFileList* value);
226
227/**
228 * webkit_dom_html_input_element_get_height:
229 * @self: A #WebKitDOMHTMLInputElement
230 *
231 * Returns: A #gulong
232 *
233 * Deprecated: 2.22: Use JavaScriptCore API instead
234**/
235WEBKIT_DEPRECATED gulong
236webkit_dom_html_input_element_get_height(WebKitDOMHTMLInputElement* self);
237
238/**
239 * webkit_dom_html_input_element_set_height:
240 * @self: A #WebKitDOMHTMLInputElement
241 * @value: A #gulong
242 *
243 *
244 * Deprecated: 2.22: Use JavaScriptCore API instead
245**/
246WEBKIT_DEPRECATED void
247webkit_dom_html_input_element_set_height(WebKitDOMHTMLInputElement* self, gulong value);
248
249/**
250 * webkit_dom_html_input_element_get_indeterminate:
251 * @self: A #WebKitDOMHTMLInputElement
252 *
253 * Returns: A #gboolean
254 *
255 * Deprecated: 2.22: Use JavaScriptCore API instead
256**/
257WEBKIT_DEPRECATED gboolean
258webkit_dom_html_input_element_get_indeterminate(WebKitDOMHTMLInputElement* self);
259
260/**
261 * webkit_dom_html_input_element_set_indeterminate:
262 * @self: A #WebKitDOMHTMLInputElement
263 * @value: A #gboolean
264 *
265 *
266 * Deprecated: 2.22: Use JavaScriptCore API instead
267**/
268WEBKIT_DEPRECATED void
269webkit_dom_html_input_element_set_indeterminate(WebKitDOMHTMLInputElement* self, gboolean value);
270
271/**
272 * webkit_dom_html_input_element_get_max_length:
273 * @self: A #WebKitDOMHTMLInputElement
274 *
275 * Returns: A #glong
276 *
277 * Deprecated: 2.22: Use JavaScriptCore API instead
278**/
279WEBKIT_DEPRECATED glong
280webkit_dom_html_input_element_get_max_length(WebKitDOMHTMLInputElement* self);
281
282/**
283 * webkit_dom_html_input_element_set_max_length:
284 * @self: A #WebKitDOMHTMLInputElement
285 * @value: A #glong
286 * @error: #GError
287 *
288 *
289 * Deprecated: 2.22: Use JavaScriptCore API instead
290**/
291WEBKIT_DEPRECATED void
292webkit_dom_html_input_element_set_max_length(WebKitDOMHTMLInputElement* self, glong value, GError** error);
293
294/**
295 * webkit_dom_html_input_element_get_multiple:
296 * @self: A #WebKitDOMHTMLInputElement
297 *
298 * Returns: A #gboolean
299 *
300 * Deprecated: 2.22: Use JavaScriptCore API instead
301**/
302WEBKIT_DEPRECATED gboolean
303webkit_dom_html_input_element_get_multiple(WebKitDOMHTMLInputElement* self);
304
305/**
306 * webkit_dom_html_input_element_set_multiple:
307 * @self: A #WebKitDOMHTMLInputElement
308 * @value: A #gboolean
309 *
310 *
311 * Deprecated: 2.22: Use JavaScriptCore API instead
312**/
313WEBKIT_DEPRECATED void
314webkit_dom_html_input_element_set_multiple(WebKitDOMHTMLInputElement* self, gboolean value);
315
316/**
317 * webkit_dom_html_input_element_get_name:
318 * @self: A #WebKitDOMHTMLInputElement
319 *
320 * Returns: A #gchar
321 *
322 * Deprecated: 2.22: Use JavaScriptCore API instead
323**/
324WEBKIT_DEPRECATED gchar*
325webkit_dom_html_input_element_get_name(WebKitDOMHTMLInputElement* self);
326
327/**
328 * webkit_dom_html_input_element_set_name:
329 * @self: A #WebKitDOMHTMLInputElement
330 * @value: A #gchar
331 *
332 *
333 * Deprecated: 2.22: Use JavaScriptCore API instead
334**/
335WEBKIT_DEPRECATED void
336webkit_dom_html_input_element_set_name(WebKitDOMHTMLInputElement* self, const gchar* value);
337
338/**
339 * webkit_dom_html_input_element_get_read_only:
340 * @self: A #WebKitDOMHTMLInputElement
341 *
342 * Returns: A #gboolean
343 *
344 * Since: 2.16
345 *
346 * Deprecated: 2.22: Use JavaScriptCore API instead
347**/
348WEBKIT_DEPRECATED gboolean
349webkit_dom_html_input_element_get_read_only(WebKitDOMHTMLInputElement* self);
350
351/**
352 * webkit_dom_html_input_element_set_read_only:
353 * @self: A #WebKitDOMHTMLInputElement
354 * @value: A #gboolean
355 *
356 *
357 * Deprecated: 2.22: Use JavaScriptCore API instead
358**/
359WEBKIT_DEPRECATED void
360webkit_dom_html_input_element_set_read_only(WebKitDOMHTMLInputElement* self, gboolean value);
361
362/**
363 * webkit_dom_html_input_element_get_size:
364 * @self: A #WebKitDOMHTMLInputElement
365 *
366 * Returns: A #gulong
367 *
368 * Deprecated: 2.22: Use JavaScriptCore API instead
369**/
370WEBKIT_DEPRECATED gulong
371webkit_dom_html_input_element_get_size(WebKitDOMHTMLInputElement* self);
372
373/**
374 * webkit_dom_html_input_element_set_size:
375 * @self: A #WebKitDOMHTMLInputElement
376 * @value: A #gulong
377 * @error: #GError
378 *
379 *
380 * Deprecated: 2.22: Use JavaScriptCore API instead
381**/
382WEBKIT_DEPRECATED void
383webkit_dom_html_input_element_set_size(WebKitDOMHTMLInputElement* self, gulong value, GError** error);
384
385/**
386 * webkit_dom_html_input_element_get_src:
387 * @self: A #WebKitDOMHTMLInputElement
388 *
389 * Returns: A #gchar
390 *
391 * Deprecated: 2.22: Use JavaScriptCore API instead
392**/
393WEBKIT_DEPRECATED gchar*
394webkit_dom_html_input_element_get_src(WebKitDOMHTMLInputElement* self);
395
396/**
397 * webkit_dom_html_input_element_set_src:
398 * @self: A #WebKitDOMHTMLInputElement
399 * @value: A #gchar
400 *
401 *
402 * Deprecated: 2.22: Use JavaScriptCore API instead
403**/
404WEBKIT_DEPRECATED void
405webkit_dom_html_input_element_set_src(WebKitDOMHTMLInputElement* self, const gchar* value);
406
407/**
408 * webkit_dom_html_input_element_get_input_type:
409 * @self: A #WebKitDOMHTMLInputElement
410 *
411 * Returns: A #gchar
412 *
413 * Deprecated: 2.22: Use JavaScriptCore API instead
414**/
415WEBKIT_DEPRECATED gchar*
416webkit_dom_html_input_element_get_input_type(WebKitDOMHTMLInputElement* self);
417
418/**
419 * webkit_dom_html_input_element_set_input_type:
420 * @self: A #WebKitDOMHTMLInputElement
421 * @value: A #gchar
422 *
423 *
424 * Deprecated: 2.22: Use JavaScriptCore API instead
425**/
426WEBKIT_DEPRECATED void
427webkit_dom_html_input_element_set_input_type(WebKitDOMHTMLInputElement* self, const gchar* value);
428
429/**
430 * webkit_dom_html_input_element_get_default_value:
431 * @self: A #WebKitDOMHTMLInputElement
432 *
433 * Returns: A #gchar
434 *
435 * Deprecated: 2.22: Use JavaScriptCore API instead
436**/
437WEBKIT_DEPRECATED gchar*
438webkit_dom_html_input_element_get_default_value(WebKitDOMHTMLInputElement* self);
439
440/**
441 * webkit_dom_html_input_element_set_default_value:
442 * @self: A #WebKitDOMHTMLInputElement
443 * @value: A #gchar
444 *
445 *
446 * Deprecated: 2.22: Use JavaScriptCore API instead
447**/
448WEBKIT_DEPRECATED void
449webkit_dom_html_input_element_set_default_value(WebKitDOMHTMLInputElement* self, const gchar* value);
450
451/**
452 * webkit_dom_html_input_element_get_value:
453 * @self: A #WebKitDOMHTMLInputElement
454 *
455 * Returns: A #gchar
456 *
457 * Deprecated: 2.22: Use JavaScriptCore API instead
458**/
459WEBKIT_DEPRECATED gchar*
460webkit_dom_html_input_element_get_value(WebKitDOMHTMLInputElement* self);
461
462/**
463 * webkit_dom_html_input_element_set_value:
464 * @self: A #WebKitDOMHTMLInputElement
465 * @value: A #gchar
466 *
467 *
468 * Deprecated: 2.22: Use JavaScriptCore API instead
469**/
470WEBKIT_DEPRECATED void
471webkit_dom_html_input_element_set_value(WebKitDOMHTMLInputElement* self, const gchar* value);
472
473/**
474 * webkit_dom_html_input_element_get_width:
475 * @self: A #WebKitDOMHTMLInputElement
476 *
477 * Returns: A #gulong
478 *
479 * Deprecated: 2.22: Use JavaScriptCore API instead
480**/
481WEBKIT_DEPRECATED gulong
482webkit_dom_html_input_element_get_width(WebKitDOMHTMLInputElement* self);
483
484/**
485 * webkit_dom_html_input_element_set_width:
486 * @self: A #WebKitDOMHTMLInputElement
487 * @value: A #gulong
488 *
489 *
490 * Deprecated: 2.22: Use JavaScriptCore API instead
491**/
492WEBKIT_DEPRECATED void
493webkit_dom_html_input_element_set_width(WebKitDOMHTMLInputElement* self, gulong value);
494
495/**
496 * webkit_dom_html_input_element_get_will_validate:
497 * @self: A #WebKitDOMHTMLInputElement
498 *
499 * Returns: A #gboolean
500 *
501 * Deprecated: 2.22: Use JavaScriptCore API instead
502**/
503WEBKIT_DEPRECATED gboolean
504webkit_dom_html_input_element_get_will_validate(WebKitDOMHTMLInputElement* self);
505
506/**
507 * webkit_dom_html_input_element_get_align:
508 * @self: A #WebKitDOMHTMLInputElement
509 *
510 * Returns: A #gchar
511 *
512 * Deprecated: 2.22: Use JavaScriptCore API instead
513**/
514WEBKIT_DEPRECATED gchar*
515webkit_dom_html_input_element_get_align(WebKitDOMHTMLInputElement* self);
516
517/**
518 * webkit_dom_html_input_element_set_align:
519 * @self: A #WebKitDOMHTMLInputElement
520 * @value: A #gchar
521 *
522 *
523 * Deprecated: 2.22: Use JavaScriptCore API instead
524**/
525WEBKIT_DEPRECATED void
526webkit_dom_html_input_element_set_align(WebKitDOMHTMLInputElement* self, const gchar* value);
527
528/**
529 * webkit_dom_html_input_element_get_use_map:
530 * @self: A #WebKitDOMHTMLInputElement
531 *
532 * Returns: A #gchar
533 *
534 * Deprecated: 2.22: Use JavaScriptCore API instead
535**/
536WEBKIT_DEPRECATED gchar*
537webkit_dom_html_input_element_get_use_map(WebKitDOMHTMLInputElement* self);
538
539/**
540 * webkit_dom_html_input_element_set_use_map:
541 * @self: A #WebKitDOMHTMLInputElement
542 * @value: A #gchar
543 *
544 *
545 * Deprecated: 2.22: Use JavaScriptCore API instead
546**/
547WEBKIT_DEPRECATED void
548webkit_dom_html_input_element_set_use_map(WebKitDOMHTMLInputElement* self, const gchar* value);
549
550/**
551 * webkit_dom_html_input_element_get_capture_type:
552 * @self: A #WebKitDOMHTMLInputElement
553 *
554 * Returns: A #gchar
555 *
556 * Since: 2.14
557 *
558 * Deprecated: 2.22: Use JavaScriptCore API instead
559**/
560WEBKIT_DEPRECATED gchar*
561webkit_dom_html_input_element_get_capture_type(WebKitDOMHTMLInputElement* self);
562
563/**
564 * webkit_dom_html_input_element_set_capture_type:
565 * @self: A #WebKitDOMHTMLInputElement
566 * @value: A #gchar
567 *
568 * Since: 2.16
569 *
570 * Deprecated: 2.22: Use JavaScriptCore API instead
571**/
572WEBKIT_DEPRECATED void
573webkit_dom_html_input_element_set_capture_type(WebKitDOMHTMLInputElement* self, const gchar* value);
574
575/**
576 * webkit_dom_html_input_element_is_edited:
577 * @input: A #WebKitDOMHTMLInputElement
578 *
579 * Returns: A #gboolean
580 *
581 * Deprecated: 2.22: Use webkit_dom_element_html_input_element_is_user_edited() instead.
582 */
583WEBKIT_DEPRECATED_FOR(webkit_dom_element_html_input_element_is_user_edited) gboolean
584webkit_dom_html_input_element_is_edited(WebKitDOMHTMLInputElement* input);
585
586/**
587 * webkit_dom_html_input_element_get_auto_filled:
588 * @self: A #WebKitDOMHTMLInputElement
589 *
590 * Returns: A #gboolean
591 *
592 * Since: 2.16
593 *
594 * Deprecated: 2.22: Use webkit_dom_element_html_input_element_get_auto_filled() instead.
595 */
596WEBKIT_DEPRECATED_FOR(webkit_dom_element_html_input_element_get_auto_filled) gboolean
597webkit_dom_html_input_element_get_auto_filled(WebKitDOMHTMLInputElement* self);
598
599/**
600 * webkit_dom_html_input_element_set_auto_filled:
601 * @self: A #WebKitDOMHTMLInputElement
602 * @value: A #gboolean
603 *
604 * Since: 2.16
605 *
606 * Deprecated: 2.22: Use webkit_dom_element_html_input_element_set_auto_filled() instead.
607 */
608WEBKIT_DEPRECATED_FOR(webkit_dom_element_html_input_element_set_auto_filled) void
609webkit_dom_html_input_element_set_auto_filled(WebKitDOMHTMLInputElement* self, gboolean value);
610
611/**
612 * webkit_dom_html_input_element_set_editing_value:
613 * @self: A #WebKitDOMHTMLInputElement
614 * @value: A #gchar
615 *
616 * Since: 2.16
617 *
618 * Deprecated: 2.22: Use webkit_dom_element_html_input_element_set_editing_value() instead.
619 */
620WEBKIT_DEPRECATED_FOR(webkit_dom_element_html_input_element_set_editing_value) void
621webkit_dom_html_input_element_set_editing_value(WebKitDOMHTMLInputElement* self, const gchar* value);
622
623G_END_DECLS
624
625#endif /* WebKitDOMHTMLInputElement_h */
626