2 ;; PyWebKitGtk - Python bindings to WebKit/GTK+
4 ;; Copyright (C) 2009 Jan Michael Alonzo <jmalonzo@gmail.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
21 ; object definitions ...
22 (define-object WebInspector
25 (c-name "WebKitWebInspector")
26 (gtype-id "WEBKIT_TYPE_WEB_INSPECTOR")
29 (define-object WindowFeatures
32 (c-name "WebKitWebWindowFeatures")
33 (gtype-id "WEBKIT_TYPE_WEB_WINDOW_FEATURES")
36 (define-object WebNavigationAction
39 (c-name "WebKitWebNavigationAction")
40 (gtype-id "WEBKIT_TYPE_WEB_NAVIGATION_ACTION")
43 (define-object WebPolicyDecision
46 (c-name "WebKitWebPolicyDecision")
47 (gtype-id "WEBKIT_TYPE_WEB_POLICY_DECISION")
50 (define-object Download
53 (c-name "WebKitDownload")
54 (gtype-id "WEBKIT_TYPE_DOWNLOAD")
59 (c-name "WebKitDownloadStatus")
60 (gtype-id "WEBKIT_TYPE_DOWNLOAD_STATUS")
62 '("error" "WEBKIT_DOWNLOAD_STATUS_ERROR")
63 '("created" "WEBKIT_DOWNLOAD_STATUS_CREATED")
64 '("started" "WEBKIT_DOWNLOAD_STATUS_STARTED")
65 '("cancelled" "WEBKIT_DOWNLOAD_STATUS_CANCELLED")
66 '("finished" "WEBKIT_DOWNLOAD_STATUS_FINISHED")
72 (c-name "WebKitDownloadError")
73 (gtype-id "WEBKIT_TYPE_DOWNLOAD_ERROR")
75 '("cancelled-by-user" "WEBKIT_DOWNLOAD_ERROR_CANCELLED_BY_USER")
76 '("destination" "WEBKIT_DOWNLOAD_ERROR_DESTINATION")
77 '("network" "WEBKIT_DOWNLOAD_ERROR_NETWORK")
81 (enum WebNavigationReason
83 (c-name "WebKitWebNavigationReason")
84 (gtype-id "WEBKIT_TYPE_WEB_NAVIGATION_REASON")
86 '("link-clicked" "WEBKIT_WEB_NAVIGATION_REASON_LINK_CLICKED")
87 '("form-submitted" "WEBKIT_WEB_NAVIGATION_REASON_FORM_SUBMITTED")
88 '("back-forward" "WEBKIT_WEB_NAVIGATION_REASON_BACK_FORWARD")
89 '("reload" "WEBKIT_WEB_NAVIGATION_REASON_RELOAD")
90 '("form-resubmitted" "WEBKIT_WEB_NAVIGATION_REASON_FORM_RESUBMITTED")
91 '("other" "WEBKIT_WEB_NAVIGATION_REASON_OTHER")