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 WebKitDOMCSSStyleDeclaration_h
25#define WebKitDOMCSSStyleDeclaration_h
26
27#include <glib-object.h>
28#include <webkitdom/WebKitDOMObject.h>
29#include <webkitdom/webkitdomdefines.h>
30
31G_BEGIN_DECLS
32
33#define WEBKIT_DOM_TYPE_CSS_STYLE_DECLARATION (webkit_dom_css_style_declaration_get_type())
34#define WEBKIT_DOM_CSS_STYLE_DECLARATION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_CSS_STYLE_DECLARATION, WebKitDOMCSSStyleDeclaration))
35#define WEBKIT_DOM_CSS_STYLE_DECLARATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_CSS_STYLE_DECLARATION, WebKitDOMCSSStyleDeclarationClass)
36#define WEBKIT_DOM_IS_CSS_STYLE_DECLARATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_CSS_STYLE_DECLARATION))
37#define WEBKIT_DOM_IS_CSS_STYLE_DECLARATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_DOM_TYPE_CSS_STYLE_DECLARATION))
38#define WEBKIT_DOM_CSS_STYLE_DECLARATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_DOM_TYPE_CSS_STYLE_DECLARATION, WebKitDOMCSSStyleDeclarationClass))
39
40struct _WebKitDOMCSSStyleDeclaration {
41 WebKitDOMObject parent_instance;
42};
43
44struct _WebKitDOMCSSStyleDeclarationClass {
45 WebKitDOMObjectClass parent_class;
46};
47
48WEBKIT_DEPRECATED GType
49webkit_dom_css_style_declaration_get_type(void);
50
51/**
52 * webkit_dom_css_style_declaration_get_property_value:
53 * @self: A #WebKitDOMCSSStyleDeclaration
54 * @propertyName: A #gchar
55 *
56 * Returns: A #gchar
57 *
58 * Deprecated: 2.22: Use JavaScriptCore API instead
59**/
60WEBKIT_DEPRECATED gchar*
61webkit_dom_css_style_declaration_get_property_value(WebKitDOMCSSStyleDeclaration* self, const gchar* propertyName);
62
63/**
64 * webkit_dom_css_style_declaration_remove_property:
65 * @self: A #WebKitDOMCSSStyleDeclaration
66 * @propertyName: A #gchar
67 * @error: #GError
68 *
69 * Returns: A #gchar
70 *
71 * Deprecated: 2.22: Use JavaScriptCore API instead
72**/
73WEBKIT_DEPRECATED gchar*
74webkit_dom_css_style_declaration_remove_property(WebKitDOMCSSStyleDeclaration* self, const gchar* propertyName, GError** error);
75
76/**
77 * webkit_dom_css_style_declaration_get_property_priority:
78 * @self: A #WebKitDOMCSSStyleDeclaration
79 * @propertyName: A #gchar
80 *
81 * Returns: A #gchar
82 *
83 * Deprecated: 2.22: Use JavaScriptCore API instead
84**/
85WEBKIT_DEPRECATED gchar*
86webkit_dom_css_style_declaration_get_property_priority(WebKitDOMCSSStyleDeclaration* self, const gchar* propertyName);
87
88/**
89 * webkit_dom_css_style_declaration_set_property:
90 * @self: A #WebKitDOMCSSStyleDeclaration
91 * @propertyName: A #gchar
92 * @value: A #gchar
93 * @priority: A #gchar
94 * @error: #GError
95 *
96 *
97 * Deprecated: 2.22: Use JavaScriptCore API instead
98**/
99WEBKIT_DEPRECATED void
100webkit_dom_css_style_declaration_set_property(WebKitDOMCSSStyleDeclaration* self, const gchar* propertyName, const gchar* value, const gchar* priority, GError** error);
101
102/**
103 * webkit_dom_css_style_declaration_item:
104 * @self: A #WebKitDOMCSSStyleDeclaration
105 * @index: A #gulong
106 *
107 * Returns: A #gchar
108 *
109 * Deprecated: 2.22: Use JavaScriptCore API instead
110**/
111WEBKIT_DEPRECATED gchar*
112webkit_dom_css_style_declaration_item(WebKitDOMCSSStyleDeclaration* self, gulong index);
113
114/**
115 * webkit_dom_css_style_declaration_get_property_shorthand:
116 * @self: A #WebKitDOMCSSStyleDeclaration
117 * @propertyName: A #gchar
118 *
119 * Returns: A #gchar
120 *
121 * Deprecated: 2.22: Use JavaScriptCore API instead
122**/
123WEBKIT_DEPRECATED gchar*
124webkit_dom_css_style_declaration_get_property_shorthand(WebKitDOMCSSStyleDeclaration* self, const gchar* propertyName);
125
126/**
127 * webkit_dom_css_style_declaration_is_property_implicit:
128 * @self: A #WebKitDOMCSSStyleDeclaration
129 * @propertyName: A #gchar
130 *
131 * Returns: A #gboolean
132 *
133 * Deprecated: 2.22: Use JavaScriptCore API instead
134**/
135WEBKIT_DEPRECATED gboolean
136webkit_dom_css_style_declaration_is_property_implicit(WebKitDOMCSSStyleDeclaration* self, const gchar* propertyName);
137
138/**
139 * webkit_dom_css_style_declaration_get_css_text:
140 * @self: A #WebKitDOMCSSStyleDeclaration
141 *
142 * Returns: A #gchar
143 *
144 * Deprecated: 2.22: Use JavaScriptCore API instead
145**/
146WEBKIT_DEPRECATED gchar*
147webkit_dom_css_style_declaration_get_css_text(WebKitDOMCSSStyleDeclaration* self);
148
149/**
150 * webkit_dom_css_style_declaration_set_css_text:
151 * @self: A #WebKitDOMCSSStyleDeclaration
152 * @value: A #gchar
153 * @error: #GError
154 *
155 *
156 * Deprecated: 2.22: Use JavaScriptCore API instead
157**/
158WEBKIT_DEPRECATED void
159webkit_dom_css_style_declaration_set_css_text(WebKitDOMCSSStyleDeclaration* self, const gchar* value, GError** error);
160
161/**
162 * webkit_dom_css_style_declaration_get_length:
163 * @self: A #WebKitDOMCSSStyleDeclaration
164 *
165 * Returns: A #gulong
166 *
167 * Deprecated: 2.22: Use JavaScriptCore API instead
168**/
169WEBKIT_DEPRECATED gulong
170webkit_dom_css_style_declaration_get_length(WebKitDOMCSSStyleDeclaration* self);
171
172/**
173 * webkit_dom_css_style_declaration_get_parent_rule:
174 * @self: A #WebKitDOMCSSStyleDeclaration
175 *
176 * Returns: (transfer full): A #WebKitDOMCSSRule
177 *
178 * Deprecated: 2.22: Use JavaScriptCore API instead
179**/
180WEBKIT_DEPRECATED WebKitDOMCSSRule*
181webkit_dom_css_style_declaration_get_parent_rule(WebKitDOMCSSStyleDeclaration* self);
182
183G_END_DECLS
184
185#endif /* WebKitDOMCSSStyleDeclaration_h */
186