2 Copyright (C) 2011 Samsung Electronics
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.
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.
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
19 #ifndef WebKitDOM_CSSRule_h
20 #define WebKitDOM_CSSRule_h
22 #include <WebKitDOM_Defines.h>
23 #include <WebKitDOM_Object.h>
30 #define WEBKITDOM_CSSRULE_INIT(objPtr) \
31 (((WebKitDOM_Object*)(objPtr))->p_coreObject) = 0; \
32 (((WebKitDOM_Object*)(objPtr))->deinit) = ewk_webkitdom_cssrule_deinit
34 struct _WebKitDOM_CSSRule {
35 WebKitDOM_Object parent_object;
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
49 EAPI unsigned short ewk_webkitdom_cssrule_get_type(WebKitDOM_CSSRule* self);
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*);
54 EAPI void ewk_webkitdom_cssrule_get_parent_style_sheet(WebKitDOM_CSSRule* self, WebKitDOM_CSSStyleSheet* ret);
56 EAPI void ewk_webkitdom_cssrule_get_parent_rule(WebKitDOM_CSSRule* self, WebKitDOM_CSSRule* ret);
59 EAPI void ewk_webkitdom_cssrule_deinit(const WebKitDOM_Object*);
60 EAPI void _copy_webkit_cssrule(WebKitDOM_CSSRule* kitObjSrc, WebKitDOM_CSSRule* ret);