moved python.m4 to m4/
[pywebkitgtk.git] / webkitgtk.defs
blob09612270819f7622f8c93d9b28b06086b268810e
1 ;; -*- scheme -*-
3 ; object definitions ...
4 (define-object WebView
5   (in-module "WebKitGtk")
6   (parent "GtkContainer")
7   (c-name "WebKitWebView")
8   (gtype-id "WEBKIT_TYPE_WEB_VIEW")
11 ;; waiting for upstream header fix
12 (define-object Frame
13   (in-module "WebKitGtk")
14   (parent "GObject")
15   (c-name "WebKitWebFrame")
16   (gtype-id "WEBKIT_TYPE_WEB_FRAME")
19 (define-object NetworkRequest
20   (in-module "WebKitGtk")
21   (parent "GObject")
22   (c-name "WebKitNetworkRequest")
23   (gtype-id "WEBKIT_TYPE_NETWORK_REQUEST")
26 ;; Enumerations and flags ...
27 ;; TODO: http://bugs.webkit.org/show_bug.cgi?id=16119 - mapping enums to GType
28 ;(define-enum NavigationResponse
29 ;  (in-module "GtkWebKit")
30 ;  (c-name "WebKitNavigationResponse")
31 ;  (values
32 ;   '("accept" "WEBKIT_NAVIGATION_RESPONSE_ACCEPT")
33 ;   '("ignore" "WEBKIT_NAVIGATION_RESPONSE_IGNORE")
34 ;   '("download" "WEBKIT_NAVIGATION_RESPONSE_DOWNLOAD")
35 ;   )
38 ;; From webkitgtkpage.h
40 (define-function webkit_web_view_new
41   (is-constructor-of "WebKitWebView")
42   (c-name "webkit_web_view_new")
43   (caller-owns-return #t)
44   (return-type "GtkWidget*")
47 (define-method can_go_backward
48   (of-object "WebKitWebView")
49   (c-name "webkit_web_view_can_go_backward")
50   (return-type "gboolean")
53 (define-method can_go_forward
54   (of-object "WebKitWebView")
55   (c-name "webkit_web_view_can_go_forward")
56   (return-type "gboolean")
59 (define-method go_backward
60   (of-object "WebKitWebView")
61   (c-name "webkit_web_view_go_backward")
62   (return-type "none")
65 (define-method go_forward
66   (of-object "WebKitWebView")
67   (c-name "webkit_web_view_go_forward")
68   (return-type "none")
71 (define-method stop_loading
72   (of-object "WebKitWebView")
73   (c-name "webkit_web_view_stop_loading")
74   (return-type "none")
77 (define-method open
78   (of-object "WebKitWebView")
79   (c-name "webkit_web_view_open")
80   (return-type "none")
81   (parameters
82    '("const-gchar*" "uri")
83   )
86 (define-method reload
87   (of-object "WebKitWebView")
88   (c-name "webkit_web_view_reload")
89   (return-type "none")
92 (define-method load_html_string
93   (of-object "WebKitWebView")
94   (c-name "webkit_web_view_load_html_string")
95   (return-type "none")
96   (parameters
97    '("const-gchar*" "content")
98    '("const-gchar*" "base_uri")
99    )
102 (define-method load_string
103   (of-object "WebKitWebView")
104   (c-name "webkit_web_view_load_string")
105   (return-type "none")
106   (parameters
107    '("const-gchar*" "content")
108    '("const-gchar*" "content_mimetype")
109    '("const-gchar*" "content_encoding")
110    '("const-gchar*" "base_uri")
111    )
114 (define-method get_main_frame
115   (of-object "WebKitWebView")
116   (c-name "webkit_web_view_get_main_frame")
117   (return-type "WebKitWebFrame*")
120 (define-method execute_script
121   (of-object "WebKitWebView")
122   (c-name "webkit_web_view_execute_script")
123   (return-type "none")
124   (parameters
125    '("const-gchar*" "script")
126    )
129 (define-method get_editable
130   (of-object "WebKitWebView")
131   (c-name "webkit_web_view_get_editable")
132   (return-type "gboolean")
135 (define-method set_editable
136   (of-object "WebKitWebView")
137   (c-name "webkit_web_view_set_editable")
138   (return-type "none")
139   (parameters
140    '("gboolean" "flag")
141    )
143 ;; From webkitgtkframe.h
145 (define-function webkit_web_frame_new
146   (is-constructor-of "WebKitWebFrame")
147   (c-name "webkit_web_frame_new")
148   (caller-owns-return #t)
149   (return-type "WebKitWebFrame*")
150   (properties
151    '("web_view" (argname "web_view"))
152    )
155 (define-method get_web_view
156   (of-object "WebKitWebFrame")
157   (c-name "webkit_web_frame_get_web_view")
158   (caller-owns-return #t)
159   (return-type "WebKitWebView*")
162 (define-method get_name
163   (of-object "WebKitWebFrame")
164   (c-name "webkit_web_frame_get_name")
165   (caller-owns-return #f)
166   (return-type "const-gchar*")
169 (define-method get_title
170   (of-object "WebKitWebFrame")
171   (c-name "webkit_web_frame_get_title")
172   (caller-owns-return #f)
173   (return-type "const-gchar*")
176 (define-method get_location
177   (of-object "WebKitWebFrame")
178   (c-name "webkit_web_frame_get_location")
179   (caller-owns-return #f)
180   (return-type "const-gchar*")
183 (define-method get_parent
184   (of-object "WebKitWebFrame")
185   (c-name "webkit_web_frame_get_parent")
186   (caller-owns-return #f)
187   (return-type "WebKitWebFrame*")
190 (define-method load_request
191   (of-object "WebKitWebFrame")
192   (c-name "webkit_web_frame_load_request")
193   (return-type "none")
194   (parameters
195    '("WebKitNetworkRequest*" "request")
196    )
199 (define-method stop_loading
200   (of-object "WebKitWebFrame")
201   (c-name "webkit_web_frame_stop_loading")
202   (return-type "none")
205 (define-method reload
206   (of-object "WebKitWebFrame")
207   (c-name "webkit_web_frame_reload")
208   (return-type "none")
211 (define-method find_frame
212   (of-object "WebKitWebFrame")
213   (c-name "webkit_web_frame_find_frame")
214   (caller-owns-return #f)
215   (return-type "WebKitWebFrame*")
216   (parameters
217    '("const-gchar*" "name")
218    )
221 ;; TODO: wrap webkit_web_frame_get_global_context
224 ;; From webkitgtknetworkrequest.h
226 (define-function webkit_network_request_new
227   (is-constructor-of "WebKitNetworkRequest")
228   (c-name "webkit_network_request_new")
229   (caller-owns-return #t)
230   (return-type "WebKitNetworkRequest*")
231   (properties
232    '("uri" (argname "uri"))
233    )
236 (define-method set_uri
237   (of-object "WebKitNetworkRequest")
238   (c-name "webkit_network_request_set_uri")
239   (return-type "none")
240   (parameters
241    '("const-gchar*" "uri")
242    )
245 (define-method get_uri
246   (of-object "WebKitNetworkRequest")
247   (c-name "webkit_network_request_get_uri")
248   (caller-owns-return #f)
249   (return-type "const-gchar*")