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 WebKitDOMHTMLSelectElement_h
25#define WebKitDOMHTMLSelectElement_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_SELECT_ELEMENT (webkit_dom_html_select_element_get_type())
34#define WEBKIT_DOM_HTML_SELECT_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_HTML_SELECT_ELEMENT, WebKitDOMHTMLSelectElement))
35#define WEBKIT_DOM_HTML_SELECT_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_HTML_SELECT_ELEMENT, WebKitDOMHTMLSelectElementClass)
36#define WEBKIT_DOM_IS_HTML_SELECT_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_HTML_SELECT_ELEMENT))
37#define WEBKIT_DOM_IS_HTML_SELECT_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_DOM_TYPE_HTML_SELECT_ELEMENT))
38#define WEBKIT_DOM_HTML_SELECT_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_DOM_TYPE_HTML_SELECT_ELEMENT, WebKitDOMHTMLSelectElementClass))
39
40struct _WebKitDOMHTMLSelectElement {
41 WebKitDOMHTMLElement parent_instance;
42};
43
44struct _WebKitDOMHTMLSelectElementClass {
45 WebKitDOMHTMLElementClass parent_class;
46};
47
48WEBKIT_DEPRECATED GType
49webkit_dom_html_select_element_get_type(void);
50
51/**
52 * webkit_dom_html_select_element_item:
53 * @self: A #WebKitDOMHTMLSelectElement
54 * @index: A #gulong
55 *
56 * Returns: (transfer none): A #WebKitDOMNode
57 *
58 * Deprecated: 2.22: Use JavaScriptCore API instead
59**/
60WEBKIT_DEPRECATED WebKitDOMNode*
61webkit_dom_html_select_element_item(WebKitDOMHTMLSelectElement* self, gulong index);
62
63/**
64 * webkit_dom_html_select_element_named_item:
65 * @self: A #WebKitDOMHTMLSelectElement
66 * @name: A #gchar
67 *
68 * Returns: (transfer none): A #WebKitDOMNode
69 *
70 * Deprecated: 2.22: Use JavaScriptCore API instead
71**/
72WEBKIT_DEPRECATED WebKitDOMNode*
73webkit_dom_html_select_element_named_item(WebKitDOMHTMLSelectElement* self, const gchar* name);
74
75/**
76 * webkit_dom_html_select_element_add:
77 * @self: A #WebKitDOMHTMLSelectElement
78 * @element: A #WebKitDOMHTMLElement
79 * @before: A #WebKitDOMHTMLElement
80 * @error: #GError
81 *
82 *
83 * Deprecated: 2.22: Use JavaScriptCore API instead
84**/
85WEBKIT_DEPRECATED void
86webkit_dom_html_select_element_add(WebKitDOMHTMLSelectElement* self, WebKitDOMHTMLElement* element, WebKitDOMHTMLElement* before, GError** error);
87
88/**
89 * webkit_dom_html_select_element_remove:
90 * @self: A #WebKitDOMHTMLSelectElement
91 * @index: A #glong
92 *
93 *
94 * Deprecated: 2.22: Use JavaScriptCore API instead
95**/
96WEBKIT_DEPRECATED void
97webkit_dom_html_select_element_remove(WebKitDOMHTMLSelectElement* self, glong index);
98
99/**
100 * webkit_dom_html_select_element_get_autofocus:
101 * @self: A #WebKitDOMHTMLSelectElement
102 *
103 * Returns: A #gboolean
104 *
105 * Deprecated: 2.22: Use JavaScriptCore API instead
106**/
107WEBKIT_DEPRECATED gboolean
108webkit_dom_html_select_element_get_autofocus(WebKitDOMHTMLSelectElement* self);
109
110/**
111 * webkit_dom_html_select_element_set_autofocus:
112 * @self: A #WebKitDOMHTMLSelectElement
113 * @value: A #gboolean
114 *
115 *
116 * Deprecated: 2.22: Use JavaScriptCore API instead
117**/
118WEBKIT_DEPRECATED void
119webkit_dom_html_select_element_set_autofocus(WebKitDOMHTMLSelectElement* self, gboolean value);
120
121/**
122 * webkit_dom_html_select_element_get_disabled:
123 * @self: A #WebKitDOMHTMLSelectElement
124 *
125 * Returns: A #gboolean
126 *
127 * Deprecated: 2.22: Use JavaScriptCore API instead
128**/
129WEBKIT_DEPRECATED gboolean
130webkit_dom_html_select_element_get_disabled(WebKitDOMHTMLSelectElement* self);
131
132/**
133 * webkit_dom_html_select_element_set_disabled:
134 * @self: A #WebKitDOMHTMLSelectElement
135 * @value: A #gboolean
136 *
137 *
138 * Deprecated: 2.22: Use JavaScriptCore API instead
139**/
140WEBKIT_DEPRECATED void
141webkit_dom_html_select_element_set_disabled(WebKitDOMHTMLSelectElement* self, gboolean value);
142
143/**
144 * webkit_dom_html_select_element_get_form:
145 * @self: A #WebKitDOMHTMLSelectElement
146 *
147 * Returns: (transfer none): A #WebKitDOMHTMLFormElement
148 *
149 * Deprecated: 2.22: Use JavaScriptCore API instead
150**/
151WEBKIT_DEPRECATED WebKitDOMHTMLFormElement*
152webkit_dom_html_select_element_get_form(WebKitDOMHTMLSelectElement* self);
153
154/**
155 * webkit_dom_html_select_element_get_multiple:
156 * @self: A #WebKitDOMHTMLSelectElement
157 *
158 * Returns: A #gboolean
159 *
160 * Deprecated: 2.22: Use JavaScriptCore API instead
161**/
162WEBKIT_DEPRECATED gboolean
163webkit_dom_html_select_element_get_multiple(WebKitDOMHTMLSelectElement* self);
164
165/**
166 * webkit_dom_html_select_element_set_multiple:
167 * @self: A #WebKitDOMHTMLSelectElement
168 * @value: A #gboolean
169 *
170 *
171 * Deprecated: 2.22: Use JavaScriptCore API instead
172**/
173WEBKIT_DEPRECATED void
174webkit_dom_html_select_element_set_multiple(WebKitDOMHTMLSelectElement* self, gboolean value);
175
176/**
177 * webkit_dom_html_select_element_get_name:
178 * @self: A #WebKitDOMHTMLSelectElement
179 *
180 * Returns: A #gchar
181 *
182 * Deprecated: 2.22: Use JavaScriptCore API instead
183**/
184WEBKIT_DEPRECATED gchar*
185webkit_dom_html_select_element_get_name(WebKitDOMHTMLSelectElement* self);
186
187/**
188 * webkit_dom_html_select_element_set_name:
189 * @self: A #WebKitDOMHTMLSelectElement
190 * @value: A #gchar
191 *
192 *
193 * Deprecated: 2.22: Use JavaScriptCore API instead
194**/
195WEBKIT_DEPRECATED void
196webkit_dom_html_select_element_set_name(WebKitDOMHTMLSelectElement* self, const gchar* value);
197
198/**
199 * webkit_dom_html_select_element_get_size:
200 * @self: A #WebKitDOMHTMLSelectElement
201 *
202 * Returns: A #glong
203 *
204 * Deprecated: 2.22: Use JavaScriptCore API instead
205**/
206WEBKIT_DEPRECATED glong
207webkit_dom_html_select_element_get_size(WebKitDOMHTMLSelectElement* self);
208
209/**
210 * webkit_dom_html_select_element_set_size:
211 * @self: A #WebKitDOMHTMLSelectElement
212 * @value: A #glong
213 *
214 *
215 * Deprecated: 2.22: Use JavaScriptCore API instead
216**/
217WEBKIT_DEPRECATED void
218webkit_dom_html_select_element_set_size(WebKitDOMHTMLSelectElement* self, glong value);
219
220/**
221 * webkit_dom_html_select_element_get_select_type:
222 * @self: A #WebKitDOMHTMLSelectElement
223 *
224 * Returns: A #gchar
225 *
226 * Deprecated: 2.22: Use JavaScriptCore API instead
227**/
228WEBKIT_DEPRECATED gchar*
229webkit_dom_html_select_element_get_select_type(WebKitDOMHTMLSelectElement* self);
230
231/**
232 * webkit_dom_html_select_element_get_options:
233 * @self: A #WebKitDOMHTMLSelectElement
234 *
235 * Returns: (transfer full): A #WebKitDOMHTMLOptionsCollection
236 *
237 * Deprecated: 2.22: Use JavaScriptCore API instead
238**/
239WEBKIT_DEPRECATED WebKitDOMHTMLOptionsCollection*
240webkit_dom_html_select_element_get_options(WebKitDOMHTMLSelectElement* self);
241
242/**
243 * webkit_dom_html_select_element_get_length:
244 * @self: A #WebKitDOMHTMLSelectElement
245 *
246 * Returns: A #gulong
247 *
248 * Deprecated: 2.22: Use JavaScriptCore API instead
249**/
250WEBKIT_DEPRECATED gulong
251webkit_dom_html_select_element_get_length(WebKitDOMHTMLSelectElement* self);
252
253/**
254 * webkit_dom_html_select_element_set_length:
255 * @self: A #WebKitDOMHTMLSelectElement
256 * @value: A #gulong
257 * @error: #GError
258 *
259 *
260 * Deprecated: 2.22: Use JavaScriptCore API instead
261**/
262WEBKIT_DEPRECATED void
263webkit_dom_html_select_element_set_length(WebKitDOMHTMLSelectElement* self, gulong value, GError** error);
264
265/**
266 * webkit_dom_html_select_element_get_selected_index:
267 * @self: A #WebKitDOMHTMLSelectElement
268 *
269 * Returns: A #glong
270 *
271 * Deprecated: 2.22: Use JavaScriptCore API instead
272**/
273WEBKIT_DEPRECATED glong
274webkit_dom_html_select_element_get_selected_index(WebKitDOMHTMLSelectElement* self);
275
276/**
277 * webkit_dom_html_select_element_set_selected_index:
278 * @self: A #WebKitDOMHTMLSelectElement
279 * @value: A #glong
280 *
281 *
282 * Deprecated: 2.22: Use JavaScriptCore API instead
283**/
284WEBKIT_DEPRECATED void
285webkit_dom_html_select_element_set_selected_index(WebKitDOMHTMLSelectElement* self, glong value);
286
287/**
288 * webkit_dom_html_select_element_get_value:
289 * @self: A #WebKitDOMHTMLSelectElement
290 *
291 * Returns: A #gchar
292 *
293 * Deprecated: 2.22: Use JavaScriptCore API instead
294**/
295WEBKIT_DEPRECATED gchar*
296webkit_dom_html_select_element_get_value(WebKitDOMHTMLSelectElement* self);
297
298/**
299 * webkit_dom_html_select_element_set_value:
300 * @self: A #WebKitDOMHTMLSelectElement
301 * @value: A #gchar
302 *
303 *
304 * Deprecated: 2.22: Use JavaScriptCore API instead
305**/
306WEBKIT_DEPRECATED void
307webkit_dom_html_select_element_set_value(WebKitDOMHTMLSelectElement* self, const gchar* value);
308
309/**
310 * webkit_dom_html_select_element_get_will_validate:
311 * @self: A #WebKitDOMHTMLSelectElement
312 *
313 * Returns: A #gboolean
314 *
315 * Deprecated: 2.22: Use JavaScriptCore API instead
316**/
317WEBKIT_DEPRECATED gboolean
318webkit_dom_html_select_element_get_will_validate(WebKitDOMHTMLSelectElement* self);
319
320G_END_DECLS
321
322#endif /* WebKitDOMHTMLSelectElement_h */
323