| 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 WebKitDOMElement_h |
| 25 | #define WebKitDOMElement_h |
| 26 | |
| 27 | #include <glib-object.h> |
| 28 | #include <webkitdom/WebKitDOMNode.h> |
| 29 | #include <webkitdom/webkitdomdefines.h> |
| 30 | |
| 31 | G_BEGIN_DECLS |
| 32 | |
| 33 | #define WEBKIT_DOM_TYPE_ELEMENT (webkit_dom_element_get_type()) |
| 34 | #define WEBKIT_DOM_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_ELEMENT, WebKitDOMElement)) |
| 35 | #define WEBKIT_DOM_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_ELEMENT, WebKitDOMElementClass) |
| 36 | #define WEBKIT_DOM_IS_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_ELEMENT)) |
| 37 | #define WEBKIT_DOM_IS_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_DOM_TYPE_ELEMENT)) |
| 38 | #define WEBKIT_DOM_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_DOM_TYPE_ELEMENT, WebKitDOMElementClass)) |
| 39 | |
| 40 | struct _WebKitDOMElement { |
| 41 | WebKitDOMNode parent_instance; |
| 42 | }; |
| 43 | |
| 44 | struct _WebKitDOMElementClass { |
| 45 | WebKitDOMNodeClass parent_class; |
| 46 | }; |
| 47 | |
| 48 | WEBKIT_API GType |
| 49 | webkit_dom_element_get_type (void); |
| 50 | |
| 51 | WEBKIT_API gboolean |
| 52 | webkit_dom_element_html_input_element_is_user_edited (WebKitDOMElement *element); |
| 53 | |
| 54 | WEBKIT_API gboolean |
| 55 | webkit_dom_element_html_input_element_get_auto_filled (WebKitDOMElement *element); |
| 56 | |
| 57 | WEBKIT_API void |
| 58 | webkit_dom_element_html_input_element_set_auto_filled (WebKitDOMElement *element, |
| 59 | gboolean auto_filled); |
| 60 | WEBKIT_API void |
| 61 | webkit_dom_element_html_input_element_set_editing_value (WebKitDOMElement *element, |
| 62 | const char *value); |
| 63 | |
| 64 | #ifndef WEBKIT_DISABLE_DEPRECATED |
| 65 | |
| 66 | /** |
| 67 | * WEBKIT_DOM_ELEMENT_ALLOW_KEYBOARD_INPUT: |
| 68 | * |
| 69 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 70 | */ |
| 71 | #define WEBKIT_DOM_ELEMENT_ALLOW_KEYBOARD_INPUT 1 |
| 72 | |
| 73 | #endif |
| 74 | |
| 75 | /** |
| 76 | * webkit_dom_element_get_attribute: |
| 77 | * @self: A #WebKitDOMElement |
| 78 | * @name: A #gchar |
| 79 | * |
| 80 | * Returns: A #gchar |
| 81 | * |
| 82 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 83 | **/ |
| 84 | WEBKIT_DEPRECATED gchar* |
| 85 | webkit_dom_element_get_attribute(WebKitDOMElement* self, const gchar* name); |
| 86 | |
| 87 | /** |
| 88 | * webkit_dom_element_set_attribute: |
| 89 | * @self: A #WebKitDOMElement |
| 90 | * @name: A #gchar |
| 91 | * @value: A #gchar |
| 92 | * @error: #GError |
| 93 | * |
| 94 | * |
| 95 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 96 | **/ |
| 97 | WEBKIT_DEPRECATED void |
| 98 | webkit_dom_element_set_attribute(WebKitDOMElement* self, const gchar* name, const gchar* value, GError** error); |
| 99 | |
| 100 | /** |
| 101 | * webkit_dom_element_remove_attribute: |
| 102 | * @self: A #WebKitDOMElement |
| 103 | * @name: A #gchar |
| 104 | * |
| 105 | * |
| 106 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 107 | **/ |
| 108 | WEBKIT_DEPRECATED void |
| 109 | webkit_dom_element_remove_attribute(WebKitDOMElement* self, const gchar* name); |
| 110 | |
| 111 | /** |
| 112 | * webkit_dom_element_get_attribute_node: |
| 113 | * @self: A #WebKitDOMElement |
| 114 | * @name: A #gchar |
| 115 | * |
| 116 | * Returns: (transfer none): A #WebKitDOMAttr |
| 117 | * |
| 118 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 119 | **/ |
| 120 | WEBKIT_DEPRECATED WebKitDOMAttr* |
| 121 | webkit_dom_element_get_attribute_node(WebKitDOMElement* self, const gchar* name); |
| 122 | |
| 123 | /** |
| 124 | * webkit_dom_element_set_attribute_node: |
| 125 | * @self: A #WebKitDOMElement |
| 126 | * @newAttr: A #WebKitDOMAttr |
| 127 | * @error: #GError |
| 128 | * |
| 129 | * Returns: (transfer none): A #WebKitDOMAttr |
| 130 | * |
| 131 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 132 | **/ |
| 133 | WEBKIT_DEPRECATED WebKitDOMAttr* |
| 134 | webkit_dom_element_set_attribute_node(WebKitDOMElement* self, WebKitDOMAttr* newAttr, GError** error); |
| 135 | |
| 136 | /** |
| 137 | * webkit_dom_element_remove_attribute_node: |
| 138 | * @self: A #WebKitDOMElement |
| 139 | * @oldAttr: A #WebKitDOMAttr |
| 140 | * @error: #GError |
| 141 | * |
| 142 | * Returns: (transfer none): A #WebKitDOMAttr |
| 143 | * |
| 144 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 145 | **/ |
| 146 | WEBKIT_DEPRECATED WebKitDOMAttr* |
| 147 | webkit_dom_element_remove_attribute_node(WebKitDOMElement* self, WebKitDOMAttr* oldAttr, GError** error); |
| 148 | |
| 149 | /** |
| 150 | * webkit_dom_element_get_elements_by_tag_name_as_html_collection: |
| 151 | * @self: A #WebKitDOMElement |
| 152 | * @name: A #gchar |
| 153 | * |
| 154 | * Returns: (transfer full): A #WebKitDOMHTMLCollection |
| 155 | * |
| 156 | * Since: 2.12 |
| 157 | * |
| 158 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 159 | **/ |
| 160 | WEBKIT_DEPRECATED WebKitDOMHTMLCollection* |
| 161 | webkit_dom_element_get_elements_by_tag_name_as_html_collection(WebKitDOMElement* self, const gchar* name); |
| 162 | |
| 163 | /** |
| 164 | * webkit_dom_element_has_attributes: |
| 165 | * @self: A #WebKitDOMElement |
| 166 | * |
| 167 | * Returns: A #gboolean |
| 168 | * |
| 169 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 170 | **/ |
| 171 | WEBKIT_DEPRECATED gboolean |
| 172 | webkit_dom_element_has_attributes(WebKitDOMElement* self); |
| 173 | |
| 174 | /** |
| 175 | * webkit_dom_element_get_attribute_ns: |
| 176 | * @self: A #WebKitDOMElement |
| 177 | * @namespaceURI: A #gchar |
| 178 | * @localName: A #gchar |
| 179 | * |
| 180 | * Returns: A #gchar |
| 181 | * |
| 182 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 183 | **/ |
| 184 | WEBKIT_DEPRECATED gchar* |
| 185 | webkit_dom_element_get_attribute_ns(WebKitDOMElement* self, const gchar* namespaceURI, const gchar* localName); |
| 186 | |
| 187 | /** |
| 188 | * webkit_dom_element_set_attribute_ns: |
| 189 | * @self: A #WebKitDOMElement |
| 190 | * @namespaceURI: (allow-none): A #gchar |
| 191 | * @qualifiedName: A #gchar |
| 192 | * @value: A #gchar |
| 193 | * @error: #GError |
| 194 | * |
| 195 | * |
| 196 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 197 | **/ |
| 198 | WEBKIT_DEPRECATED void |
| 199 | webkit_dom_element_set_attribute_ns(WebKitDOMElement* self, const gchar* namespaceURI, const gchar* qualifiedName, const gchar* value, GError** error); |
| 200 | |
| 201 | /** |
| 202 | * webkit_dom_element_remove_attribute_ns: |
| 203 | * @self: A #WebKitDOMElement |
| 204 | * @namespaceURI: A #gchar |
| 205 | * @localName: A #gchar |
| 206 | * |
| 207 | * |
| 208 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 209 | **/ |
| 210 | WEBKIT_DEPRECATED void |
| 211 | webkit_dom_element_remove_attribute_ns(WebKitDOMElement* self, const gchar* namespaceURI, const gchar* localName); |
| 212 | |
| 213 | /** |
| 214 | * webkit_dom_element_get_elements_by_tag_name_ns_as_html_collection: |
| 215 | * @self: A #WebKitDOMElement |
| 216 | * @namespaceURI: A #gchar |
| 217 | * @localName: A #gchar |
| 218 | * |
| 219 | * Returns: (transfer full): A #WebKitDOMHTMLCollection |
| 220 | * |
| 221 | * Since: 2.12 |
| 222 | * |
| 223 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 224 | **/ |
| 225 | WEBKIT_DEPRECATED WebKitDOMHTMLCollection* |
| 226 | webkit_dom_element_get_elements_by_tag_name_ns_as_html_collection(WebKitDOMElement* self, const gchar* namespaceURI, const gchar* localName); |
| 227 | |
| 228 | /** |
| 229 | * webkit_dom_element_get_attribute_node_ns: |
| 230 | * @self: A #WebKitDOMElement |
| 231 | * @namespaceURI: A #gchar |
| 232 | * @localName: A #gchar |
| 233 | * |
| 234 | * Returns: (transfer none): A #WebKitDOMAttr |
| 235 | * |
| 236 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 237 | **/ |
| 238 | WEBKIT_DEPRECATED WebKitDOMAttr* |
| 239 | webkit_dom_element_get_attribute_node_ns(WebKitDOMElement* self, const gchar* namespaceURI, const gchar* localName); |
| 240 | |
| 241 | /** |
| 242 | * webkit_dom_element_set_attribute_node_ns: |
| 243 | * @self: A #WebKitDOMElement |
| 244 | * @newAttr: A #WebKitDOMAttr |
| 245 | * @error: #GError |
| 246 | * |
| 247 | * Returns: (transfer none): A #WebKitDOMAttr |
| 248 | * |
| 249 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 250 | **/ |
| 251 | WEBKIT_DEPRECATED WebKitDOMAttr* |
| 252 | webkit_dom_element_set_attribute_node_ns(WebKitDOMElement* self, WebKitDOMAttr* newAttr, GError** error); |
| 253 | |
| 254 | /** |
| 255 | * webkit_dom_element_has_attribute: |
| 256 | * @self: A #WebKitDOMElement |
| 257 | * @name: A #gchar |
| 258 | * |
| 259 | * Returns: A #gboolean |
| 260 | * |
| 261 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 262 | **/ |
| 263 | WEBKIT_DEPRECATED gboolean |
| 264 | webkit_dom_element_has_attribute(WebKitDOMElement* self, const gchar* name); |
| 265 | |
| 266 | /** |
| 267 | * webkit_dom_element_has_attribute_ns: |
| 268 | * @self: A #WebKitDOMElement |
| 269 | * @namespaceURI: A #gchar |
| 270 | * @localName: A #gchar |
| 271 | * |
| 272 | * Returns: A #gboolean |
| 273 | * |
| 274 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 275 | **/ |
| 276 | WEBKIT_DEPRECATED gboolean |
| 277 | webkit_dom_element_has_attribute_ns(WebKitDOMElement* self, const gchar* namespaceURI, const gchar* localName); |
| 278 | |
| 279 | /** |
| 280 | * webkit_dom_element_focus: |
| 281 | * @self: A #WebKitDOMElement |
| 282 | * |
| 283 | * |
| 284 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 285 | **/ |
| 286 | WEBKIT_DEPRECATED void |
| 287 | webkit_dom_element_focus(WebKitDOMElement* self); |
| 288 | |
| 289 | /** |
| 290 | * webkit_dom_element_blur: |
| 291 | * @self: A #WebKitDOMElement |
| 292 | * |
| 293 | * |
| 294 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 295 | **/ |
| 296 | WEBKIT_DEPRECATED void |
| 297 | webkit_dom_element_blur(WebKitDOMElement* self); |
| 298 | |
| 299 | /** |
| 300 | * webkit_dom_element_scroll_into_view: |
| 301 | * @self: A #WebKitDOMElement |
| 302 | * @alignWithTop: A #gboolean |
| 303 | * |
| 304 | * |
| 305 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 306 | **/ |
| 307 | WEBKIT_DEPRECATED void |
| 308 | webkit_dom_element_scroll_into_view(WebKitDOMElement* self, gboolean alignWithTop); |
| 309 | |
| 310 | /** |
| 311 | * webkit_dom_element_scroll_into_view_if_needed: |
| 312 | * @self: A #WebKitDOMElement |
| 313 | * @centerIfNeeded: A #gboolean |
| 314 | * |
| 315 | * |
| 316 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 317 | **/ |
| 318 | WEBKIT_DEPRECATED void |
| 319 | webkit_dom_element_scroll_into_view_if_needed(WebKitDOMElement* self, gboolean centerIfNeeded); |
| 320 | |
| 321 | /** |
| 322 | * webkit_dom_element_scroll_by_lines: |
| 323 | * @self: A #WebKitDOMElement |
| 324 | * @lines: A #glong |
| 325 | * |
| 326 | * |
| 327 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 328 | **/ |
| 329 | WEBKIT_DEPRECATED void |
| 330 | webkit_dom_element_scroll_by_lines(WebKitDOMElement* self, glong lines); |
| 331 | |
| 332 | /** |
| 333 | * webkit_dom_element_scroll_by_pages: |
| 334 | * @self: A #WebKitDOMElement |
| 335 | * @pages: A #glong |
| 336 | * |
| 337 | * |
| 338 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 339 | **/ |
| 340 | WEBKIT_DEPRECATED void |
| 341 | webkit_dom_element_scroll_by_pages(WebKitDOMElement* self, glong pages); |
| 342 | |
| 343 | /** |
| 344 | * webkit_dom_element_get_elements_by_class_name_as_html_collection: |
| 345 | * @self: A #WebKitDOMElement |
| 346 | * @name: A #gchar |
| 347 | * |
| 348 | * Returns: (transfer full): A #WebKitDOMHTMLCollection |
| 349 | * |
| 350 | * Since: 2.12 |
| 351 | * |
| 352 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 353 | **/ |
| 354 | WEBKIT_DEPRECATED WebKitDOMHTMLCollection* |
| 355 | webkit_dom_element_get_elements_by_class_name_as_html_collection(WebKitDOMElement* self, const gchar* name); |
| 356 | |
| 357 | /** |
| 358 | * webkit_dom_element_query_selector: |
| 359 | * @self: A #WebKitDOMElement |
| 360 | * @selectors: A #gchar |
| 361 | * @error: #GError |
| 362 | * |
| 363 | * Returns: (transfer none): A #WebKitDOMElement |
| 364 | * |
| 365 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 366 | **/ |
| 367 | WEBKIT_DEPRECATED WebKitDOMElement* |
| 368 | webkit_dom_element_query_selector(WebKitDOMElement* self, const gchar* selectors, GError** error); |
| 369 | |
| 370 | /** |
| 371 | * webkit_dom_element_query_selector_all: |
| 372 | * @self: A #WebKitDOMElement |
| 373 | * @selectors: A #gchar |
| 374 | * @error: #GError |
| 375 | * |
| 376 | * Returns: (transfer full): A #WebKitDOMNodeList |
| 377 | * |
| 378 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 379 | **/ |
| 380 | WEBKIT_DEPRECATED WebKitDOMNodeList* |
| 381 | webkit_dom_element_query_selector_all(WebKitDOMElement* self, const gchar* selectors, GError** error); |
| 382 | |
| 383 | /** |
| 384 | * webkit_dom_element_get_tag_name: |
| 385 | * @self: A #WebKitDOMElement |
| 386 | * |
| 387 | * Returns: A #gchar |
| 388 | * |
| 389 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 390 | **/ |
| 391 | WEBKIT_DEPRECATED gchar* |
| 392 | webkit_dom_element_get_tag_name(WebKitDOMElement* self); |
| 393 | |
| 394 | /** |
| 395 | * webkit_dom_element_get_attributes: |
| 396 | * @self: A #WebKitDOMElement |
| 397 | * |
| 398 | * Returns: (transfer full): A #WebKitDOMNamedNodeMap |
| 399 | * |
| 400 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 401 | **/ |
| 402 | WEBKIT_DEPRECATED WebKitDOMNamedNodeMap* |
| 403 | webkit_dom_element_get_attributes(WebKitDOMElement* self); |
| 404 | |
| 405 | /** |
| 406 | * webkit_dom_element_get_style: |
| 407 | * @self: A #WebKitDOMElement |
| 408 | * |
| 409 | * Returns: (transfer full): A #WebKitDOMCSSStyleDeclaration |
| 410 | * |
| 411 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 412 | **/ |
| 413 | WEBKIT_DEPRECATED WebKitDOMCSSStyleDeclaration* |
| 414 | webkit_dom_element_get_style(WebKitDOMElement* self); |
| 415 | |
| 416 | /** |
| 417 | * webkit_dom_element_get_id: |
| 418 | * @self: A #WebKitDOMElement |
| 419 | * |
| 420 | * Returns: A #gchar |
| 421 | * |
| 422 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 423 | **/ |
| 424 | WEBKIT_DEPRECATED gchar* |
| 425 | webkit_dom_element_get_id(WebKitDOMElement* self); |
| 426 | |
| 427 | /** |
| 428 | * webkit_dom_element_set_id: |
| 429 | * @self: A #WebKitDOMElement |
| 430 | * @value: A #gchar |
| 431 | * |
| 432 | * |
| 433 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 434 | **/ |
| 435 | WEBKIT_DEPRECATED void |
| 436 | webkit_dom_element_set_id(WebKitDOMElement* self, const gchar* value); |
| 437 | |
| 438 | /** |
| 439 | * webkit_dom_element_get_namespace_uri: |
| 440 | * @self: A #WebKitDOMElement |
| 441 | * |
| 442 | * Returns: A #gchar |
| 443 | * |
| 444 | * Since: 2.14 |
| 445 | * |
| 446 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 447 | **/ |
| 448 | WEBKIT_DEPRECATED gchar* |
| 449 | webkit_dom_element_get_namespace_uri(WebKitDOMElement* self); |
| 450 | |
| 451 | /** |
| 452 | * webkit_dom_element_get_prefix: |
| 453 | * @self: A #WebKitDOMElement |
| 454 | * |
| 455 | * Returns: A #gchar |
| 456 | * |
| 457 | * Since: 2.14 |
| 458 | * |
| 459 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 460 | **/ |
| 461 | WEBKIT_DEPRECATED gchar* |
| 462 | webkit_dom_element_get_prefix(WebKitDOMElement* self); |
| 463 | |
| 464 | /** |
| 465 | * webkit_dom_element_get_local_name: |
| 466 | * @self: A #WebKitDOMElement |
| 467 | * |
| 468 | * Returns: A #gchar |
| 469 | * |
| 470 | * Since: 2.14 |
| 471 | * |
| 472 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 473 | **/ |
| 474 | WEBKIT_DEPRECATED gchar* |
| 475 | webkit_dom_element_get_local_name(WebKitDOMElement* self); |
| 476 | |
| 477 | /** |
| 478 | * webkit_dom_element_get_offset_left: |
| 479 | * @self: A #WebKitDOMElement |
| 480 | * |
| 481 | * Returns: A #gdouble |
| 482 | * |
| 483 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 484 | **/ |
| 485 | WEBKIT_DEPRECATED gdouble |
| 486 | webkit_dom_element_get_offset_left(WebKitDOMElement* self); |
| 487 | |
| 488 | /** |
| 489 | * webkit_dom_element_get_offset_top: |
| 490 | * @self: A #WebKitDOMElement |
| 491 | * |
| 492 | * Returns: A #gdouble |
| 493 | * |
| 494 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 495 | **/ |
| 496 | WEBKIT_DEPRECATED gdouble |
| 497 | webkit_dom_element_get_offset_top(WebKitDOMElement* self); |
| 498 | |
| 499 | /** |
| 500 | * webkit_dom_element_get_offset_width: |
| 501 | * @self: A #WebKitDOMElement |
| 502 | * |
| 503 | * Returns: A #gdouble |
| 504 | * |
| 505 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 506 | **/ |
| 507 | WEBKIT_DEPRECATED gdouble |
| 508 | webkit_dom_element_get_offset_width(WebKitDOMElement* self); |
| 509 | |
| 510 | /** |
| 511 | * webkit_dom_element_get_offset_height: |
| 512 | * @self: A #WebKitDOMElement |
| 513 | * |
| 514 | * Returns: A #gdouble |
| 515 | * |
| 516 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 517 | **/ |
| 518 | WEBKIT_DEPRECATED gdouble |
| 519 | webkit_dom_element_get_offset_height(WebKitDOMElement* self); |
| 520 | |
| 521 | /** |
| 522 | * webkit_dom_element_get_client_left: |
| 523 | * @self: A #WebKitDOMElement |
| 524 | * |
| 525 | * Returns: A #gdouble |
| 526 | * |
| 527 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 528 | **/ |
| 529 | WEBKIT_DEPRECATED gdouble |
| 530 | webkit_dom_element_get_client_left(WebKitDOMElement* self); |
| 531 | |
| 532 | /** |
| 533 | * webkit_dom_element_get_client_top: |
| 534 | * @self: A #WebKitDOMElement |
| 535 | * |
| 536 | * Returns: A #gdouble |
| 537 | * |
| 538 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 539 | **/ |
| 540 | WEBKIT_DEPRECATED gdouble |
| 541 | webkit_dom_element_get_client_top(WebKitDOMElement* self); |
| 542 | |
| 543 | /** |
| 544 | * webkit_dom_element_get_client_width: |
| 545 | * @self: A #WebKitDOMElement |
| 546 | * |
| 547 | * Returns: A #gdouble |
| 548 | * |
| 549 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 550 | **/ |
| 551 | WEBKIT_DEPRECATED gdouble |
| 552 | webkit_dom_element_get_client_width(WebKitDOMElement* self); |
| 553 | |
| 554 | /** |
| 555 | * webkit_dom_element_get_client_height: |
| 556 | * @self: A #WebKitDOMElement |
| 557 | * |
| 558 | * Returns: A #gdouble |
| 559 | * |
| 560 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 561 | **/ |
| 562 | WEBKIT_DEPRECATED gdouble |
| 563 | webkit_dom_element_get_client_height(WebKitDOMElement* self); |
| 564 | |
| 565 | /** |
| 566 | * webkit_dom_element_get_scroll_left: |
| 567 | * @self: A #WebKitDOMElement |
| 568 | * |
| 569 | * Returns: A #glong |
| 570 | * |
| 571 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 572 | **/ |
| 573 | WEBKIT_DEPRECATED glong |
| 574 | webkit_dom_element_get_scroll_left(WebKitDOMElement* self); |
| 575 | |
| 576 | /** |
| 577 | * webkit_dom_element_set_scroll_left: |
| 578 | * @self: A #WebKitDOMElement |
| 579 | * @value: A #glong |
| 580 | * |
| 581 | * |
| 582 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 583 | **/ |
| 584 | WEBKIT_DEPRECATED void |
| 585 | webkit_dom_element_set_scroll_left(WebKitDOMElement* self, glong value); |
| 586 | |
| 587 | /** |
| 588 | * webkit_dom_element_get_scroll_top: |
| 589 | * @self: A #WebKitDOMElement |
| 590 | * |
| 591 | * Returns: A #glong |
| 592 | * |
| 593 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 594 | **/ |
| 595 | WEBKIT_DEPRECATED glong |
| 596 | webkit_dom_element_get_scroll_top(WebKitDOMElement* self); |
| 597 | |
| 598 | /** |
| 599 | * webkit_dom_element_set_scroll_top: |
| 600 | * @self: A #WebKitDOMElement |
| 601 | * @value: A #glong |
| 602 | * |
| 603 | * |
| 604 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 605 | **/ |
| 606 | WEBKIT_DEPRECATED void |
| 607 | webkit_dom_element_set_scroll_top(WebKitDOMElement* self, glong value); |
| 608 | |
| 609 | /** |
| 610 | * webkit_dom_element_get_scroll_width: |
| 611 | * @self: A #WebKitDOMElement |
| 612 | * |
| 613 | * Returns: A #glong |
| 614 | * |
| 615 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 616 | **/ |
| 617 | WEBKIT_DEPRECATED glong |
| 618 | webkit_dom_element_get_scroll_width(WebKitDOMElement* self); |
| 619 | |
| 620 | /** |
| 621 | * webkit_dom_element_get_scroll_height: |
| 622 | * @self: A #WebKitDOMElement |
| 623 | * |
| 624 | * Returns: A #glong |
| 625 | * |
| 626 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 627 | **/ |
| 628 | WEBKIT_DEPRECATED glong |
| 629 | webkit_dom_element_get_scroll_height(WebKitDOMElement* self); |
| 630 | |
| 631 | /** |
| 632 | * webkit_dom_element_get_bounding_client_rect: |
| 633 | * @self: A #WebKitDOMElement |
| 634 | * |
| 635 | * Returns a #WebKitDOMClientRect representing the size and position of @self |
| 636 | * relative to the viewport. |
| 637 | * |
| 638 | * Returns: (transfer full): A #WebKitDOMClientRect |
| 639 | * |
| 640 | * Since: 2.18 |
| 641 | * |
| 642 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 643 | **/ |
| 644 | WEBKIT_DEPRECATED WebKitDOMClientRect* |
| 645 | webkit_dom_element_get_bounding_client_rect(WebKitDOMElement* self); |
| 646 | |
| 647 | /** |
| 648 | * webkit_dom_element_get_client_rects: |
| 649 | * @self: A #WebKitDOMElement |
| 650 | * |
| 651 | * Returns a collection of #WebKitDOMClientRect objects, each of which describe |
| 652 | * the size and position of a CSS border box relative to the viewport. |
| 653 | * |
| 654 | * Returns: (transfer full): A #WebKitDOMClientRectList |
| 655 | * |
| 656 | * Since: 2.18 |
| 657 | * |
| 658 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 659 | **/ |
| 660 | WEBKIT_DEPRECATED WebKitDOMClientRectList* |
| 661 | webkit_dom_element_get_client_rects(WebKitDOMElement* self); |
| 662 | |
| 663 | /** |
| 664 | * webkit_dom_element_get_offset_parent: |
| 665 | * @self: A #WebKitDOMElement |
| 666 | * |
| 667 | * Returns: (transfer none): A #WebKitDOMElement |
| 668 | * |
| 669 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 670 | **/ |
| 671 | WEBKIT_DEPRECATED WebKitDOMElement* |
| 672 | webkit_dom_element_get_offset_parent(WebKitDOMElement* self); |
| 673 | |
| 674 | /** |
| 675 | * webkit_dom_element_get_inner_html: |
| 676 | * @self: A #WebKitDOMElement |
| 677 | * |
| 678 | * Returns: A #gchar |
| 679 | * |
| 680 | * Since: 2.8 |
| 681 | * |
| 682 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 683 | **/ |
| 684 | WEBKIT_DEPRECATED gchar* |
| 685 | webkit_dom_element_get_inner_html(WebKitDOMElement* self); |
| 686 | |
| 687 | /** |
| 688 | * webkit_dom_element_set_inner_html: |
| 689 | * @self: A #WebKitDOMElement |
| 690 | * @value: A #gchar |
| 691 | * @error: #GError |
| 692 | * |
| 693 | * Since: 2.8 |
| 694 | * |
| 695 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 696 | **/ |
| 697 | WEBKIT_DEPRECATED void |
| 698 | webkit_dom_element_set_inner_html(WebKitDOMElement* self, const gchar* value, GError** error); |
| 699 | |
| 700 | /** |
| 701 | * webkit_dom_element_get_outer_html: |
| 702 | * @self: A #WebKitDOMElement |
| 703 | * |
| 704 | * Returns: A #gchar |
| 705 | * |
| 706 | * Since: 2.8 |
| 707 | * |
| 708 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 709 | **/ |
| 710 | WEBKIT_DEPRECATED gchar* |
| 711 | webkit_dom_element_get_outer_html(WebKitDOMElement* self); |
| 712 | |
| 713 | /** |
| 714 | * webkit_dom_element_set_outer_html: |
| 715 | * @self: A #WebKitDOMElement |
| 716 | * @value: A #gchar |
| 717 | * @error: #GError |
| 718 | * |
| 719 | * Since: 2.8 |
| 720 | * |
| 721 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 722 | **/ |
| 723 | WEBKIT_DEPRECATED void |
| 724 | webkit_dom_element_set_outer_html(WebKitDOMElement* self, const gchar* value, GError** error); |
| 725 | |
| 726 | /** |
| 727 | * webkit_dom_element_get_class_name: |
| 728 | * @self: A #WebKitDOMElement |
| 729 | * |
| 730 | * Returns: A #gchar |
| 731 | * |
| 732 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 733 | **/ |
| 734 | WEBKIT_DEPRECATED gchar* |
| 735 | webkit_dom_element_get_class_name(WebKitDOMElement* self); |
| 736 | |
| 737 | /** |
| 738 | * webkit_dom_element_set_class_name: |
| 739 | * @self: A #WebKitDOMElement |
| 740 | * @value: A #gchar |
| 741 | * |
| 742 | * |
| 743 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 744 | **/ |
| 745 | WEBKIT_DEPRECATED void |
| 746 | webkit_dom_element_set_class_name(WebKitDOMElement* self, const gchar* value); |
| 747 | |
| 748 | /** |
| 749 | * webkit_dom_element_get_previous_element_sibling: |
| 750 | * @self: A #WebKitDOMElement |
| 751 | * |
| 752 | * Returns: (transfer none): A #WebKitDOMElement |
| 753 | * |
| 754 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 755 | **/ |
| 756 | WEBKIT_DEPRECATED WebKitDOMElement* |
| 757 | webkit_dom_element_get_previous_element_sibling(WebKitDOMElement* self); |
| 758 | |
| 759 | /** |
| 760 | * webkit_dom_element_get_next_element_sibling: |
| 761 | * @self: A #WebKitDOMElement |
| 762 | * |
| 763 | * Returns: (transfer none): A #WebKitDOMElement |
| 764 | * |
| 765 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 766 | **/ |
| 767 | WEBKIT_DEPRECATED WebKitDOMElement* |
| 768 | webkit_dom_element_get_next_element_sibling(WebKitDOMElement* self); |
| 769 | |
| 770 | /** |
| 771 | * webkit_dom_element_get_children: |
| 772 | * @self: A #WebKitDOMElement |
| 773 | * |
| 774 | * Returns: (transfer full): A #WebKitDOMHTMLCollection |
| 775 | * |
| 776 | * Since: 2.10 |
| 777 | * |
| 778 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 779 | **/ |
| 780 | WEBKIT_DEPRECATED WebKitDOMHTMLCollection* |
| 781 | webkit_dom_element_get_children(WebKitDOMElement* self); |
| 782 | |
| 783 | /** |
| 784 | * webkit_dom_element_get_first_element_child: |
| 785 | * @self: A #WebKitDOMElement |
| 786 | * |
| 787 | * Returns: (transfer none): A #WebKitDOMElement |
| 788 | * |
| 789 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 790 | **/ |
| 791 | WEBKIT_DEPRECATED WebKitDOMElement* |
| 792 | webkit_dom_element_get_first_element_child(WebKitDOMElement* self); |
| 793 | |
| 794 | /** |
| 795 | * webkit_dom_element_get_last_element_child: |
| 796 | * @self: A #WebKitDOMElement |
| 797 | * |
| 798 | * Returns: (transfer none): A #WebKitDOMElement |
| 799 | * |
| 800 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 801 | **/ |
| 802 | WEBKIT_DEPRECATED WebKitDOMElement* |
| 803 | webkit_dom_element_get_last_element_child(WebKitDOMElement* self); |
| 804 | |
| 805 | /** |
| 806 | * webkit_dom_element_get_child_element_count: |
| 807 | * @self: A #WebKitDOMElement |
| 808 | * |
| 809 | * Returns: A #gulong |
| 810 | * |
| 811 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 812 | **/ |
| 813 | WEBKIT_DEPRECATED gulong |
| 814 | webkit_dom_element_get_child_element_count(WebKitDOMElement* self); |
| 815 | |
| 816 | /** |
| 817 | * webkit_dom_element_matches: |
| 818 | * @self: A #WebKitDOMElement |
| 819 | * @selectors: A #gchar |
| 820 | * @error: #GError |
| 821 | * |
| 822 | * Returns: A #gboolean |
| 823 | * |
| 824 | * Since: 2.16 |
| 825 | * |
| 826 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 827 | **/ |
| 828 | WEBKIT_DEPRECATED gboolean |
| 829 | webkit_dom_element_matches(WebKitDOMElement* self, const gchar* selectors, GError** error); |
| 830 | |
| 831 | /** |
| 832 | * webkit_dom_element_closest: |
| 833 | * @self: A #WebKitDOMElement |
| 834 | * @selectors: A #gchar |
| 835 | * @error: #GError |
| 836 | * |
| 837 | * Returns: (transfer none): A #WebKitDOMElement |
| 838 | * |
| 839 | * Since: 2.16 |
| 840 | * |
| 841 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 842 | **/ |
| 843 | WEBKIT_DEPRECATED WebKitDOMElement* |
| 844 | webkit_dom_element_closest(WebKitDOMElement* self, const gchar* selectors, GError** error); |
| 845 | |
| 846 | /** |
| 847 | * webkit_dom_element_webkit_matches_selector: |
| 848 | * @self: A #WebKitDOMElement |
| 849 | * @selectors: A #gchar |
| 850 | * @error: #GError |
| 851 | * |
| 852 | * Returns: A #gboolean |
| 853 | * |
| 854 | * Since: 2.16 |
| 855 | * |
| 856 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 857 | **/ |
| 858 | WEBKIT_DEPRECATED gboolean |
| 859 | webkit_dom_element_webkit_matches_selector(WebKitDOMElement* self, const gchar* selectors, GError** error); |
| 860 | |
| 861 | /** |
| 862 | * webkit_dom_element_webkit_request_fullscreen: |
| 863 | * @self: A #WebKitDOMElement |
| 864 | * |
| 865 | * Since: 2.16 |
| 866 | * |
| 867 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 868 | **/ |
| 869 | WEBKIT_DEPRECATED void |
| 870 | webkit_dom_element_webkit_request_fullscreen(WebKitDOMElement* self); |
| 871 | |
| 872 | /** |
| 873 | * webkit_dom_element_insert_adjacent_element: |
| 874 | * @self: A #WebKitDOMElement |
| 875 | * @where: A #gchar |
| 876 | * @element: A #WebKitDOMElement |
| 877 | * @error: #GError |
| 878 | * |
| 879 | * Returns: (transfer none): A #WebKitDOMElement |
| 880 | * |
| 881 | * Since: 2.16 |
| 882 | * |
| 883 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 884 | **/ |
| 885 | WEBKIT_DEPRECATED WebKitDOMElement* |
| 886 | webkit_dom_element_insert_adjacent_element(WebKitDOMElement* self, const gchar* where, WebKitDOMElement* element, GError** error); |
| 887 | |
| 888 | /** |
| 889 | * webkit_dom_element_insert_adjacent_html: |
| 890 | * @self: A #WebKitDOMElement |
| 891 | * @where: A #gchar |
| 892 | * @html: A #gchar |
| 893 | * @error: #GError |
| 894 | * |
| 895 | * Since: 2.16 |
| 896 | * |
| 897 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 898 | **/ |
| 899 | WEBKIT_DEPRECATED void |
| 900 | webkit_dom_element_insert_adjacent_html(WebKitDOMElement* self, const gchar* where, const gchar* html, GError** error); |
| 901 | |
| 902 | /** |
| 903 | * webkit_dom_element_insert_adjacent_text: |
| 904 | * @self: A #WebKitDOMElement |
| 905 | * @where: A #gchar |
| 906 | * @text: A #gchar |
| 907 | * @error: #GError |
| 908 | * |
| 909 | * Since: 2.16 |
| 910 | * |
| 911 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 912 | **/ |
| 913 | WEBKIT_DEPRECATED void |
| 914 | webkit_dom_element_insert_adjacent_text(WebKitDOMElement* self, const gchar* where, const gchar* text, GError** error); |
| 915 | |
| 916 | /** |
| 917 | * webkit_dom_element_request_pointer_lock: |
| 918 | * @self: A #WebKitDOMElement |
| 919 | * |
| 920 | * Since: 2.16 |
| 921 | * |
| 922 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 923 | **/ |
| 924 | WEBKIT_DEPRECATED void |
| 925 | webkit_dom_element_request_pointer_lock(WebKitDOMElement* self); |
| 926 | |
| 927 | /** |
| 928 | * webkit_dom_element_remove: |
| 929 | * @self: A #WebKitDOMElement |
| 930 | * @error: #GError |
| 931 | * |
| 932 | * Since: 2.16 |
| 933 | * |
| 934 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 935 | **/ |
| 936 | WEBKIT_DEPRECATED void |
| 937 | webkit_dom_element_remove(WebKitDOMElement* self, GError** error); |
| 938 | |
| 939 | /** |
| 940 | * webkit_dom_element_get_class_list: |
| 941 | * @self: A #WebKitDOMElement |
| 942 | * |
| 943 | * Returns: (transfer full): A #WebKitDOMDOMTokenList |
| 944 | * |
| 945 | * Since: 2.16 |
| 946 | * |
| 947 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 948 | **/ |
| 949 | WEBKIT_DEPRECATED WebKitDOMDOMTokenList* |
| 950 | webkit_dom_element_get_class_list(WebKitDOMElement* self); |
| 951 | |
| 952 | G_END_DECLS |
| 953 | |
| 954 | #endif /* WebKitDOMElement_h */ |
| 955 | |