2 ;; PyWebKitGtk - Python bindings to WebKit/GTK+
4 ;; Copyright (C) 2009 Jan Michael Alonzo <jmalonzo@gmail.com>
6 ;; This library is free software; you can redistribute it and/or
7 ;; modify it under the terms of the GNU Library General Public
8 ;; License as published by the Free Software Foundation; either
9 ;; version 2 of the License, or (at your option) any later version.
11 ;; This library is distributed in the hope that it will be useful,
12 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 ;; Library General Public License for more details.
16 ;; You should have received a copy of the GNU Library General Public
17 ;; License along with this library; if not, write to the Free Software
18 ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA
22 ;; from webkit/webkitwebinspector.h
23 (define-method get_web_view
24 (of-object "WebKitWebInspector")
25 (c-name "webkit_web_inspector_get_web_view")
26 (return-type "WebKitWebView*")
29 (define-method get_inspected_uri
30 (of-object "WebKitWebInspector")
31 (c-name "webkit_web_inspector_get_inspected_uri")
32 (return-type "const-gchar*")
35 ;; from webkit/webkitwebview.h
36 (define-method get_web_inspector
37 (of-object "WebKitWebView")
38 (c-name "webkit_web_view_get_inspector")
39 (return-type "WebKitWebInspector*")
42 (define-method get_window_features
43 (of-object "WebKitWebView")
44 (c-name "webkit_web_view_get_window_features")
45 (return-type "WebKitWebWindowFeatures*")
48 (define-method reload_bypass_cache
49 (of-object "WebKitWebView")
50 (c-name "webkit_web_view_reload_bypass_cache")
54 (define-method can_show_mime_type
55 (of-object "WebKitWebView")
56 (c-name "webkit_web_view_can_show_mime_type")
57 (return-type "gboolean")
59 '("const-gchar*" "mime_type")
63 (define-method get_encoding
64 (of-object "WebKitWebView")
65 (c-name "webkit_web_view_get_encoding")
66 (return-type "const-gchar*")
69 (define-method set_custom_encoding
70 (of-object "WebKitWebView")
71 (c-name "webkit_web_view_set_custom_encoding")
74 '("const-gchar*" "encoding")
78 (define-method get_custom_encoding
79 (of-object "WebKitWebView")
80 (c-name "webkit_web_view_get_custom_encoding")
81 (return-type "const-gchar*")
84 ;; from webkit/webkitwebwindowfeatures.h
85 (define-function webkit_web_window_features_new
86 (is-constructor-of "WebKitWebWindowFeatures")
87 (c-name "webkit_web_window_features_new")
88 (caller-owns-return #t)
89 (return-type "WebKitWebWindowFeatures*")
93 (of-object "WebKitWebWindowFeatures")
94 (c-name "webkit_web_window_features_equal")
95 (return-type "gboolean")
97 '("WebKitWebWindowFeatures*" "other_features")
101 ;; from webkit/webkitwebnavigationaction.h
103 (define-method get_reason
104 (of-object "WebKitWebNavigationAction")
105 (c-name "webkit_web_navigation_action_get_reason")
106 (return-type "WebKitWebNavigationReason")
109 (define-method set_reason
110 (of-object "WebKitWebNavigationAction")
111 (c-name "webkit_web_navigation_action_set_reason")
114 '("WebKitWebNavigationReason" "reason")
118 (define-method get_original_uri
119 (of-object "WebKitWebNavigationAction")
120 (c-name "webkit_web_navigation_action_get_original_uri")
121 (return-type "const-gchar*")
124 (define-method set_original_uri
125 (of-object "WebKitWebNavigationAction")
126 (c-name "webkit_web_navigation_action_set_original_uri")
129 '("const-gchar*" "original_uri")
133 (define-method get_button
134 (of-object "WebKitWebNavigationAction")
135 (c-name "webkit_web_navigation_action_get_button")
139 (define-method get_modifier_state
140 (of-object "WebKitWebNavigationAction")
141 (c-name "webkit_web_navigation_action_get_modifier_state")
145 ;; from webkit/webkitwebpolicydecision.h
148 (of-object "WebKitWebPolicyDecision")
149 (c-name "webkit_web_policy_decision_use")
153 (define-method ignore
154 (of-object "WebKitWebPolicyDecision")
155 (c-name "webkit_web_policy_decision_ignore")
159 (define-method download
160 (of-object "WebKitWebPolicyDecision")
161 (c-name "webkit_web_policy_decision_download")
165 ;; from webkit/webkitwebbackforwardlist.h
167 (define-method add_item
168 (of-object "WebKitWebBackForwardList")
169 (c-name "webkit_web_back_forward_list_add_item")
172 '("WebKitWebHistoryItem*" "history_item")
176 ;; from webkit/webkitwebframe.h
178 (define-method load_uri
179 (of-object "WebKitWebFrame")
180 (c-name "webkit_web_frame_load_uri")
183 '("const-gchar*" "uri")
187 (define-method load_string
188 (of-object "WebKitWebFrame")
189 (c-name "webkit_web_frame_load_string")
192 '("const-gchar*" "content")
193 ("const-gchar*" "mime_type")
194 ("const-gchar*" "encoding")
195 ("const-gchar*" "base_uri")
199 ;; from webkit/webkitdownload.h
200 (define-function webkit_download_new
201 (is-constructor-of "WebKitDownload")
202 (c-name "webkit_download_new")
203 (caller-owns-return #t)
204 (return-type "WebKitDownload*")
208 (of-object "WebKitDownload")
209 (c-name "webkit_download_start")
213 (define-method cancel
214 (of-object "WebKitDownload")
215 (c-name "webkit_download_cancel")
219 (define-method get_uri
220 (of-object "WebKitDownload")
221 (c-name "webkit_download_get_uri")
222 (return-type "const-gchar*")
225 (define-method get_network_request
226 (of-object "WebKitDownload")
227 (c-name "webkit_download_get_network_request")
228 (return-type "WebKitNetworkRequest*")
231 (define-method get_suggested_filename
232 (of-object "WebKitDownload")
233 (c-name "webkit_download_get_suggested_filename")
234 (return-type "const-gchar*")
237 (define-method get_destination_uri
238 (of-object "WebKitDownload")
239 (c-name "webkit_download_get_destination_uri")
240 (return-type "const-gchar*")
243 (define-method set_destination_uri
244 (of-object "WebKitDownload")
245 (c-name "webkit_download_set_destination_uri")
248 '("const-gchar*" "destination_uri")
252 (define-method get_progress
253 (of-object "WebKitDownload")
254 (c-name "webkit_download_get_progress")
255 (return-type "gdouble")
258 (define-method get_elapsed_time
259 (of-object "WebKitDownload")
260 (c-name "webkit_download_get_elapsed_time")
261 (return-type "gdouble")
264 (define-method get_total_size
265 (of-object "WebKitDownload")
266 (c-name "webkit_download_get_total_size")
267 (return-type "guint64")
270 (define-method get_current_size
271 (of-object "WebKitDownload")
272 (c-name "webkit_download_get_current_size")
273 (return-type "guint64")
276 (define-method get_status
277 (of-object "WebKitDownload")
278 (c-name "webkit_download_get_status")
279 (return-type "WebKitDownloadStatus")