Listen to ::inspect-web-view and fix the callback to return the new-ish WebView
[pywebkitgtk.git] / webkit / webkit-1.0.2.defs
blobb9b6bef214f2b8534858e3d469cdaaf5806fade6
1 ;; -*- scheme -*-
2 ;; PyWebKitGtk - Python bindings to WebKit/GTK+
3 ;;
4 ;; Copyright (C) 2008  Jan Michael Alonzo <jmalonzo@unpluggable.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 "none")
210 (define-method can_copy_clipboard
211   (of-object "WebKitWebView")
212   (c-name "webkit_web_view_can_copy_clipboard")
213   (return-type "none")
216 (define-method can_paste_clipboard
217   (of-object "WebKitWebView")
218   (c-name "webkit_web_view_can_paste_clipboard")
219   (return-type "none")
222 (define-method cut_clipboard
223   (of-object "WebkitWebView")
224   (c-name "webkit_web_view_cut_clipboard")
225   (return-type "none")
228 (define-method paste_clipboard
229   (of-object "WebKitWebView")
230   (c-name "webkit_web_view_paste_clipboard")
231   (return-type "none")
234 (define-method delete_selection
235   (of-object "WebKitWebView")
236   (c-name "webkit_web_view_delete_selection")
237   (return-type "none")
240 (define-method has_selection
241   (of-object "WebKitWebView")
242   (c-name "webkit_web_view_has_selection")
243   (return-type "gboolean")
246 (define-method select_all
247   (of-object "WebKitWebView")
248   (c-name "webkit_web_view_select_all")
249   (return-type "none")
252 (define-method get_copy_target_list
253   (of-object "WebKitWebView")
254   (c-name "webkit_web_view_get_copy_target_list")
255   (return-type "GtkTargetList*")
258 (define-method get_paste_target_list
259   (of-object "WebKitWebView")
260   (c-name "webkit_web_view_get_paste_target_list")
261   (return-type "GtkTargetList*")
264 (define-method set_settings
265   (of-object "WebKitWebView")
266   (c-name "webkit_web_view_set_settings")
267   (return-type "none")
268   (parameters
269    '("WebKitWebSettings" "settings")
270    )
273 (define-method get_settings
274   (of-object "WebKitWebView")
275   (c-name "webkit_web_view_get_settings")
276   (return-type "WebKitWebSettings*")
279 (define-method get_transparent
280   (of-object "WebKitWebView")
281   (c-name "webkit_web_view_get_transparent")
282   (return-type "gboolean")
285 (define-method set_transparent
286   (of-object "WebKitWebView")
287   (c-name "webkit_web_view_set_transparent")
288   (return-type "none")
289   (parameters
290    '("gboolean" "flag")
291    )
294 (define-method get_zoom_level
295   (of-object "WebKitWebView")
296   (c-name "webkit_web_view_get_zoom_level")
297   (return-type "gfloat")
300 (define-method set_zoom_level
301   (of-object "WebKitWebView")
302   (c-name "webkit_web_view_set_zoom_level")
303   (return-type "none")
304   (parameters
305    '("gfloat" "zoom_level")
306    )
309 (define-method zoom_in
310   (of-object "WebKitWebView")
311   (c-name "webkit_web_view_zoom_in")
312   (return-type "none")
315 (define-method zoom_out
316   (of-object "WebKitWebView")
317   (c-name "webkit_web_view_zoom_out")
318   (return-type "none")
321 (define-method get_full_content_zoom
322   (of-object "WebKitWebView")
323   (c-name "webkit_web_view_get_full_content_zoom")
324   (return-type "gboolean")
327 (define-method set_full_content_zoom
328   (of-object "WebKitWebView")
329   (c-name "webkit_web_view_set_full_content_zoom")
330   (return-type "none")
331   (parameters
332    '("gboolean" "full_content_zoom")
333    )
336 ;(define-method set_background_color
337 ;  (of-object "WebKitWebView")
338 ;  (c-name "webkit_web_view_set_background_color")
339 ;  (return-type "none")
340 ;  (parameters
341 ;   '("const-GdkColor*" "color")
342 ;   )
345 ;(define-method get_background_alpha
346 ;  (of-object "WebKitWebView")
347 ;  (c-name "webkit_web_view_get_background_alpha")
348 ;  (return-type "guint16")
351 ;(define-method set_background_alpha
352 ;  (of-object "WebKitWebView")
353 ;  (c-name "webkit_web_view_set_background_alpha")
354 ;  (return-type "none")
355 ;  (parameters
356 ;   '("guint16" "alpha")
357 ;   )
360 ;; From <webkit/webkitwebframe.h>
362 (define-method get_web_view
363   (of-object "WebKitWebFrame")
364   (c-name "webkit_web_frame_get_web_view")
365   (return-type "WebKitWebView*")
368 (define-method get_name
369   (of-object "WebKitWebFrame")
370   (c-name "webkit_web_frame_get_name")
371   (return-type "const-gchar*")
374 (define-method get_title
375   (of-object "WebKitWebFrame")
376   (c-name "webkit_web_frame_get_title")
377   (return-type "const-gchar*")
380 (define-method get_uri
381   (of-object "WebKitWebFrame")
382   (c-name "webkit_web_frame_get_uri")
383   (return-type "const-gchar*")
386 (define-method get_parent
387   (of-object "WebKitWebFrame")
388   (c-name "webkit_web_frame_get_parent")
389   (return-type "WebKitWebFrame*")
392 (define-method load_request
393   (of-object "WebKitWebFrame")
394   (c-name "webkit_web_frame_load_request")
395   (return-type "none")
396   (parameters
397    '("WebKitNetworkRequest*" "request")
398    )
401 (define-method stop_loading
402   (of-object "WebKitWebFrame")
403   (c-name "webkit_web_frame_stop_loading")
404   (return-type "none")
407 (define-method reload
408   (of-object "WebKitWebFrame")
409   (c-name "webkit_web_frame_reload")
410   (return-type "none")
413 (define-method find_frame
414   (of-object "WebKitWebFrame")
415   (c-name "webkit_web_frame_find_frame")
416   (caller-owns-return #f)
417   (return-type "WebKitWebFrame*")
418   (parameters
419    '("const-gchar*" "name")
420    )
423 (define-method get_global_context
424   (of-object "WebKitWebFrame")
425   (c-name "webkit_web_frame_get_global_context")
426   (return-type "JSGlobalContextRef")
429 ;; From <webkit/webkitknetworkrequest.h>
431 (define-function webkit_network_request_new
432   (is-constructor-of "WebKitNetworkRequest")
433   (c-name "webkit_network_request_new")
434   (caller-owns-return #t)
435   (return-type "WebKitNetworkRequest*")
436   (properties
437    '("uri" (argname "uri"))
438    )
441 (define-method set_uri
442   (of-object "WebKitNetworkRequest")
443   (c-name "webkit_network_request_set_uri")
444   (return-type "none")
445   (parameters
446    '("const-gchar*" "uri")
447    )
450 (define-method get_uri
451   (of-object "WebKitNetworkRequest")
452   (c-name "webkit_network_request_get_uri")
453   (return-type "const-gchar*")
457 ;; From <webkit/webkitwebhistoryitem.h>
459 (define-function webkit_web_history_item_new
460   (is-constructor-of "WebKitWebHistoryItem")
461   (c-name "webkit_web_history_item_new")
462   (caller-owns-return #t)
463   (return-type "WebKitWebHistoryItem*")
466 (define-function webkit_web_history_item_new_with_data
467   (is-constructor-of "WebKitWebHistoryItem")
468   (c-name "webkit_web_history_item_new_with_data")
469   (caller-owns-return #t)
470   (return-type "WebKitWebHistoryItem*")
471   (properties
472    '("uri" (argname "uri"))
473    '("title" (argname "title"))
474    )
477 (define-method get_title
478   (of-object "WebKitWebHistoryItem")
479   (c-name "webkit_web_history_item_get_title")
480   (return-type "const-gchar*")
483 (define-method get_alternate_title
484   (of-object "WebKitWebHistoryItem")
485   (c-name "webkit_web_history_item_get_alternate_title")
486   (return-type "const-gchar*")
489 (define-method set_alternate_title
490   (of-object "WebKitWebHistoryItem")
491   (c-name "webkit_web_history_item_set_alternate_title")
492   (parameters
493    '("const-gchar*" "title")
494    )
497 (define-method get_uri
498   (of-object "WebKitWebHistoryItem")
499   (c-name "webkit_web_history_item_get_uri")
500   (return-type "const-gchar*")
503 (define-method get_original_uri
504   (of-object "WebKitWebHistoryItem")
505   (c-name "webkit_web_history_item_get_original_uri")
506   (return-type "const-gchar*")
509 (define-method get_last_visited_time
510   (of-object "WebKitWebHistoryItem")
511   (c-name "webkit_web_history_item_get_last_visited_time")
512   (return-type "gdouble")
516 ;; From <webkit/webkitwebbackforwardlist.h>
518 (define-function webkit_web_back_forward_list_new_with_web_view
519   (is-constructor-of "WebKitWebBackForwardList")
520   (c-name "webkit_web_back_forward_list_new_with_web_view")
521   (caller-owns-return #t)
522   (return-type "WebKitWebHistoryItem*")
525 (define-method go_forward
526   (of-object "WebKitWebBackForwardList")
527   (c-name "webkit_web_back_forward_list_go_forward")
528   (return-type "none")
531 (define-method go_back
532   (of-object "WebKitWebBackForwardList")
533   (c-name "webkit_web_back_forward_list_go_back")
534   (return-type "none")
537 (define-method contains_item
538   (of-object "WebKitWebBackForwardList")
539   (c-name "webkit_web_back_forward_list_contains_item")
540   (return-type "gboolean")
541   (parameters
542    '("WebKitWebHistoryItem*" "history_item")
543    )
546 (define-method go_to_item
547   (of-object "WebKitWebBackForwardList")
548   (c-name "webkit_web_back_forward_list_go_to_item")
549   (return-type "none")
550   (parameters
551    '("WebKitWebHistoryItem*" "history_item")
552    )
555 (define-method get_forward_list_with_limit
556   (of-object "WebKitWebBackForwardList")
557   (c-name "webkit_web_back_forward_list_get_forward_list_with_limit")
558   (return-type "GList*")
559   (parameters
560    '("gint" "limit")
561    )
564 (define-method get_back_list_with_limit
565   (of-object "WebKitWebBackForwardList")
566   (c-name "webkit_web_back_forward_list_get_back_list_with_limit")
567   (return-type "GList*")
568   (parameters
569    '("gint" "limit")
570    )
573 (define-method get_back_item
574   (of-object "WebKitWebBackForwardList")
575   (c-name "webkit_web_back_forward_list_get_back_item")
576   (return-type "WebKitWebHistoryItem*")
579 (define-method get_current_item
580   (of-object "WebKitWebBackForwardList")
581   (c-name "webkit_web_back_forward_list_get_current_item")
582   (return-type "WebKitWebHistoryItem*")
585 (define-method get_forward_item
586   (of-object "WebKitWebBackForwardList")
587   (c-name "webkit_web_back_forward_list_get_forward_item")
588   (return-type "WebKitWebHistoryItem*")
591 (define-method get_nth_item
592   (of-object "WebKitWebBackForwardList")
593   (c-name "webkit_web_back_forward_list_get_nth_item")
594   (return-type "WebKitWebHistoryItem*")
595   (parameters
596    '("gint" "index")
597    )
600 (define-method get_back_length
601   (of-object "WebKitWebBackForwardList")
602   (c-name "webkit_web_back_forward_list_get_back_length")
603   (return-type "gint")
606 (define-method get_forward_length
607   (of-object "WebKitWebBackForwardList")
608   (c-name "webkit_web_back_forward_list_get_forward_length")
609   (return-type "gint")
612 (define-method get_limit
613   (of-object "WebKitWebBackForwardList")
614   (c-name "webkit_web_back_forward_list_get_limit")
615   (return-type "gint")
618 (define-method set_limit
619   (of-object "WebKitWebBackForwardList")
620   (c-name "webkit_web_back_forward_list_set_limit")
621   (return-type "none")
622   (parameters
623    '("gint" "limit")
624    )
627 ;; From <webkit/webkitwebsettings.h>
629 (define-function webkit_web_settings_new
630   (is-constructor-of "WebKitWebSettings")
631   (c-name "webkit_web_settings_new")
632   (caller-owns-return #t)
633   (return-type "WebKitWebSettings*")
636 (define-method copy
637   (of-object "WebKitWebSettings")
638   (c-name "webkit_web_settings_copy")
639   (caller-owns-return #f)
640   (return-type "WebKitWebSettings*")