PyWebKitGtk 1.1.7
[pywebkitgtk.git] / webkit / webkit-1.0.2.defs
blob7d723f52ca65a73a9598a6321d73c42d2788b02a
1 ;; -*- scheme -*-
2 ;; PyWebKitGtk - Python bindings to WebKit/GTK+
3 ;;
4 ;; Copyright (C) 2009  Jan Michael Alonzo <jmalonzo@gmail.com>
5 ;; 
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.
10 ;; 
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.
15 ;; 
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/webkitwebview.h>
24 (define-function webkit_web_view_new
25   (is-constructor-of "WebKitWebView")
26   (c-name "webkit_web_view_new")
27   (caller-owns-return #t)
28   (return-type "GtkWidget*")
31 (define-method set_maintains_back_forward_list
32   (of-object "WebKitWebView")
33   (c-name "webkit_web_view_set_maintains_back_forward_list")
34   (parameters
35    '("gboolean" "flag")
36    )
39 (define-method get_back_forward_list
40   (of-object "WebKitWebView")
41   (c-name "webkit_web_view_get_back_forward_list")
42   (return-type "WebKitWebBackForwardList*")
45 (define-method go_to_back_forward_item
46   (of-object "WebKitWebView")
47   (c-name "webkit_web_view_go_to_back_forward_item")
48   (return-type "gboolean")
49   (parameters
50    '("WebKitWebHistoryItem*" "item")
51    )
54 (define-method can_go_back
55   (of-object "WebKitWebView")
56   (c-name "webkit_web_view_can_go_back")
57   (return-type "gboolean")
60 (define-method can_go_forward
61   (of-object "WebKitWebView")
62   (c-name "webkit_web_view_can_go_forward")
63   (return-type "gboolean")
66 (define-method go_back
67   (of-object "WebKitWebView")
68   (c-name "webkit_web_view_go_back")
69   (return-type "none")
72 (define-method go_forward
73   (of-object "WebKitWebView")
74   (c-name "webkit_web_view_go_forward")
75   (return-type "none")
78 (define-method go_back_or_forward
79   (of-object "WebKitWebView")
80   (c-name "webkit_web_view_go_back_or_forward")
81   (return-type "none")
82   (parameters
83    '("gint" "steps")
84    )
87 (define-method stop_loading
88   (of-object "WebKitWebView")
89   (c-name "webkit_web_view_stop_loading")
90   (return-type "none")
93 (define-method open
94   (of-object "WebKitWebView")
95   (c-name "webkit_web_view_open")
96   (return-type "none")
97   (parameters
98    '("const-gchar*" "uri")
99   )
102 (define-method reload
103   (of-object "WebKitWebView")
104   (c-name "webkit_web_view_reload")
105   (return-type "none")
108 (define-method load_html_string
109   (of-object "WebKitWebView")
110   (c-name "webkit_web_view_load_html_string")
111   (return-type "none")
112   (parameters
113    '("const-gchar*" "content")
114    '("const-gchar*" "base_uri")
115    )
118 (define-method load_string
119   (of-object "WebKitWebView")
120   (c-name "webkit_web_view_load_string")
121   (return-type "none")
122   (parameters
123    '("const-gchar*" "content")
124    '("const-gchar*" "content_mimetype")
125    '("const-gchar*" "content_encoding")
126    '("const-gchar*" "base_uri")
127    )
130 (define-method get_main_frame
131   (of-object "WebKitWebView")
132   (c-name "webkit_web_view_get_main_frame")
133   (return-type "WebKitWebFrame*")
136 (define-method get_focused_frame
137   (of-object "WebKitWebView")
138   (c-name "webkit_web_view_get_focused_frame")
139   (return-type "WebKitWebFrame*")
142 (define-method execute_script
143   (of-object "WebKitWebView")
144   (c-name "webkit_web_view_execute_script")
145   (return-type "none")
146   (parameters
147    '("const-gchar*" "script")
148    )
151 (define-method get_editable
152   (of-object "WebKitWebView")
153   (c-name "webkit_web_view_get_editable")
154   (return-type "gboolean")
157 (define-method set_editable
158   (of-object "WebKitWebView")
159   (c-name "webkit_web_view_set_editable")
160   (return-type "none")
161   (parameters
162    '("gboolean" "flag")
163    )
166 (define-method search_text
167   (of-object "WebKitWebView")
168   (c-name "webkit_web_view_search_text")
169   (return-type "gboolean")
170   (parameters
171    ("const-gchar*" "string")
172    ("gboolean" "case_sensitive")
173    ("gboolean" "forward")
174    ("gboolean" "wrap")
175    )
178 (define-method mark_text_matches
179   (of-object "WebKitWebView")
180   (c-name "webkit_web_view_mark_text_matches")
181   (return-type "guint")
182   (parameters
183    ("const-gchar*" "string")
184    ("gboolean" "case_sensitive")
185    ("guint" "limit")
186    )
189 (define-method unmark_text_matches
190   (of-object "WebKitWebView")
191   (c-name "webkit_web_view_unmark_text_matches")
192   (return-type "none")
195 (define-method set_highlight_text_matches
196   (of-object "WebKitWebView")
197   (c-name "webkit_web_view_set_highlight_text_matches")
198   (return-type "none")
199   (parameters
200    ("gboolean" "highlight")
201    )
204 (define-method can_cut_clipboard
205   (of-object "WebKitWebView")
206   (c-name "webkit_web_view_can_cut_clipboard")
207   (return-type "gboolean")
210 (define-method can_copy_clipboard
211   (of-object "WebKitWebView")
212   (c-name "webkit_web_view_can_copy_clipboard")
213   (return-type "gboolean")
216 (define-method can_paste_clipboard
217   (of-object "WebKitWebView")
218   (c-name "webkit_web_view_can_paste_clipboard")
219   (return-type "gboolean")
222 (define-method copy_clipboard
223   (of-object "WebKitWebView")
224   (c-name "webkit_web_view_copy_clipboard")
225   (return-type "none")
228 (define-method cut_clipboard
229   (of-object "WebKitWebView")
230   (c-name "webkit_web_view_cut_clipboard")
231   (return-type "none")
234 (define-method paste_clipboard
235   (of-object "WebKitWebView")
236   (c-name "webkit_web_view_paste_clipboard")
237   (return-type "none")
240 (define-method delete_selection
241   (of-object "WebKitWebView")
242   (c-name "webkit_web_view_delete_selection")
243   (return-type "none")
246 (define-method has_selection
247   (of-object "WebKitWebView")
248   (c-name "webkit_web_view_has_selection")
249   (return-type "gboolean")
252 (define-method select_all
253   (of-object "WebKitWebView")
254   (c-name "webkit_web_view_select_all")
255   (return-type "none")
258 (define-method get_copy_target_list
259   (of-object "WebKitWebView")
260   (c-name "webkit_web_view_get_copy_target_list")
261   (return-type "GtkTargetList*")
264 (define-method get_paste_target_list
265   (of-object "WebKitWebView")
266   (c-name "webkit_web_view_get_paste_target_list")
267   (return-type "GtkTargetList*")
270 (define-method set_settings
271   (of-object "WebKitWebView")
272   (c-name "webkit_web_view_set_settings")
273   (return-type "none")
274   (parameters
275    '("WebKitWebSettings" "settings")
276    )
279 (define-method get_settings
280   (of-object "WebKitWebView")
281   (c-name "webkit_web_view_get_settings")
282   (return-type "WebKitWebSettings*")
285 (define-method get_transparent
286   (of-object "WebKitWebView")
287   (c-name "webkit_web_view_get_transparent")
288   (return-type "gboolean")
291 (define-method set_transparent
292   (of-object "WebKitWebView")
293   (c-name "webkit_web_view_set_transparent")
294   (return-type "none")
295   (parameters
296    '("gboolean" "flag")
297    )
300 (define-method get_zoom_level
301   (of-object "WebKitWebView")
302   (c-name "webkit_web_view_get_zoom_level")
303   (return-type "gfloat")
306 (define-method set_zoom_level
307   (of-object "WebKitWebView")
308   (c-name "webkit_web_view_set_zoom_level")
309   (return-type "none")
310   (parameters
311    '("gfloat" "zoom_level")
312    )
315 (define-method zoom_in
316   (of-object "WebKitWebView")
317   (c-name "webkit_web_view_zoom_in")
318   (return-type "none")
321 (define-method zoom_out
322   (of-object "WebKitWebView")
323   (c-name "webkit_web_view_zoom_out")
324   (return-type "none")
327 (define-method get_full_content_zoom
328   (of-object "WebKitWebView")
329   (c-name "webkit_web_view_get_full_content_zoom")
330   (return-type "gboolean")
333 (define-method set_full_content_zoom
334   (of-object "WebKitWebView")
335   (c-name "webkit_web_view_set_full_content_zoom")
336   (return-type "none")
337   (parameters
338    '("gboolean" "full_content_zoom")
339    )
342 ;; From <webkit/webkitwebframe.h>
344 (define-method get_web_view
345   (of-object "WebKitWebFrame")
346   (c-name "webkit_web_frame_get_web_view")
347   (return-type "WebKitWebView*")
350 (define-method get_name
351   (of-object "WebKitWebFrame")
352   (c-name "webkit_web_frame_get_name")
353   (return-type "const-gchar*")
356 (define-method get_title
357   (of-object "WebKitWebFrame")
358   (c-name "webkit_web_frame_get_title")
359   (return-type "const-gchar*")
362 (define-method get_uri
363   (of-object "WebKitWebFrame")
364   (c-name "webkit_web_frame_get_uri")
365   (return-type "const-gchar*")
368 (define-method get_parent
369   (of-object "WebKitWebFrame")
370   (c-name "webkit_web_frame_get_parent")
371   (return-type "WebKitWebFrame*")
374 (define-method load_request
375   (of-object "WebKitWebFrame")
376   (c-name "webkit_web_frame_load_request")
377   (return-type "none")
378   (parameters
379    '("WebKitNetworkRequest*" "request")
380    )
383 (define-method stop_loading
384   (of-object "WebKitWebFrame")
385   (c-name "webkit_web_frame_stop_loading")
386   (return-type "none")
389 (define-method reload
390   (of-object "WebKitWebFrame")
391   (c-name "webkit_web_frame_reload")
392   (return-type "none")
395 (define-method find_frame
396   (of-object "WebKitWebFrame")
397   (c-name "webkit_web_frame_find_frame")
398   (caller-owns-return #f)
399   (return-type "WebKitWebFrame*")
400   (parameters
401    '("const-gchar*" "name")
402    )
405 (define-method get_global_context
406   (of-object "WebKitWebFrame")
407   (c-name "webkit_web_frame_get_global_context")
408   (return-type "JSGlobalContextRef")
411 ;; From <webkit/webkitknetworkrequest.h>
413 (define-function webkit_network_request_new
414   (is-constructor-of "WebKitNetworkRequest")
415   (c-name "webkit_network_request_new")
416   (caller-owns-return #t)
417   (return-type "WebKitNetworkRequest*") 
418   (properties
419    '("uri" (argname "uri"))
420    )
423 (define-method set_uri
424   (of-object "WebKitNetworkRequest")
425   (c-name "webkit_network_request_set_uri")
426   (return-type "none")
427   (parameters
428    '("const-gchar*" "uri")
429    )
432 (define-method get_uri
433   (of-object "WebKitNetworkRequest")
434   (c-name "webkit_network_request_get_uri")
435   (return-type "const-gchar*")
439 ;; From <webkit/webkitwebhistoryitem.h>
441 (define-function webkit_web_history_item_new
442   (is-constructor-of "WebKitWebHistoryItem")
443   (c-name "webkit_web_history_item_new")
444   (caller-owns-return #t)
445   (return-type "WebKitWebHistoryItem*")
446   (properties
447    '("uri" (argname "uri"))
448    '("title" (argname "title"))
449    )
452 (define-method get_title
453   (of-object "WebKitWebHistoryItem")
454   (c-name "webkit_web_history_item_get_title")
455   (return-type "const-gchar*")
458 (define-method get_alternate_title
459   (of-object "WebKitWebHistoryItem")
460   (c-name "webkit_web_history_item_get_alternate_title")
461   (return-type "const-gchar*")
464 (define-method set_alternate_title
465   (of-object "WebKitWebHistoryItem")
466   (c-name "webkit_web_history_item_set_alternate_title")
467   (parameters
468    '("const-gchar*" "title")
469    )
472 (define-method get_uri
473   (of-object "WebKitWebHistoryItem")
474   (c-name "webkit_web_history_item_get_uri")
475   (return-type "const-gchar*")
478 (define-method get_original_uri
479   (of-object "WebKitWebHistoryItem")
480   (c-name "webkit_web_history_item_get_original_uri")
481   (return-type "const-gchar*")
484 (define-method get_last_visited_time
485   (of-object "WebKitWebHistoryItem")
486   (c-name "webkit_web_history_item_get_last_visited_time")
487   (return-type "gdouble")
491 ;; From <webkit/webkitwebbackforwardlist.h>
493 (define-function webkit_web_back_forward_list_new_with_web_view
494   (is-constructor-of "WebKitWebBackForwardList")
495   (c-name "webkit_web_back_forward_list_new_with_web_view")
496   (caller-owns-return #t)
497   (return-type "WebKitWebHistoryItem*")
500 (define-method go_forward
501   (of-object "WebKitWebBackForwardList")
502   (c-name "webkit_web_back_forward_list_go_forward")
503   (return-type "none")
506 (define-method go_back
507   (of-object "WebKitWebBackForwardList")
508   (c-name "webkit_web_back_forward_list_go_back")
509   (return-type "none")
512 (define-method contains_item
513   (of-object "WebKitWebBackForwardList")
514   (c-name "webkit_web_back_forward_list_contains_item")
515   (return-type "gboolean")
516   (parameters
517    '("WebKitWebHistoryItem*" "history_item")
518    )
521 (define-method go_to_item
522   (of-object "WebKitWebBackForwardList")
523   (c-name "webkit_web_back_forward_list_go_to_item")
524   (return-type "none")
525   (parameters
526    '("WebKitWebHistoryItem*" "history_item")
527    )
530 (define-method get_forward_list_with_limit
531   (of-object "WebKitWebBackForwardList")
532   (c-name "webkit_web_back_forward_list_get_forward_list_with_limit")
533   (return-type "GList*")
534   (parameters
535    '("gint" "limit")
536    )
539 (define-method get_back_list_with_limit
540   (of-object "WebKitWebBackForwardList")
541   (c-name "webkit_web_back_forward_list_get_back_list_with_limit")
542   (return-type "GList*")
543   (parameters
544    '("gint" "limit")
545    )
548 (define-method get_back_item
549   (of-object "WebKitWebBackForwardList")
550   (c-name "webkit_web_back_forward_list_get_back_item")
551   (return-type "WebKitWebHistoryItem*")
554 (define-method get_current_item
555   (of-object "WebKitWebBackForwardList")
556   (c-name "webkit_web_back_forward_list_get_current_item")
557   (return-type "WebKitWebHistoryItem*")
560 (define-method get_forward_item
561   (of-object "WebKitWebBackForwardList")
562   (c-name "webkit_web_back_forward_list_get_forward_item")
563   (return-type "WebKitWebHistoryItem*")
566 (define-method get_nth_item
567   (of-object "WebKitWebBackForwardList")
568   (c-name "webkit_web_back_forward_list_get_nth_item")
569   (return-type "WebKitWebHistoryItem*")
570   (parameters
571    '("gint" "index")
572    )
575 (define-method get_back_length
576   (of-object "WebKitWebBackForwardList")
577   (c-name "webkit_web_back_forward_list_get_back_length")
578   (return-type "gint")
581 (define-method get_forward_length
582   (of-object "WebKitWebBackForwardList")
583   (c-name "webkit_web_back_forward_list_get_forward_length")
584   (return-type "gint")
587 (define-method get_limit
588   (of-object "WebKitWebBackForwardList")
589   (c-name "webkit_web_back_forward_list_get_limit")
590   (return-type "gint")
593 (define-method set_limit
594   (of-object "WebKitWebBackForwardList")
595   (c-name "webkit_web_back_forward_list_set_limit")
596   (return-type "none")
597   (parameters
598    '("gint" "limit")
599    )
602 ;; From <webkit/webkitwebsettings.h>
604 (define-function webkit_web_settings_new
605   (is-constructor-of "WebKitWebSettings")
606   (c-name "webkit_web_settings_new")
607   (caller-owns-return #t)
608   (return-type "WebKitWebSettings*")
611 (define-method copy
612   (of-object "WebKitWebSettings")
613   (c-name "webkit_web_settings_copy")
614   (caller-owns-return #f)
615   (return-type "WebKitWebSettings*")