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 WebKitDOMDOMImplementation_h
25#define WebKitDOMDOMImplementation_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_DOM_IMPLEMENTATION (webkit_dom_dom_implementation_get_type())
34#define WEBKIT_DOM_DOM_IMPLEMENTATION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_DOM_IMPLEMENTATION, WebKitDOMDOMImplementation))
35#define WEBKIT_DOM_DOM_IMPLEMENTATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_DOM_IMPLEMENTATION, WebKitDOMDOMImplementationClass)
36#define WEBKIT_DOM_IS_DOM_IMPLEMENTATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_DOM_IMPLEMENTATION))
37#define WEBKIT_DOM_IS_DOM_IMPLEMENTATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_DOM_TYPE_DOM_IMPLEMENTATION))
38#define WEBKIT_DOM_DOM_IMPLEMENTATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_DOM_TYPE_DOM_IMPLEMENTATION, WebKitDOMDOMImplementationClass))
39
40struct _WebKitDOMDOMImplementation {
41 WebKitDOMObject parent_instance;
42};
43
44struct _WebKitDOMDOMImplementationClass {
45 WebKitDOMObjectClass parent_class;
46};
47
48WEBKIT_DEPRECATED GType
49webkit_dom_dom_implementation_get_type(void);
50
51/**
52 * webkit_dom_dom_implementation_has_feature:
53 * @self: A #WebKitDOMDOMImplementation
54 * @feature: A #gchar
55 * @version: A #gchar
56 *
57 * Returns: A #gboolean
58 *
59 * Deprecated: 2.22: Use JavaScriptCore API instead
60**/
61WEBKIT_DEPRECATED gboolean
62webkit_dom_dom_implementation_has_feature(WebKitDOMDOMImplementation* self, const gchar* feature, const gchar* version);
63
64/**
65 * webkit_dom_dom_implementation_create_document_type:
66 * @self: A #WebKitDOMDOMImplementation
67 * @qualifiedName: A #gchar
68 * @publicId: A #gchar
69 * @systemId: A #gchar
70 * @error: #GError
71 *
72 * Returns: (transfer none): A #WebKitDOMDocumentType
73 *
74 * Deprecated: 2.22: Use JavaScriptCore API instead
75**/
76WEBKIT_DEPRECATED WebKitDOMDocumentType*
77webkit_dom_dom_implementation_create_document_type(WebKitDOMDOMImplementation* self, const gchar* qualifiedName, const gchar* publicId, const gchar* systemId, GError** error);
78
79/**
80 * webkit_dom_dom_implementation_create_document:
81 * @self: A #WebKitDOMDOMImplementation
82 * @namespaceURI: (allow-none): A #gchar
83 * @qualifiedName: A #gchar
84 * @doctype: (allow-none): A #WebKitDOMDocumentType
85 * @error: #GError
86 *
87 * Returns: (transfer none): A #WebKitDOMDocument
88 *
89 * Deprecated: 2.22: Use JavaScriptCore API instead
90**/
91WEBKIT_DEPRECATED WebKitDOMDocument*
92webkit_dom_dom_implementation_create_document(WebKitDOMDOMImplementation* self, const gchar* namespaceURI, const gchar* qualifiedName, WebKitDOMDocumentType* doctype, GError** error);
93
94/**
95 * webkit_dom_dom_implementation_create_css_style_sheet:
96 * @self: A #WebKitDOMDOMImplementation
97 * @title: A #gchar
98 * @media: A #gchar
99 * @error: #GError
100 *
101 * Returns: (transfer full): A #WebKitDOMCSSStyleSheet
102 *
103 * Deprecated: 2.22: Use JavaScriptCore API instead
104**/
105WEBKIT_DEPRECATED WebKitDOMCSSStyleSheet*
106webkit_dom_dom_implementation_create_css_style_sheet(WebKitDOMDOMImplementation* self, const gchar* title, const gchar* media, GError** error);
107
108/**
109 * webkit_dom_dom_implementation_create_html_document:
110 * @self: A #WebKitDOMDOMImplementation
111 * @title: A #gchar
112 *
113 * Returns: (transfer none): A #WebKitDOMHTMLDocument
114 *
115 * Deprecated: 2.22: Use JavaScriptCore API instead
116**/
117WEBKIT_DEPRECATED WebKitDOMHTMLDocument*
118webkit_dom_dom_implementation_create_html_document(WebKitDOMDOMImplementation* self, const gchar* title);
119
120G_END_DECLS
121
122#endif /* WebKitDOMDOMImplementation_h */
123