| 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) && !defined(WEBKIT_DOM_USE_UNSTABLE_API) |
| 21 | #error "Only <webkitdom/webkitdom.h> can be included directly." |
| 22 | #endif |
| 23 | |
| 24 | #ifndef WebKitDOMDOMTokenList_h |
| 25 | #define WebKitDOMDOMTokenList_h |
| 26 | |
| 27 | #include <glib-object.h> |
| 28 | #include <webkitdom/WebKitDOMObject.h> |
| 29 | #include <webkitdom/webkitdomdefines.h> |
| 30 | |
| 31 | G_BEGIN_DECLS |
| 32 | |
| 33 | #define WEBKIT_DOM_TYPE_DOM_TOKEN_LIST (webkit_dom_dom_token_list_get_type()) |
| 34 | #define WEBKIT_DOM_DOM_TOKEN_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_DOM_TOKEN_LIST, WebKitDOMDOMTokenList)) |
| 35 | #define WEBKIT_DOM_DOM_TOKEN_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_DOM_TOKEN_LIST, WebKitDOMDOMTokenListClass) |
| 36 | #define WEBKIT_DOM_IS_DOM_TOKEN_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_DOM_TOKEN_LIST)) |
| 37 | #define WEBKIT_DOM_IS_DOM_TOKEN_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_DOM_TYPE_DOM_TOKEN_LIST)) |
| 38 | #define WEBKIT_DOM_DOM_TOKEN_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_DOM_TYPE_DOM_TOKEN_LIST, WebKitDOMDOMTokenListClass)) |
| 39 | |
| 40 | struct _WebKitDOMDOMTokenList { |
| 41 | WebKitDOMObject parent_instance; |
| 42 | }; |
| 43 | |
| 44 | struct _WebKitDOMDOMTokenListClass { |
| 45 | WebKitDOMObjectClass parent_class; |
| 46 | }; |
| 47 | |
| 48 | WEBKIT_DEPRECATED GType |
| 49 | webkit_dom_dom_token_list_get_type(void); |
| 50 | |
| 51 | /** |
| 52 | * webkit_dom_dom_token_list_item: |
| 53 | * @self: A #WebKitDOMDOMTokenList |
| 54 | * @index: A #gulong |
| 55 | * |
| 56 | * Returns: A #gchar |
| 57 | * |
| 58 | * Since: 2.16 |
| 59 | * |
| 60 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 61 | */ |
| 62 | WEBKIT_DEPRECATED gchar* |
| 63 | webkit_dom_dom_token_list_item(WebKitDOMDOMTokenList* self, gulong index); |
| 64 | |
| 65 | /** |
| 66 | * webkit_dom_dom_token_list_contains: |
| 67 | * @self: A #WebKitDOMDOMTokenList |
| 68 | * @token: A #gchar |
| 69 | * |
| 70 | * Returns: A #gboolean |
| 71 | * |
| 72 | * Since: 2.16 |
| 73 | * |
| 74 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 75 | */ |
| 76 | WEBKIT_DEPRECATED gboolean |
| 77 | webkit_dom_dom_token_list_contains(WebKitDOMDOMTokenList* self, const gchar* token); |
| 78 | |
| 79 | /** |
| 80 | * webkit_dom_dom_token_list_add: |
| 81 | * @self: A #WebKitDOMDOMTokenList |
| 82 | * @error: #GError |
| 83 | * @...: list of #gchar ended by %NULL. |
| 84 | * |
| 85 | * Since: 2.16 |
| 86 | * |
| 87 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 88 | */ |
| 89 | WEBKIT_DEPRECATED void |
| 90 | webkit_dom_dom_token_list_add(WebKitDOMDOMTokenList* self, GError** error, ...); |
| 91 | |
| 92 | /** |
| 93 | * webkit_dom_dom_token_list_remove: |
| 94 | * @self: A #WebKitDOMDOMTokenList |
| 95 | * @error: #GError |
| 96 | * @...: list of #gchar ended by %NULL. |
| 97 | * |
| 98 | * Since: 2.16 |
| 99 | * |
| 100 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 101 | */ |
| 102 | WEBKIT_DEPRECATED void |
| 103 | webkit_dom_dom_token_list_remove(WebKitDOMDOMTokenList* self, GError** error, ...); |
| 104 | |
| 105 | /** |
| 106 | * webkit_dom_dom_token_list_toggle: |
| 107 | * @self: A #WebKitDOMDOMTokenList |
| 108 | * @token: A #gchar |
| 109 | * @force: A #gboolean |
| 110 | * @error: #GError |
| 111 | * |
| 112 | * Returns: A #gboolean |
| 113 | * |
| 114 | * Since: 2.16 |
| 115 | * |
| 116 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 117 | */ |
| 118 | WEBKIT_DEPRECATED gboolean |
| 119 | webkit_dom_dom_token_list_toggle(WebKitDOMDOMTokenList* self, const gchar* token, gboolean force, GError** error); |
| 120 | |
| 121 | /** |
| 122 | * webkit_dom_dom_token_list_replace: |
| 123 | * @self: A #WebKitDOMDOMTokenList |
| 124 | * @token: A #gchar |
| 125 | * @newToken: A #gchar |
| 126 | * @error: #GError |
| 127 | * |
| 128 | * Since: 2.16 |
| 129 | * |
| 130 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 131 | */ |
| 132 | WEBKIT_DEPRECATED void |
| 133 | webkit_dom_dom_token_list_replace(WebKitDOMDOMTokenList* self, const gchar* token, const gchar* newToken, GError** error); |
| 134 | |
| 135 | /** |
| 136 | * webkit_dom_dom_token_list_get_length: |
| 137 | * @self: A #WebKitDOMDOMTokenList |
| 138 | * |
| 139 | * Returns: A #gulong |
| 140 | * |
| 141 | * Since: 2.16 |
| 142 | * |
| 143 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 144 | */ |
| 145 | WEBKIT_DEPRECATED gulong |
| 146 | webkit_dom_dom_token_list_get_length(WebKitDOMDOMTokenList* self); |
| 147 | |
| 148 | /** |
| 149 | * webkit_dom_dom_token_list_get_value: |
| 150 | * @self: A #WebKitDOMDOMTokenList |
| 151 | * |
| 152 | * Returns: A #gchar |
| 153 | * |
| 154 | * Since: 2.16 |
| 155 | * |
| 156 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 157 | */ |
| 158 | WEBKIT_DEPRECATED gchar* |
| 159 | webkit_dom_dom_token_list_get_value(WebKitDOMDOMTokenList* self); |
| 160 | |
| 161 | /** |
| 162 | * webkit_dom_dom_token_list_set_value: |
| 163 | * @self: A #WebKitDOMDOMTokenList |
| 164 | * @value: A #gchar |
| 165 | * |
| 166 | * Since: 2.16 |
| 167 | * |
| 168 | * Deprecated: 2.22: Use JavaScriptCore API instead |
| 169 | */ |
| 170 | WEBKIT_DEPRECATED void |
| 171 | webkit_dom_dom_token_list_set_value(WebKitDOMDOMTokenList* self, const gchar* value); |
| 172 | |
| 173 | G_END_DECLS |
| 174 | |
| 175 | #endif /* WebKitDOMDOMTokenList_h */ |
| 176 | |