tizen beta release
[profile/ivi/webkit-efl.git] / DerivedSources / WebKitDOM_NodeFilter.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_NodeFilter_h
20 #define WebKitDOM_NodeFilter_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_NODEFILTER_INIT(objPtr) \
31     (((WebKitDOM_Object*)(objPtr))->p_coreObject) = 0; \
32     (((WebKitDOM_Object*)(objPtr))->deinit) = ewk_webkitdom_nodefilter_deinit
33
34 struct _WebKitDOM_NodeFilter {
35     WebKitDOM_Object parent_object;
36 };
37
38 #define    WEBKITDOM_FILTER_ACCEPT        1
39 #define    WEBKITDOM_FILTER_REJECT        2
40 #define    WEBKITDOM_FILTER_SKIP        3
41 #define    WEBKITDOM_SHOW_ALL        0xFFFFFFFF
42 #define    WEBKITDOM_SHOW_ELEMENT        0x00000001
43 #define    WEBKITDOM_SHOW_ATTRIBUTE        0x00000002
44 #define    WEBKITDOM_SHOW_TEXT        0x00000004
45 #define    WEBKITDOM_SHOW_CDATA_SECTION        0x00000008
46 #define    WEBKITDOM_SHOW_ENTITY_REFERENCE        0x00000010
47 #define    WEBKITDOM_SHOW_ENTITY        0x00000020
48 #define    WEBKITDOM_SHOW_PROCESSING_INSTRUCTION        0x00000040
49 #define    WEBKITDOM_SHOW_COMMENT        0x00000080
50 #define    WEBKITDOM_SHOW_DOCUMENT        0x00000100
51 #define    WEBKITDOM_SHOW_DOCUMENT_TYPE        0x00000200
52 #define    WEBKITDOM_SHOW_DOCUMENT_FRAGMENT        0x00000400
53 #define    WEBKITDOM_SHOW_NOTATION        0x00000800
54
55 EAPI short ewk_webkitdom_nodefilter_accept_node(WebKitDOM_NodeFilter* self, WebKitDOM_Node* n);
56
57 EAPI void ewk_webkitdom_nodefilter_deinit(const WebKitDOM_Object*);
58 EAPI void _copy_webkit_nodefilter(WebKitDOM_NodeFilter* kitObjSrc, WebKitDOM_NodeFilter* ret);
59
60 #ifdef __cplusplus
61 }
62 #endif
63
64 #endif
65