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 WebKitDOMDocumentFragment_h |
25 | #define WebKitDOMDocumentFragment_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_DOCUMENT_FRAGMENT (webkit_dom_document_fragment_get_type()) |
34 | #define WEBKIT_DOM_DOCUMENT_FRAGMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_DOCUMENT_FRAGMENT, WebKitDOMDocumentFragment)) |
35 | #define WEBKIT_DOM_DOCUMENT_FRAGMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_DOCUMENT_FRAGMENT, WebKitDOMDocumentFragmentClass) |
36 | #define WEBKIT_DOM_IS_DOCUMENT_FRAGMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_DOCUMENT_FRAGMENT)) |
37 | #define WEBKIT_DOM_IS_DOCUMENT_FRAGMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_DOM_TYPE_DOCUMENT_FRAGMENT)) |
38 | #define WEBKIT_DOM_DOCUMENT_FRAGMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_DOM_TYPE_DOCUMENT_FRAGMENT, WebKitDOMDocumentFragmentClass)) |
39 | |
40 | struct _WebKitDOMDocumentFragment { |
41 | WebKitDOMNode parent_instance; |
42 | }; |
43 | |
44 | struct _WebKitDOMDocumentFragmentClass { |
45 | WebKitDOMNodeClass parent_class; |
46 | }; |
47 | |
48 | WEBKIT_DEPRECATED GType |
49 | webkit_dom_document_fragment_get_type(void); |
50 | |
51 | /** |
52 | * webkit_dom_document_fragment_get_element_by_id: |
53 | * @self: A #WebKitDOMDocumentFragment |
54 | * @elementId: A #gchar |
55 | * |
56 | * Returns: (transfer none): A #WebKitDOMElement |
57 | * |
58 | * Since: 2.16 |
59 | * |
60 | * Deprecated: 2.22: Use JavaScriptCore API instead |
61 | */ |
62 | WEBKIT_DEPRECATED WebKitDOMElement* |
63 | webkit_dom_document_fragment_get_element_by_id(WebKitDOMDocumentFragment* self, const gchar* elementId); |
64 | |
65 | /** |
66 | * webkit_dom_document_fragment_query_selector: |
67 | * @self: A #WebKitDOMDocumentFragment |
68 | * @selectors: A #gchar |
69 | * @error: #GError |
70 | * |
71 | * Returns: (transfer none): A #WebKitDOMElement |
72 | * |
73 | * Since: 2.16 |
74 | * |
75 | * Deprecated: 2.22: Use JavaScriptCore API instead |
76 | */ |
77 | WEBKIT_DEPRECATED WebKitDOMElement* |
78 | webkit_dom_document_fragment_query_selector(WebKitDOMDocumentFragment* self, const gchar* selectors, GError** error); |
79 | |
80 | /** |
81 | * webkit_dom_document_fragment_query_selector_all: |
82 | * @self: A #WebKitDOMDocumentFragment |
83 | * @selectors: A #gchar |
84 | * @error: #GError |
85 | * |
86 | * Returns: (transfer full): A #WebKitDOMNodeList |
87 | * |
88 | * Since: 2.16 |
89 | * |
90 | * Deprecated: 2.22: Use JavaScriptCore API instead |
91 | */ |
92 | WEBKIT_DEPRECATED WebKitDOMNodeList* |
93 | webkit_dom_document_fragment_query_selector_all(WebKitDOMDocumentFragment* self, const gchar* selectors, GError** error); |
94 | |
95 | /** |
96 | * webkit_dom_document_fragment_get_children: |
97 | * @self: A #WebKitDOMDocumentFragment |
98 | * |
99 | * Returns: (transfer full): A #WebKitDOMHTMLCollection |
100 | * |
101 | * Since: 2.16 |
102 | * |
103 | * Deprecated: 2.22: Use JavaScriptCore API instead |
104 | */ |
105 | WEBKIT_DEPRECATED WebKitDOMHTMLCollection* |
106 | webkit_dom_document_fragment_get_children(WebKitDOMDocumentFragment* self); |
107 | |
108 | /** |
109 | * webkit_dom_document_fragment_get_first_element_child: |
110 | * @self: A #WebKitDOMDocumentFragment |
111 | * |
112 | * Returns: (transfer none): A #WebKitDOMElement |
113 | * |
114 | * Since: 2.16 |
115 | * |
116 | * Deprecated: 2.22: Use JavaScriptCore API instead |
117 | */ |
118 | WEBKIT_DEPRECATED WebKitDOMElement* |
119 | webkit_dom_document_fragment_get_first_element_child(WebKitDOMDocumentFragment* self); |
120 | |
121 | /** |
122 | * webkit_dom_document_fragment_get_last_element_child: |
123 | * @self: A #WebKitDOMDocumentFragment |
124 | * |
125 | * Returns: (transfer none): A #WebKitDOMElement |
126 | * |
127 | * Since: 2.16 |
128 | * |
129 | * Deprecated: 2.22: Use JavaScriptCore API instead |
130 | */ |
131 | WEBKIT_DEPRECATED WebKitDOMElement* |
132 | webkit_dom_document_fragment_get_last_element_child(WebKitDOMDocumentFragment* self); |
133 | |
134 | /** |
135 | * webkit_dom_document_fragment_get_child_element_count: |
136 | * @self: A #WebKitDOMDocumentFragment |
137 | * |
138 | * Returns: A #gulong |
139 | * |
140 | * Since: 2.16 |
141 | * |
142 | * Deprecated: 2.22: Use JavaScriptCore API instead |
143 | */ |
144 | WEBKIT_DEPRECATED gulong |
145 | webkit_dom_document_fragment_get_child_element_count(WebKitDOMDocumentFragment* self); |
146 | |
147 | G_END_DECLS |
148 | |
149 | #endif /* WebKitDOMDocumentFragment_h */ |
150 | |