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 WebKitDOMCSSRule_h
25#define WebKitDOMCSSRule_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_RULE (webkit_dom_css_rule_get_type())
34#define WEBKIT_DOM_CSS_RULE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_CSS_RULE, WebKitDOMCSSRule))
35#define WEBKIT_DOM_CSS_RULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_CSS_RULE, WebKitDOMCSSRuleClass)
36#define WEBKIT_DOM_IS_CSS_RULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_CSS_RULE))
37#define WEBKIT_DOM_IS_CSS_RULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_DOM_TYPE_CSS_RULE))
38#define WEBKIT_DOM_CSS_RULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_DOM_TYPE_CSS_RULE, WebKitDOMCSSRuleClass))
39
40#ifndef WEBKIT_DISABLE_DEPRECATED
41
42/**
43 * WEBKIT_DOM_CSS_RULE_UNKNOWN_RULE:
44 *
45 * Deprecated: 2.22: Use JavaScriptCore API instead
46 */
47#define WEBKIT_DOM_CSS_RULE_UNKNOWN_RULE 0
48
49/**
50 * WEBKIT_DOM_CSS_RULE_STYLE_RULE:
51 *
52 * Deprecated: 2.22: Use JavaScriptCore API instead
53 */
54#define WEBKIT_DOM_CSS_RULE_STYLE_RULE 1
55
56/**
57 * WEBKIT_DOM_CSS_RULE_CHARSET_RULE:
58 *
59 * Deprecated: 2.22: Use JavaScriptCore API instead
60 */
61#define WEBKIT_DOM_CSS_RULE_CHARSET_RULE 2
62
63/**
64 * WEBKIT_DOM_CSS_RULE_IMPORT_RULE:
65 *
66 * Deprecated: 2.22: Use JavaScriptCore API instead
67 */
68#define WEBKIT_DOM_CSS_RULE_IMPORT_RULE 3
69
70/**
71 * WEBKIT_DOM_CSS_RULE_MEDIA_RULE:
72 *
73 * Deprecated: 2.22: Use JavaScriptCore API instead
74 */
75#define WEBKIT_DOM_CSS_RULE_MEDIA_RULE 4
76
77/**
78 * WEBKIT_DOM_CSS_RULE_FONT_FACE_RULE:
79 *
80 * Deprecated: 2.22: Use JavaScriptCore API instead
81 */
82#define WEBKIT_DOM_CSS_RULE_FONT_FACE_RULE 5
83
84/**
85 * WEBKIT_DOM_CSS_RULE_PAGE_RULE:
86 *
87 * Deprecated: 2.22: Use JavaScriptCore API instead
88 */
89#define WEBKIT_DOM_CSS_RULE_PAGE_RULE 6
90
91#endif /* WEBKIT_DISABLE_DEPRECATED */
92
93struct _WebKitDOMCSSRule {
94 WebKitDOMObject parent_instance;
95};
96
97struct _WebKitDOMCSSRuleClass {
98 WebKitDOMObjectClass parent_class;
99};
100
101WEBKIT_DEPRECATED GType
102webkit_dom_css_rule_get_type(void);
103
104/**
105 * webkit_dom_css_rule_get_rule_type:
106 * @self: A #WebKitDOMCSSRule
107 *
108 * Returns: A #gushort
109 *
110 * Deprecated: 2.22: Use JavaScriptCore API instead
111**/
112WEBKIT_DEPRECATED gushort
113webkit_dom_css_rule_get_rule_type(WebKitDOMCSSRule* self);
114
115/**
116 * webkit_dom_css_rule_get_css_text:
117 * @self: A #WebKitDOMCSSRule
118 *
119 * Returns: A #gchar
120 *
121 * Deprecated: 2.22: Use JavaScriptCore API instead
122**/
123WEBKIT_DEPRECATED gchar*
124webkit_dom_css_rule_get_css_text(WebKitDOMCSSRule* self);
125
126/**
127 * webkit_dom_css_rule_set_css_text:
128 * @self: A #WebKitDOMCSSRule
129 * @value: A #gchar
130 * @error: #GError
131 *
132 *
133 * Deprecated: 2.22: Use JavaScriptCore API instead
134**/
135WEBKIT_DEPRECATED void
136webkit_dom_css_rule_set_css_text(WebKitDOMCSSRule* self, const gchar* value, GError** error);
137
138/**
139 * webkit_dom_css_rule_get_parent_style_sheet:
140 * @self: A #WebKitDOMCSSRule
141 *
142 * Returns: (transfer full): A #WebKitDOMCSSStyleSheet
143 *
144 * Deprecated: 2.22: Use JavaScriptCore API instead
145**/
146WEBKIT_DEPRECATED WebKitDOMCSSStyleSheet*
147webkit_dom_css_rule_get_parent_style_sheet(WebKitDOMCSSRule* self);
148
149/**
150 * webkit_dom_css_rule_get_parent_rule:
151 * @self: A #WebKitDOMCSSRule
152 *
153 * Returns: (transfer full): A #WebKitDOMCSSRule
154 *
155 * Deprecated: 2.22: Use JavaScriptCore API instead
156**/
157WEBKIT_DEPRECATED WebKitDOMCSSRule*
158webkit_dom_css_rule_get_parent_rule(WebKitDOMCSSRule* self);
159
160G_END_DECLS
161
162#endif /* WebKitDOMCSSRule_h */
163