tizen beta release
[framework/web/webkit-efl.git] / DerivedSources / WebKitDOM_CSSRule.h
1 /*
2     Copyright (C) 2011 Samsung Electronics
3
4     This library is free software; you can redistribute it and/or
5     modify it under the terms of the GNU Lesser General Public
6     License as published by the Free Software Foundation; either
7     version 2.1 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     Lesser General Public License for more details.
13
14     You should have received a copy of the GNU Lesser General Public
15     License along with this library; if not, write to the Free Software
16     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17 */
18
19 #ifndef WebKitDOM_CSSRule_h
20 #define WebKitDOM_CSSRule_h
21
22 #include <WebKitDOM_Defines.h>
23 #include <WebKitDOM_Object.h>
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29
30 #define WEBKITDOM_CSSRULE_INIT(objPtr) \
31     (((WebKitDOM_Object*)(objPtr))->p_coreObject) = 0; \
32     (((WebKitDOM_Object*)(objPtr))->deinit) = ewk_webkitdom_cssrule_deinit
33
34 struct _WebKitDOM_CSSRule {
35     WebKitDOM_Object parent_object;
36 };
37
38 #define    WEBKITDOM_UNKNOWN_RULE        0
39 #define    WEBKITDOM_STYLE_RULE        1
40 #define    WEBKITDOM_CHARSET_RULE        2
41 #define    WEBKITDOM_IMPORT_RULE        3
42 #define    WEBKITDOM_MEDIA_RULE        4
43 #define    WEBKITDOM_FONT_FACE_RULE        5
44 #define    WEBKITDOM_PAGE_RULE        6
45 #define    WEBKITDOM_WEBKIT_KEYFRAMES_RULE        8
46 #define    WEBKITDOM_WEBKIT_KEYFRAME_RULE        9
47 #define    WEBKITDOM_WEBKIT_REGION_STYLE_RULE        10
48
49 EAPI unsigned short ewk_webkitdom_cssrule_get_type(WebKitDOM_CSSRule* self);
50
51 EAPI void ewk_webkitdom_cssrule_get_css_text(WebKitDOM_CSSRule* self, WebKitDOM_String* ret);
52 EAPI void ewk_webkitdom_cssrule_set_css_text(WebKitDOM_CSSRule* self, WebKitDOM_String*);
53
54 EAPI void ewk_webkitdom_cssrule_get_parent_style_sheet(WebKitDOM_CSSRule* self, WebKitDOM_CSSStyleSheet* ret);
55
56 EAPI void ewk_webkitdom_cssrule_get_parent_rule(WebKitDOM_CSSRule* self, WebKitDOM_CSSRule* ret);
57
58
59 EAPI void ewk_webkitdom_cssrule_deinit(const WebKitDOM_Object*);
60 EAPI void _copy_webkit_cssrule(WebKitDOM_CSSRule* kitObjSrc, WebKitDOM_CSSRule* ret);
61
62 #ifdef __cplusplus
63 }
64 #endif
65
66 #endif
67