2 ;; PyWebKitGtk - Python bindings to WebKit/GTK+
4 ;; Copyright (C) 2008 Jan Michael Alonzo <jmalonzo@unpluggable.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 ; object definitions ...
23 (define-object WebView
25 (parent "GtkContainer")
26 (c-name "WebKitWebView")
27 (gtype-id "WEBKIT_TYPE_WEB_VIEW")
30 (define-object WebFrame
33 (c-name "WebKitWebFrame")
34 (gtype-id "WEBKIT_TYPE_WEB_FRAME")
37 (define-object WebHistoryItem
40 (c-name "WebKitWebHistoryItem")
41 (gtype-id "WEBKIT_TYPE_WEB_HISTORY_ITEM")
44 (define-object WebBackForwardList
47 (c-name "WebKitWebBackForwardList")
48 (gtype-id "WEBKIT_TYPE_WEB_BACK_FORWARD_LIST")
51 (define-object WebSettings
54 (c-name "WebKitWebSettings")
55 (gtype-id "WEBKIT_TYPE_WEB_SETTINGS")
58 (define-object NetworkRequest
61 (c-name "WebKitNetworkRequest")
62 (gtype-id "WEBKIT_TYPE_NETWORK_REQUEST")
65 ;; Enumerations and flags ...
66 (enum NavigationResponse
68 (c-name "WebKitNavigationResponse")
69 (gtype-id "WEBKIT_TYPE_NAVIGATION_RESPONSE")
71 '("accept" "WEBKIT_NAVIGATION_RESPONSE_ACCEPT")
72 '("ignore" "WEBKIT_NAVIGATION_RESPONSE_IGNORE")
73 '("download" "WEBKIT_NAVIGATION_RESPONSE_DOWNLOAD")
77 (enum WebViewTargetInfo
79 (c-name "WebKitWebViewTargetInfo")
80 (gtype-id "WEBKIT_TYPE_WEB_VIEW_TARGET_INFO")
82 '("html" "WEBKIT_WEB_VIEW_TARGET_INFO_HTML")
83 '("text" "WEBKIT_WEB_VIEW_TARGET_INFO_TEXT")