Updated stable version
[pywebkitgtk.git] / webkit.defs
blobc71378687ada23c2fcd932df963ec0224afd8269
1 ;; -*- scheme -*-
3 ; object definitions ...
4 (define-object WebView
5   (in-module "WebKit")
6   (parent "GtkContainer")
7   (c-name "WebKitWebView")
8   (gtype-id "WEBKIT_TYPE_WEB_VIEW")
11 (define-object WebFrame
12   (in-module "WebKit")
13   (parent "GObject")
14   (c-name "WebKitWebFrame")
15   (gtype-id "WEBKIT_TYPE_WEB_FRAME")
18 (define-object WebHistoryItem
19   (in-module "WebKit")
20   (parent "GObject")
21   (c-name "WebKitWebHistoryItem")
22   (gtype-id "WEBKIT_TYPE_WEB_HISTORY_ITEM")
25 (define-object WebBackForwardList
26   (in-module "WebKit")
27   (parent "GObject")
28   (c-name "WebKitWebBackForwardList")
29   (gtype-id "WEBKIT_TYPE_WEB_BACK_FORWARD_LIST")
32 (define-object WebSettings
33   (in-module "WebKit")
34   (parent "GObject")
35   (c-name "WebKitWebSettings")
36   (gtype-id "WEBKIT_TYPE_WEB_SETTINGS")
39 (define-object NetworkRequest
40   (in-module "WebKit")
41   (parent "GObject")
42   (c-name "WebKitNetworkRequest")
43   (gtype-id "WEBKIT_TYPE_NETWORK_REQUEST")
46 ;; Enumerations and flags ...
47 ;;(define-enum NavigationResponse
48 ;;  (in-module "WebKit")
49 ;;  (c-name "WebKitNavigationResponse")
50 ;;  (gtype-id "WEBKIT_TYPE_NAVIGATION_RESPONSE")
51 ;;  (values
52 ;;   '("accept" "WEBKIT_NAVIGATION_RESPONSE_ACCEPT")
53 ;;   '("ignore" "WEBKIT_NAVIGATION_RESPONSE_IGNORE")
54 ;;   '("download" "WEBKIT_NAVIGATION_RESPONSE_DOWNLOAD")
55 ;;   )
56 ;;)
58 ;;(define-enum WebViewTargetInfo
59 ;;  (in-module "WebKit")
60 ;;  (c-name "WebKitWebViewTargetInfo")
61 ;;  (gtype-id "WEBKIT_TYPE_WEB_VIEW_TARGET_INFO")
62 ;;  (values
63 ;;   '("html" "WEBKIT_WEB_VIEW_TARGET_INFO_HTML")
64 ;;   '("text" "WEBKIT_WEB_VIEW_TARGET_INFO_TEXT")
65 ;;   )
66 ;;)
68 ;; From <webkit/webkitwebview.h>
70 (define-function webkit_web_view_new
71   (is-constructor-of "WebKitWebView")
72   (c-name "webkit_web_view_new")
73   (caller-owns-return #t)
74   (return-type "GtkWidget*")
77 (define-method set_maintains_back_forward_list
78   (of-object "WebKitWebView")
79   (c-name "webkit_web_view_set_maintains_back_forward_list")
80   (parameters
81    '("gboolean" "flag")
82    )
85 (define-method get_back_forward_list
86   (of-object "WebKitWebView")
87   (c-name "webkit_web_view_get_back_forward_list")
88   (return-type "WebKitWebBackForwardList*")
91 (define-method go_to_back_forward_item
92   (of-object "WebKitWebView")
93   (c-name "webkit_web_view_go_to_back_forward_item")
94   (return-type "gboolean")
95   (parameters
96    '("WebKitWebHistoryItem*" "item")
97    )
100 (define-method can_go_back
101   (of-object "WebKitWebView")
102   (c-name "webkit_web_view_can_go_back")
103   (return-type "gboolean")
106 (define-method can_go_forward
107   (of-object "WebKitWebView")
108   (c-name "webkit_web_view_can_go_forward")
109   (return-type "gboolean")
112 (define-method go_back
113   (of-object "WebKitWebView")
114   (c-name "webkit_web_view_go_back")
115   (return-type "none")
118 (define-method go_forward
119   (of-object "WebKitWebView")
120   (c-name "webkit_web_view_go_forward")
121   (return-type "none")
124 (define-method go_back_or_forward
125   (of-object "WebKitWebView")
126   (c-name "webkit_web_view_go_back_or_forward")
127   (return-type "none")
128   (parameters
129    '("gint" "steps")
130    )
133 (define-method stop_loading
134   (of-object "WebKitWebView")
135   (c-name "webkit_web_view_stop_loading")
136   (return-type "none")
139 (define-method open
140   (of-object "WebKitWebView")
141   (c-name "webkit_web_view_open")
142   (return-type "none")
143   (parameters
144    '("const-gchar*" "uri")
145   )
148 (define-method reload
149   (of-object "WebKitWebView")
150   (c-name "webkit_web_view_reload")
151   (return-type "none")
154 (define-method load_html_string
155   (of-object "WebKitWebView")
156   (c-name "webkit_web_view_load_html_string")
157   (return-type "none")
158   (parameters
159    '("const-gchar*" "content")
160    '("const-gchar*" "base_uri")
161    )
164 (define-method load_string
165   (of-object "WebKitWebView")
166   (c-name "webkit_web_view_load_string")
167   (return-type "none")
168   (parameters
169    '("const-gchar*" "content")
170    '("const-gchar*" "content_mimetype")
171    '("const-gchar*" "content_encoding")
172    '("const-gchar*" "base_uri")
173    )
176 (define-method get_main_frame
177   (of-object "WebKitWebView")
178   (c-name "webkit_web_view_get_main_frame")
179   (return-type "WebKitWebFrame*")
182 (define-method get_focused_frame
183   (of-object "WebKitWebView")
184   (c-name "webkit_web_view_get_focused_frame")
185   (return-type "WebKitWebFrame*")
188 (define-method execute_script
189   (of-object "WebKitWebView")
190   (c-name "webkit_web_view_execute_script")
191   (return-type "none")
192   (parameters
193    '("const-gchar*" "script")
194    )
197 (define-method get_editable
198   (of-object "WebKitWebView")
199   (c-name "webkit_web_view_get_editable")
200   (return-type "gboolean")
203 (define-method set_editable
204   (of-object "WebKitWebView")
205   (c-name "webkit_web_view_set_editable")
206   (return-type "none")
207   (parameters
208    '("gboolean" "flag")
209    )
212 (define-method search_text
213   (of-object "WebKitWebView")
214   (c-name "webkit_web_view_search_text")
215   (return-type "gboolean")
216   (parameters
217    ("const-gchar*" "string")
218    ("gboolean" "case_sensitive")
219    ("gboolean" "forward")
220    ("gboolean" "wrap")
221    )
224 (define-method mark_text_matches
225   (of-object "WebKitWebView")
226   (c-name "webkit_web_view_mark_text_matches")
227   (return-type "guint")
228   (parameters
229    ("const-gchar*" "string")
230    ("gboolean" "case_sensitive")
231    ("guint" "limit")
232    )
235 (define-method set_highlight_text_matches
236   (of-object "WebKitWebView")
237   (c-name "webkit_web_view_set_highlight_text_matches")
238   (return-type "none")
239   (parameters
240    ("gboolean" "highlight")
241    )
244 (define-method can_cut_clipboard
245   (of-object "WebKitWebView")
246   (c-name "webkit_web_view_can_cut_clipboard")
247   (return-type "none")
250 (define-method can_copy_clipboard
251   (of-object "WebKitWebView")
252   (c-name "webkit_web_view_can_copy_clipboard")
253   (return-type "none")
256 (define-method can_paste_clipboard
257   (of-object "WebKitWebView")
258   (c-name "webkit_web_view_can_paste_clipboard")
259   (return-type "none")
262 (define-method cut_clipboard
263   (of-object "WebkitWebView")
264   (c-name "webkit_web_view_cut_clipboard")
265   (return-type "none")
268 (define-method paste_clipboard
269   (of-object "WebKitWebView")
270   (c-name "webkit_web_view_paste_clipboard")
271   (return-type "none")
274 (define-method delete_selection
275   (of-object "WebKitWebView")
276   (c-name "webkit_web_view_delete_selection")
277   (return-type "none")
280 (define-method has_selection
281   (of-object "WebKitWebView")
282   (c-name "webkit_web_view_has_selection")
283   (return-type "gboolean")
286 (define-method select_all
287   (of-object "WebKitWebView")
288   (c-name "webkit_web_view_select_all")
289   (return-type "none")
292 (define-method get_copy_target_list
293   (of-object "WebKitWebView")
294   (c-name "webkit_web_view_get_copy_target_list")
295   (return-type "GtkTargetList*")
298 (define-method get_paste_target_list
299   (of-object "WebKitWebView")
300   (c-name "webkit_web_view_get_paste_target_list")
301   (return-type "GtkTargetList*")
304 (define-method set_settings
305   (of-object "WebKitWebView")
306   (c-name "webkit_web_view_set_settings")
307   (return-type "none")
308   (parameters
309    '("WebKitWebSettings" "settings")
310    )
313 (define-method get_settings
314   (of-object "WebKitWebView")
315   (c-name "webkit_web_view_get_settings")
316   (return-type "WebKitWebSettings*")
319 (define-method get_transparent
320   (of-object "WebKitWebView")
321   (c-name "webkit_web_view_get_transparent")
322   (return-type "gboolean")
325 (define-method set_transparent
326   (of-object "WebKitWebView")
327   (c-name "webkit_web_view_set_transparent")
328   (return-type "none")
329   (parameters
330    '("gboolean" "flag")
331    )
334 (define-method get_zoom_level
335   (of-object "WebKitWebView")
336   (c-name "webkit_web_view_get_zoom_level")
337   (return-type "gfloat")
340 (define-method set_zoom_level
341   (of-object "WebKitWebView")
342   (c-name "webkit_web_view_set_zoom_level")
343   (return-type "none")
344   (parameters
345    '("gfloat" "zoom_level")
346    )
349 (define-method zoom_in
350   (of-object "WebKitWebView")
351   (c-name "webkit_web_view_zoom_in")
352   (return-type "none")
355 (define-method zoom_out
356   (of-object "WebKitWebView")
357   (c-name "webkit_web_view_zoom_out")
358   (return-type "none")
361 (define-method get_full_content_zoom
362   (of-object "WebKitWebView")
363   (c-name "webkit_web_view_get_full_content_zoom")
364   (return-type "gboolean")
367 (define-method set_full_content_zoom
368   (of-object "WebKitWebView")
369   (c-name "webkit_web_view_set_full_content_zoom")
370   (return-type "none")
371   (parameters
372    '("gboolean" "full_content_zoom")
373    )
376 ;(define-method set_background_color
377 ;  (of-object "WebKitWebView")
378 ;  (c-name "webkit_web_view_set_background_color")
379 ;  (return-type "none")
380 ;  (parameters
381 ;   '("const-GdkColor*" "color")
382 ;   )
385 ;(define-method get_background_alpha
386 ;  (of-object "WebKitWebView")
387 ;  (c-name "webkit_web_view_get_background_alpha")
388 ;  (return-type "guint16")
391 ;(define-method set_background_alpha
392 ;  (of-object "WebKitWebView")
393 ;  (c-name "webkit_web_view_set_background_alpha")
394 ;  (return-type "none")
395 ;  (parameters
396 ;   '("guint16" "alpha")
397 ;   )
400 ;; From <webkit/webkitwebframe.h>
402 (define-function webkit_web_frame_new
403   (is-constructor-of "WebKitWebFrame")
404   (c-name "webkit_web_frame_new")
405   (caller-owns-return #t)
406   (return-type "WebKitWebFrame*")
407   (properties
408    '("web_view" (argname "web_view"))
409    )
412 (define-method get_web_view
413   (of-object "WebKitWebFrame")
414   (c-name "webkit_web_frame_get_web_view")
415   (return-type "WebKitWebView*")
418 (define-method get_name
419   (of-object "WebKitWebFrame")
420   (c-name "webkit_web_frame_get_name")
421   (return-type "const-gchar*")
424 (define-method get_title
425   (of-object "WebKitWebFrame")
426   (c-name "webkit_web_frame_get_title")
427   (return-type "const-gchar*")
430 (define-method get_uri
431   (of-object "WebKitWebFrame")
432   (c-name "webkit_web_frame_get_uri")
433   (return-type "const-gchar*")
436 (define-method get_parent
437   (of-object "WebKitWebFrame")
438   (c-name "webkit_web_frame_get_parent")
439   (return-type "WebKitWebFrame*")
442 (define-method load_request
443   (of-object "WebKitWebFrame")
444   (c-name "webkit_web_frame_load_request")
445   (return-type "none")
446   (parameters
447    '("WebKitNetworkRequest*" "request")
448    )
451 (define-method stop_loading
452   (of-object "WebKitWebFrame")
453   (c-name "webkit_web_frame_stop_loading")
454   (return-type "none")
457 (define-method reload
458   (of-object "WebKitWebFrame")
459   (c-name "webkit_web_frame_reload")
460   (return-type "none")
463 (define-method find_frame
464   (of-object "WebKitWebFrame")
465   (c-name "webkit_web_frame_find_frame")
466   (caller-owns-return #f)
467   (return-type "WebKitWebFrame*")
468   (parameters
469    '("const-gchar*" "name")
470    )
473 (define-method get_global_context
474   (of-object "WebKitWebFrame")
475   (c-name "webkit_web_frame_get_global_context")
476   (return-type "JSGlobalContextRef")
479 ;; From <webkit/webkitknetworkrequest.h>
481 (define-function webkit_network_request_new
482   (is-constructor-of "WebKitNetworkRequest")
483   (c-name "webkit_network_request_new")
484   (caller-owns-return #t)
485   (return-type "WebKitNetworkRequest*")
486   (properties
487    '("uri" (argname "uri"))
488    )
491 (define-method set_uri
492   (of-object "WebKitNetworkRequest")
493   (c-name "webkit_network_request_set_uri")
494   (return-type "none")
495   (parameters
496    '("const-gchar*" "uri")
497    )
500 (define-method get_uri
501   (of-object "WebKitNetworkRequest")
502   (c-name "webkit_network_request_get_uri")
503   (return-type "const-gchar*")
507 ;; From <webkit/webkitwebhistoryitem.h>
509 (define-function webkit_web_history_item_new
510   (is-constructor-of "WebKitWebHistoryItem")
511   (c-name "webkit_web_history_item_new")
512   (caller-owns-return #t)
513   (return-type "WebKitWebHistoryItem*")
516 (define-function webkit_web_history_item_new_with_data
517   (is-constructor-of "WebKitWebHistoryItem")
518   (c-name "webkit_web_history_item_new_with_data")
519   (caller-owns-return #t)
520   (return-type "WebKitWebHistoryItem*")
521   (properties
522    '("uri" (argname "uri"))
523    '("title" (argname "title"))
524    )
527 (define-method get_title
528   (of-object "WebKitWebHistoryItem")
529   (c-name "webkit_web_history_item_get_title")
530   (return-type "const-gchar*")
533 (define-method get_alternate_title
534   (of-object "WebKitWebHistoryItem")
535   (c-name "webkit_web_history_item_get_alternate_title")
536   (return-type "const-gchar*")
539 (define-method set_alternate_title
540   (of-object "WebKitWebHistoryItem")
541   (c-name "webkit_web_history_item_set_alternate_title")
542   (parameters
543    '("const-gchar*" "title")
544    )
547 (define-method get_uri
548   (of-object "WebKitWebHistoryItem")
549   (c-name "webkit_web_history_item_get_uri")
550   (return-type "const-gchar*")
553 (define-method get_original_uri
554   (of-object "WebKitWebHistoryItem")
555   (c-name "webkit_web_history_item_get_original_uri")
556   (return-type "const-gchar*")
559 (define-method get_last_visited_time
560   (of-object "WebKitWebHistoryItem")
561   (c-name "webkit_web_history_item_get_last_visited_time")
562   (return-type "gdouble")
566 ;; From <webkit/webkitwebbackforwardlist.h>
568 (define-function webkit_web_back_forward_list_new_with_web_view
569   (is-constructor-of "WebKitWebBackForwardList")
570   (c-name "webkit_web_back_forward_list_new_with_web_view")
571   (caller-owns-return #t)
572   (return-type "WebKitWebHistoryItem*")
575 (define-method go_forward
576   (of-object "WebKitWebBackForwardList")
577   (c-name "webkit_web_back_forward_list_go_forward")
578   (return-type "none")
581 (define-method go_back
582   (of-object "WebKitWebBackForwardList")
583   (c-name "webkit_web_back_forward_list_go_back")
584   (return-type "none")
587 (define-method contains_item
588   (of-object "WebKitWebBackForwardList")
589   (c-name "webkit_web_back_forward_list_contains_item")
590   (return-type "gboolean")
591   (parameters
592    '("WebKitWebHistoryItem*" "history_item")
593    )
596 (define-method go_to_item
597   (of-object "WebKitWebBackForwardList")
598   (c-name "webkit_web_back_forward_list_go_to_item")
599   (return-type "none")
600   (parameters
601    '("WebKitWebHistoryItem*" "history_item")
602    )
605 (define-method get_forward_list_with_limit
606   (of-object "WebKitWebBackForwardList")
607   (c-name "webkit_web_back_forward_list_get_forward_list_with_limit")
608   (return-type "GList*")
609   (parameters
610    '("gint" "limit")
611    )
614 (define-method get_back_list_with_limit
615   (of-object "WebKitWebBackForwardList")
616   (c-name "webkit_web_back_forward_list_get_back_list_with_limit")
617   (return-type "GList*")
618   (parameters
619    '("gint" "limit")
620    )
623 (define-method get_back_item
624   (of-object "WebKitWebBackForwardList")
625   (c-name "webkit_web_back_forward_list_get_back_item")
626   (return-type "WebKitWebHistoryItem*")
629 (define-method get_current_item
630   (of-object "WebKitWebBackForwardList")
631   (c-name "webkit_web_back_forward_list_get_current_item")
632   (return-type "WebKitWebHistoryItem*")
635 (define-method get_forward_item
636   (of-object "WebKitWebBackForwardList")
637   (c-name "webkit_web_back_forward_list_get_forward_item")
638   (return-type "WebKitWebHistoryItem*")
641 (define-method get_nth_item
642   (of-object "WebKitWebBackForwardList")
643   (c-name "webkit_web_back_forward_list_get_nth_item")
644   (return-type "WebKitWebHistoryItem*")
645   (parameters
646    '("gint" "index")
647    )
650 (define-method get_back_length
651   (of-object "WebKitWebBackForwardList")
652   (c-name "webkit_web_back_forward_list_get_back_length")
653   (return-type "gint")
656 (define-method get_forward_length
657   (of-object "WebKitWebBackForwardList")
658   (c-name "webkit_web_back_forward_list_get_forward_length")
659   (return-type "gint")
662 (define-method get_limit
663   (of-object "WebKitWebBackForwardList")
664   (c-name "webkit_web_back_forward_list_get_limit")
665   (return-type "gint")
668 (define-method set_limit
669   (of-object "WebKitWebBackForwardList")
670   (c-name "webkit_web_back_forward_list_set_limit")
671   (return-type "none")
672   (parameters
673    '("gint" "limit")
674    )
677 ;; From <webkit/webkitwebsettings.h>
679 (define-function webkit_web_settings_new
680   (is-constructor-of "WebKitWebSettings")
681   (c-name "webkit_web_settings_new")
682   (caller-owns-return #t)
683   (return-type "WebKitWebSettings*")
686 (define-method copy
687   (of-object "WebKitWebSettings")
688   (c-name "webkit_web_settings_copy")
689   (caller-owns-return #f)
690   (return-type "WebKitWebSettings*")