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 WebKitDOMCharacterData_h |
25 | #define WebKitDOMCharacterData_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_CHARACTER_DATA (webkit_dom_character_data_get_type()) |
34 | #define WEBKIT_DOM_CHARACTER_DATA(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_CHARACTER_DATA, WebKitDOMCharacterData)) |
35 | #define WEBKIT_DOM_CHARACTER_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_CHARACTER_DATA, WebKitDOMCharacterDataClass) |
36 | #define WEBKIT_DOM_IS_CHARACTER_DATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_CHARACTER_DATA)) |
37 | #define WEBKIT_DOM_IS_CHARACTER_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_DOM_TYPE_CHARACTER_DATA)) |
38 | #define WEBKIT_DOM_CHARACTER_DATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_DOM_TYPE_CHARACTER_DATA, WebKitDOMCharacterDataClass)) |
39 | |
40 | struct _WebKitDOMCharacterData { |
41 | WebKitDOMNode parent_instance; |
42 | }; |
43 | |
44 | struct _WebKitDOMCharacterDataClass { |
45 | WebKitDOMNodeClass parent_class; |
46 | }; |
47 | |
48 | WEBKIT_DEPRECATED GType |
49 | webkit_dom_character_data_get_type(void); |
50 | |
51 | /** |
52 | * webkit_dom_character_data_substring_data: |
53 | * @self: A #WebKitDOMCharacterData |
54 | * @offset: A #gulong |
55 | * @length: A #gulong |
56 | * @error: #GError |
57 | * |
58 | * Returns: A #gchar |
59 | * |
60 | * Deprecated: 2.22: Use JavaScriptCore API instead |
61 | **/ |
62 | WEBKIT_DEPRECATED gchar* |
63 | webkit_dom_character_data_substring_data(WebKitDOMCharacterData* self, gulong offset, gulong length, GError** error); |
64 | |
65 | /** |
66 | * webkit_dom_character_data_append_data: |
67 | * @self: A #WebKitDOMCharacterData |
68 | * @data: A #gchar |
69 | * @error: #GError |
70 | * |
71 | * |
72 | * Deprecated: 2.22: Use JavaScriptCore API instead |
73 | **/ |
74 | WEBKIT_DEPRECATED void |
75 | webkit_dom_character_data_append_data(WebKitDOMCharacterData* self, const gchar* data, GError** error); |
76 | |
77 | /** |
78 | * webkit_dom_character_data_insert_data: |
79 | * @self: A #WebKitDOMCharacterData |
80 | * @offset: A #gulong |
81 | * @data: A #gchar |
82 | * @error: #GError |
83 | * |
84 | * |
85 | * Deprecated: 2.22: Use JavaScriptCore API instead |
86 | **/ |
87 | WEBKIT_DEPRECATED void |
88 | webkit_dom_character_data_insert_data(WebKitDOMCharacterData* self, gulong offset, const gchar* data, GError** error); |
89 | |
90 | /** |
91 | * webkit_dom_character_data_delete_data: |
92 | * @self: A #WebKitDOMCharacterData |
93 | * @offset: A #gulong |
94 | * @length: A #gulong |
95 | * @error: #GError |
96 | * |
97 | * |
98 | * Deprecated: 2.22: Use JavaScriptCore API instead |
99 | **/ |
100 | WEBKIT_DEPRECATED void |
101 | webkit_dom_character_data_delete_data(WebKitDOMCharacterData* self, gulong offset, gulong length, GError** error); |
102 | |
103 | /** |
104 | * webkit_dom_character_data_replace_data: |
105 | * @self: A #WebKitDOMCharacterData |
106 | * @offset: A #gulong |
107 | * @length: A #gulong |
108 | * @data: A #gchar |
109 | * @error: #GError |
110 | * |
111 | * |
112 | * Deprecated: 2.22: Use JavaScriptCore API instead |
113 | **/ |
114 | WEBKIT_DEPRECATED void |
115 | webkit_dom_character_data_replace_data(WebKitDOMCharacterData* self, gulong offset, gulong length, const gchar* data, GError** error); |
116 | |
117 | /** |
118 | * webkit_dom_character_data_get_data: |
119 | * @self: A #WebKitDOMCharacterData |
120 | * |
121 | * Returns: A #gchar |
122 | * |
123 | * Deprecated: 2.22: Use JavaScriptCore API instead |
124 | **/ |
125 | WEBKIT_DEPRECATED gchar* |
126 | webkit_dom_character_data_get_data(WebKitDOMCharacterData* self); |
127 | |
128 | /** |
129 | * webkit_dom_character_data_set_data: |
130 | * @self: A #WebKitDOMCharacterData |
131 | * @value: A #gchar |
132 | * @error: #GError |
133 | * |
134 | * |
135 | * Deprecated: 2.22: Use JavaScriptCore API instead |
136 | **/ |
137 | WEBKIT_DEPRECATED void |
138 | webkit_dom_character_data_set_data(WebKitDOMCharacterData* self, const gchar* value, GError** error); |
139 | |
140 | /** |
141 | * webkit_dom_character_data_get_length: |
142 | * @self: A #WebKitDOMCharacterData |
143 | * |
144 | * Returns: A #gulong |
145 | * |
146 | * Deprecated: 2.22: Use JavaScriptCore API instead |
147 | **/ |
148 | WEBKIT_DEPRECATED gulong |
149 | webkit_dom_character_data_get_length(WebKitDOMCharacterData* self); |
150 | |
151 | G_END_DECLS |
152 | |
153 | #endif /* WebKitDOMCharacterData_h */ |
154 | |