3 ; object definitions ...
6 (parent "GtkContainer")
7 (c-name "WebKitWebView")
8 (gtype-id "WEBKIT_TYPE_WEB_VIEW")
11 (define-object WebFrame
14 (c-name "WebKitWebFrame")
15 (gtype-id "WEBKIT_TYPE_WEB_FRAME")
18 (define-object WebHistoryItem
21 (c-name "WebKitWebHistoryItem")
22 (gtype-id "WEBKIT_TYPE_WEB_HISTORY_ITEM")
25 (define-object WebBackForwardList
28 (c-name "WebKitWebBackForwardList")
29 (gtype-id "WEBKIT_TYPE_WEB_BACK_FORWARD_LIST")
32 (define-object WebSettings
35 (c-name "WebKitWebSettings")
36 (gtype-id "WEBKIT_TYPE_WEB_SETTINGS")
39 (define-object NetworkRequest
42 (c-name "WebKitNetworkRequest")
43 (gtype-id "WEBKIT_TYPE_NETWORK_REQUEST")
46 ;; Enumerations and flags ...
47 (define-enum NavigationResponse
49 (c-name "WebKitNavigationResponse")
50 (gtype-id "WEBKIT_TYPE_NAVIGATION_RESPONSE")
52 '("accept" "WEBKIT_NAVIGATION_RESPONSE_ACCEPT")
53 '("ignore" "WEBKIT_NAVIGATION_RESPONSE_IGNORE")
54 '("download" "WEBKIT_NAVIGATION_RESPONSE_DOWNLOAD")
58 (define-enum WebViewTargetInfo
60 (c-name "WebKitWebViewTargetInfo")
61 (gtype-id "WEBKIT_TYPE_WEB_VIEW_TARGET_INFO")
63 '("html" "WEBKIT_WEB_VIEW_TARGET_INFO_HTML")
64 '("text" "WEBKIT_WEB_VIEW_TARGET_INFO_TEXT")
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")
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")
96 '("WebKitWebHistoryItem*" "item")
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")
118 (define-method go_forward
119 (of-object "WebKitWebView")
120 (c-name "webkit_web_view_go_forward")
124 (define-method go_back_or_forward
125 (of-object "WebKitWebView")
126 (c-name "webkit_web_view_go_back_or_forward")
133 (define-method stop_loading
134 (of-object "WebKitWebView")
135 (c-name "webkit_web_view_stop_loading")
140 (of-object "WebKitWebView")
141 (c-name "webkit_web_view_open")
144 '("const-gchar*" "uri")
148 (define-method reload
149 (of-object "WebKitWebView")
150 (c-name "webkit_web_view_reload")
154 (define-method load_html_string
155 (of-object "WebKitWebView")
156 (c-name "webkit_web_view_load_html_string")
159 '("const-gchar*" "content")
160 '("const-gchar*" "base_uri")
164 (define-method load_string
165 (of-object "WebKitWebView")
166 (c-name "webkit_web_view_load_string")
169 '("const-gchar*" "content")
170 '("const-gchar*" "content_mimetype")
171 '("const-gchar*" "content_encoding")
172 '("const-gchar*" "base_uri")
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")
193 '("const-gchar*" "script")
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")
212 (define-method search_text
213 (of-object "WebKitWebView")
214 (c-name "webkit_web_view_search_text")
215 (return-type "gboolean")
217 ("const-gchar*" "string")
218 ("gboolean" "case_sensitive")
219 ("gboolean" "forward")
224 (define-method mark_text_matches
225 (of-object "WebKitWebView")
226 (c-name "webkit_web_view_mark_text_matches")
227 (return-type "guint")
229 ("const-gchar*" "string")
230 ("gboolean" "case_sensitive")
235 (define-method set_highlight_text_matches
236 (of-object "WebKitWebView")
237 (c-name "webkit_web_view_set_highlight_text_matches")
240 ("gboolean" "highlight")
244 (define-method can_cut_clipboard
245 (of-object "WebKitWebView")
246 (c-name "webkit_web_view_can_cut_clipboard")
250 (define-method can_copy_clipboard
251 (of-object "WebKitWebView")
252 (c-name "webkit_web_view_can_copy_clipboard")
256 (define-method can_paste_clipboard
257 (of-object "WebKitWebView")
258 (c-name "webkit_web_view_can_paste_clipboard")
262 (define-method cut_clipboard
263 (of-object "WebkitWebView")
264 (c-name "webkit_web_view_cut_clipboard")
268 (define-method paste_clipboard
269 (of-object "WebKitWebView")
270 (c-name "webkit_web_view_paste_clipboard")
274 (define-method delete_selection
275 (of-object "WebKitWebView")
276 (c-name "webkit_web_view_delete_selection")
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")
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")
309 '("WebKitWebSettings" "settings")
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")
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")
345 '("gfloat" "zoom_level")
349 (define-method zoom_in
350 (of-object "WebKitWebView")
351 (c-name "webkit_web_view_zoom_in")
355 (define-method zoom_out
356 (of-object "WebKitWebView")
357 (c-name "webkit_web_view_zoom_out")
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")
372 '("gboolean" "full_content_zoom")
376 ;(define-method set_background_color
377 ; (of-object "WebKitWebView")
378 ; (c-name "webkit_web_view_set_background_color")
379 ; (return-type "none")
381 ; '("const-GdkColor*" "color")
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")
396 ; '("guint16" "alpha")
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*")
408 '("web_view" (argname "web_view"))
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")
447 '("WebKitNetworkRequest*" "request")
451 (define-method stop_loading
452 (of-object "WebKitWebFrame")
453 (c-name "webkit_web_frame_stop_loading")
457 (define-method reload
458 (of-object "WebKitWebFrame")
459 (c-name "webkit_web_frame_reload")
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*")
469 '("const-gchar*" "name")
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*")
487 '("uri" (argname "uri"))
491 (define-method set_uri
492 (of-object "WebKitNetworkRequest")
493 (c-name "webkit_network_request_set_uri")
496 '("const-gchar*" "uri")
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*")
522 '("uri" (argname "uri"))
523 '("title" (argname "title"))
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")
543 '("const-gchar*" "title")
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")
581 (define-method go_back
582 (of-object "WebKitWebBackForwardList")
583 (c-name "webkit_web_back_forward_list_go_back")
587 (define-method contains_item
588 (of-object "WebKitWebBackForwardList")
589 (c-name "webkit_web_back_forward_list_contains_item")
590 (return-type "gboolean")
592 '("WebKitWebHistoryItem*" "history_item")
596 (define-method go_to_item
597 (of-object "WebKitWebBackForwardList")
598 (c-name "webkit_web_back_forward_list_go_to_item")
601 '("WebKitWebHistoryItem*" "history_item")
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*")
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*")
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*")
650 (define-method get_back_length
651 (of-object "WebKitWebBackForwardList")
652 (c-name "webkit_web_back_forward_list_get_back_length")
656 (define-method get_forward_length
657 (of-object "WebKitWebBackForwardList")
658 (c-name "webkit_web_back_forward_list_get_forward_length")
662 (define-method get_limit
663 (of-object "WebKitWebBackForwardList")
664 (c-name "webkit_web_back_forward_list_get_limit")
668 (define-method set_limit
669 (of-object "WebKitWebBackForwardList")
670 (c-name "webkit_web_back_forward_list_set_limit")
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*")
687 (of-object "WebKitWebSettings")
688 (c-name "webkit_web_settings_copy")
689 (caller-owns-return #f)
690 (return-type "WebKitWebSettings*")