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 WebKitDOMCSSStyleSheet_h
25#define WebKitDOMCSSStyleSheet_h
26
27#include <glib-object.h>
28#include <webkitdom/WebKitDOMStyleSheet.h>
29#include <webkitdom/webkitdomdefines.h>
30
31G_BEGIN_DECLS
32
33#define WEBKIT_DOM_TYPE_CSS_STYLE_SHEET (webkit_dom_css_style_sheet_get_type())
34#define WEBKIT_DOM_CSS_STYLE_SHEET(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_CSS_STYLE_SHEET, WebKitDOMCSSStyleSheet))
35#define WEBKIT_DOM_CSS_STYLE_SHEET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_CSS_STYLE_SHEET, WebKitDOMCSSStyleSheetClass)
36#define WEBKIT_DOM_IS_CSS_STYLE_SHEET(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_CSS_STYLE_SHEET))
37#define WEBKIT_DOM_IS_CSS_STYLE_SHEET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_DOM_TYPE_CSS_STYLE_SHEET))
38#define WEBKIT_DOM_CSS_STYLE_SHEET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_DOM_TYPE_CSS_STYLE_SHEET, WebKitDOMCSSStyleSheetClass))
39
40struct _WebKitDOMCSSStyleSheet {
41 WebKitDOMStyleSheet parent_instance;
42};
43
44struct _WebKitDOMCSSStyleSheetClass {
45 WebKitDOMStyleSheetClass parent_class;
46};
47
48WEBKIT_DEPRECATED GType
49webkit_dom_css_style_sheet_get_type(void);
50
51/**
52 * webkit_dom_css_style_sheet_insert_rule:
53 * @self: A #WebKitDOMCSSStyleSheet
54 * @rule: A #gchar
55 * @index: A #gulong
56 * @error: #GError
57 *
58 * Returns: A #gulong
59 *
60 * Deprecated: 2.22: Use JavaScriptCore API instead
61**/
62WEBKIT_DEPRECATED gulong
63webkit_dom_css_style_sheet_insert_rule(WebKitDOMCSSStyleSheet* self, const gchar* rule, gulong index, GError** error);
64
65/**
66 * webkit_dom_css_style_sheet_delete_rule:
67 * @self: A #WebKitDOMCSSStyleSheet
68 * @index: A #gulong
69 * @error: #GError
70 *
71 *
72 * Deprecated: 2.22: Use JavaScriptCore API instead
73**/
74WEBKIT_DEPRECATED void
75webkit_dom_css_style_sheet_delete_rule(WebKitDOMCSSStyleSheet* self, gulong index, GError** error);
76
77/**
78 * webkit_dom_css_style_sheet_add_rule:
79 * @self: A #WebKitDOMCSSStyleSheet
80 * @selector: A #gchar
81 * @style: A #gchar
82 * @index: A #gulong
83 * @error: #GError
84 *
85 * Returns: A #glong
86 *
87 * Deprecated: 2.22: Use JavaScriptCore API instead
88**/
89WEBKIT_DEPRECATED glong
90webkit_dom_css_style_sheet_add_rule(WebKitDOMCSSStyleSheet* self, const gchar* selector, const gchar* style, gulong index, GError** error);
91
92/**
93 * webkit_dom_css_style_sheet_remove_rule:
94 * @self: A #WebKitDOMCSSStyleSheet
95 * @index: A #gulong
96 * @error: #GError
97 *
98 *
99 * Deprecated: 2.22: Use JavaScriptCore API instead
100**/
101WEBKIT_DEPRECATED void
102webkit_dom_css_style_sheet_remove_rule(WebKitDOMCSSStyleSheet* self, gulong index, GError** error);
103
104/**
105 * webkit_dom_css_style_sheet_get_owner_rule:
106 * @self: A #WebKitDOMCSSStyleSheet
107 *
108 * Returns: (transfer full): A #WebKitDOMCSSRule
109 *
110 * Deprecated: 2.22: Use JavaScriptCore API instead
111**/
112WEBKIT_DEPRECATED WebKitDOMCSSRule*
113webkit_dom_css_style_sheet_get_owner_rule(WebKitDOMCSSStyleSheet* self);
114
115/**
116 * webkit_dom_css_style_sheet_get_css_rules:
117 * @self: A #WebKitDOMCSSStyleSheet
118 *
119 * Returns: (transfer full): A #WebKitDOMCSSRuleList
120 *
121 * Deprecated: 2.22: Use JavaScriptCore API instead
122**/
123WEBKIT_DEPRECATED WebKitDOMCSSRuleList*
124webkit_dom_css_style_sheet_get_css_rules(WebKitDOMCSSStyleSheet* self);
125
126/**
127 * webkit_dom_css_style_sheet_get_rules:
128 * @self: A #WebKitDOMCSSStyleSheet
129 *
130 * Returns: (transfer full): A #WebKitDOMCSSRuleList
131 *
132 * Deprecated: 2.22: Use JavaScriptCore API instead
133**/
134WEBKIT_DEPRECATED WebKitDOMCSSRuleList*
135webkit_dom_css_style_sheet_get_rules(WebKitDOMCSSStyleSheet* self);
136
137G_END_DECLS
138
139#endif /* WebKitDOMCSSStyleSheet_h */
140