[vala] webkit-1.0: Update webkit bindings to 1.1.22



commit e52d8faf16fb7d10026200dfbc5430b9a1ab72ca
Author: Diego Escalante Urrelo <descalante igalia com>
Date:   Sat Feb 20 19:14:52 2010 -0500

    webkit-1.0: Update webkit bindings to 1.1.22
    
    Fixes bug 610569.

 vapi/packages/webkit-1.0/webkit-1.0.gi |  101 +++++++++++++++++++++++++++++++-
 vapi/webkit-1.0.vapi                   |   68 ++++++++++++++++++++-
 2 files changed, 163 insertions(+), 6 deletions(-)
---
diff --git a/vapi/packages/webkit-1.0/webkit-1.0.gi b/vapi/packages/webkit-1.0/webkit-1.0.gi
index ea7f2ff..ac25bbd 100644
--- a/vapi/packages/webkit-1.0/webkit-1.0.gi
+++ b/vapi/packages/webkit-1.0/webkit-1.0.gi
@@ -9,6 +9,9 @@
 				<parameter name="micro" type="guint"/>
 			</parameters>
 		</function>
+		<function name="get_cache_model" symbol="webkit_get_cache_model">
+			<return-type type="WebKitCacheModel"/>
+		</function>
 		<function name="get_default_session" symbol="webkit_get_default_session">
 			<return-type type="SoupSession*"/>
 		</function>
@@ -39,6 +42,12 @@
 		<function name="remove_all_web_databases" symbol="webkit_remove_all_web_databases">
 			<return-type type="void"/>
 		</function>
+		<function name="set_cache_model" symbol="webkit_set_cache_model">
+			<return-type type="void"/>
+			<parameters>
+				<parameter name="cache_model" type="WebKitCacheModel"/>
+			</parameters>
+		</function>
 		<function name="set_default_web_database_quota" symbol="webkit_set_default_web_database_quota">
 			<return-type type="void"/>
 			<parameters>
@@ -51,6 +60,10 @@
 				<parameter name="path" type="gchar*"/>
 			</parameters>
 		</function>
+		<enum name="WebKitCacheModel" type-name="WebKitCacheModel" get-type="webkit_cache_model_get_type">
+			<member name="WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER" value="1"/>
+			<member name="WEBKIT_CACHE_MODEL_WEB_BROWSER" value="2"/>
+		</enum>
 		<enum name="WebKitDownloadError" type-name="WebKitDownloadError" get-type="webkit_download_error_get_type">
 			<member name="WEBKIT_DOWNLOAD_ERROR_CANCELLED_BY_USER" value="0"/>
 			<member name="WEBKIT_DOWNLOAD_ERROR_DESTINATION" value="1"/>
@@ -72,6 +85,7 @@
 			<member name="WEBKIT_LOAD_COMMITTED" value="1"/>
 			<member name="WEBKIT_LOAD_FINISHED" value="2"/>
 			<member name="WEBKIT_LOAD_FIRST_VISUALLY_NON_EMPTY_LAYOUT" value="3"/>
+			<member name="WEBKIT_LOAD_FAILED" value="4"/>
 		</enum>
 		<enum name="WebKitNavigationResponse" type-name="WebKitNavigationResponse" get-type="webkit_navigation_response_get_type">
 			<member name="WEBKIT_NAVIGATION_RESPONSE_ACCEPT" value="0"/>
@@ -115,6 +129,14 @@
 			<member name="WEBKIT_WEB_VIEW_TARGET_INFO_URI_LIST" value="3"/>
 			<member name="WEBKIT_WEB_VIEW_TARGET_INFO_NETSCAPE_URL" value="4"/>
 		</enum>
+		<flags name="WebKitHitTestResultContext" type-name="WebKitHitTestResultContext" get-type="webkit_hit_test_result_context_get_type">
+			<member name="WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT" value="2"/>
+			<member name="WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK" value="4"/>
+			<member name="WEBKIT_HIT_TEST_RESULT_CONTEXT_IMAGE" value="8"/>
+			<member name="WEBKIT_HIT_TEST_RESULT_CONTEXT_MEDIA" value="16"/>
+			<member name="WEBKIT_HIT_TEST_RESULT_CONTEXT_SELECTION" value="32"/>
+			<member name="WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE" value="64"/>
+		</flags>
 		<object name="WebKitDownload" parent="GObject" type-name="WebKitDownload" get-type="webkit_download_get_type">
 			<method name="cancel" symbol="webkit_download_cancel">
 				<return-type type="void"/>
@@ -146,6 +168,12 @@
 					<parameter name="download" type="WebKitDownload*"/>
 				</parameters>
 			</method>
+			<method name="get_network_response" symbol="webkit_download_get_network_response">
+				<return-type type="WebKitNetworkResponse*"/>
+				<parameters>
+					<parameter name="download" type="WebKitDownload*"/>
+				</parameters>
+			</method>
 			<method name="get_progress" symbol="webkit_download_get_progress">
 				<return-type type="gdouble"/>
 				<parameters>
@@ -198,6 +226,7 @@
 			<property name="current-size" type="guint64" readable="1" writable="0" construct="0" construct-only="0"/>
 			<property name="destination-uri" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
 			<property name="network-request" type="WebKitNetworkRequest*" readable="1" writable="1" construct="0" construct-only="1"/>
+			<property name="network-response" type="WebKitNetworkResponse*" readable="1" writable="1" construct="0" construct-only="1"/>
 			<property name="progress" type="gdouble" readable="1" writable="0" construct="0" construct-only="0"/>
 			<property name="status" type="WebKitDownloadStatus" readable="1" writable="0" construct="0" construct-only="0"/>
 			<property name="suggested-filename" type="char*" readable="1" writable="0" construct="0" construct-only="0"/>
@@ -212,6 +241,12 @@
 				</parameters>
 			</signal>
 		</object>
+		<object name="WebKitHitTestResult" parent="GObject" type-name="WebKitHitTestResult" get-type="webkit_hit_test_result_get_type">
+			<property name="context" type="WebKitHitTestResultContext" readable="1" writable="1" construct="0" construct-only="1"/>
+			<property name="image-uri" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
+			<property name="link-uri" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
+			<property name="media-uri" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
+		</object>
 		<object name="WebKitNetworkRequest" parent="GObject" type-name="WebKitNetworkRequest" get-type="webkit_network_request_get_type">
 			<method name="get_message" symbol="webkit_network_request_get_message">
 				<return-type type="SoupMessage*"/>
@@ -468,6 +503,12 @@
 					<parameter name="data_source" type="WebKitWebDataSource*"/>
 				</parameters>
 			</method>
+			<method name="get_subresources" symbol="webkit_web_data_source_get_subresources">
+				<return-type type="GList*"/>
+				<parameters>
+					<parameter name="data_source" type="WebKitWebDataSource*"/>
+				</parameters>
+			</method>
 			<method name="get_unreachable_uri" symbol="webkit_web_data_source_get_unreachable_uri">
 				<return-type type="gchar*"/>
 				<parameters>
@@ -584,6 +625,12 @@
 					<parameter name="frame" type="WebKitWebFrame*"/>
 				</parameters>
 			</method>
+			<method name="get_network_response" symbol="webkit_web_frame_get_network_response">
+				<return-type type="WebKitNetworkResponse*"/>
+				<parameters>
+					<parameter name="frame" type="WebKitWebFrame*"/>
+				</parameters>
+			</method>
 			<method name="get_parent" symbol="webkit_web_frame_get_parent">
 				<return-type type="WebKitWebFrame*"/>
 				<parameters>
@@ -740,6 +787,12 @@
 			</signal>
 		</object>
 		<object name="WebKitWebHistoryItem" parent="GObject" type-name="WebKitWebHistoryItem" get-type="webkit_web_history_item_get_type">
+			<method name="copy" symbol="webkit_web_history_item_copy">
+				<return-type type="WebKitWebHistoryItem*"/>
+				<parameters>
+					<parameter name="web_history_item" type="WebKitWebHistoryItem*"/>
+				</parameters>
+			</method>
 			<method name="get_alternate_title" symbol="webkit_web_history_item_get_alternate_title">
 				<return-type type="gchar*"/>
 				<parameters>
@@ -794,6 +847,12 @@
 			<property name="uri" type="char*" readable="1" writable="0" construct="0" construct-only="0"/>
 		</object>
 		<object name="WebKitWebInspector" parent="GObject" type-name="WebKitWebInspector" get-type="webkit_web_inspector_get_type">
+			<method name="close" symbol="webkit_web_inspector_close">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="webInspector" type="WebKitWebInspector*"/>
+				</parameters>
+			</method>
 			<method name="get_inspected_uri" symbol="webkit_web_inspector_get_inspected_uri">
 				<return-type type="gchar*"/>
 				<parameters>
@@ -806,8 +865,23 @@
 					<parameter name="web_inspector" type="WebKitWebInspector*"/>
 				</parameters>
 			</method>
+			<method name="inspect_coordinates" symbol="webkit_web_inspector_inspect_coordinates">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="web_inspector" type="WebKitWebInspector*"/>
+					<parameter name="x" type="gdouble"/>
+					<parameter name="y" type="gdouble"/>
+				</parameters>
+			</method>
+			<method name="show" symbol="webkit_web_inspector_show">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="webInspector" type="WebKitWebInspector*"/>
+				</parameters>
+			</method>
 			<property name="inspected-uri" type="char*" readable="1" writable="0" construct="0" construct-only="0"/>
 			<property name="javascript-profiling-enabled" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="timeline-profiling-enabled" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
 			<property name="web-view" type="WebKitWebView*" readable="1" writable="0" construct="0" construct-only="0"/>
 			<signal name="attach-window" when="LAST">
 				<return-type type="gboolean"/>
@@ -982,6 +1056,7 @@
 				<return-type type="WebKitWebSettings*"/>
 			</constructor>
 			<property name="auto-load-images" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
+			<property name="auto-resize-window" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="auto-shrink-images" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="cursive-font-family" type="char*" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="default-encoding" type="char*" readable="1" writable="1" construct="1" construct-only="0"/>
@@ -990,13 +1065,19 @@
 			<property name="default-monospace-font-size" type="gint" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="editing-behavior" type="WebKitEditingBehavior" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="enable-caret-browsing" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
+			<property name="enable-default-context-menu" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="enable-developer-extras" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
+			<property name="enable-dom-paste" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
+			<property name="enable-file-access-from-file-uris" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="enable-html5-database" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="enable-html5-local-storage" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
+			<property name="enable-java-applet" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="enable-offline-web-application-cache" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
+			<property name="enable-page-cache" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="enable-plugins" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="enable-private-browsing" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="enable-scripts" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
+			<property name="enable-site-specific-quirks" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="enable-spell-checking" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="enable-universal-access-from-file-uris" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="enable-xss-auditor" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
@@ -1011,6 +1092,7 @@
 			<property name="sans-serif-font-family" type="char*" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="serif-font-family" type="char*" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="spell-checking-languages" type="char*" readable="1" writable="1" construct="1" construct-only="0"/>
+			<property name="tab-key-cycles-through-elements" type="gboolean" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="user-agent" type="char*" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="user-stylesheet-uri" type="char*" readable="1" writable="1" construct="1" construct-only="0"/>
 			<property name="zoom-step" type="gfloat" readable="1" writable="1" construct="1" construct-only="0"/>
@@ -1143,6 +1225,19 @@
 					<parameter name="web_view" type="WebKitWebView*"/>
 				</parameters>
 			</method>
+			<method name="get_hit_test_result" symbol="webkit_web_view_get_hit_test_result">
+				<return-type type="WebKitHitTestResult*"/>
+				<parameters>
+					<parameter name="webView" type="WebKitWebView*"/>
+					<parameter name="event" type="GdkEventButton*"/>
+				</parameters>
+			</method>
+			<method name="get_icon_uri" symbol="webkit_web_view_get_icon_uri">
+				<return-type type="gchar*"/>
+				<parameters>
+					<parameter name="webView" type="WebKitWebView*"/>
+				</parameters>
+			</method>
 			<method name="get_inspector" symbol="webkit_web_view_get_inspector">
 				<return-type type="WebKitWebInspector*"/>
 				<parameters>
@@ -1444,6 +1539,8 @@
 			<property name="editable" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
 			<property name="encoding" type="char*" readable="1" writable="0" construct="0" construct-only="0"/>
 			<property name="full-content-zoom" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="icon-uri" type="char*" readable="1" writable="0" construct="0" construct-only="0"/>
+			<property name="im-context" type="GtkIMContext*" readable="1" writable="0" construct="0" construct-only="0"/>
 			<property name="load-status" type="WebKitLoadStatus" readable="1" writable="0" construct="0" construct-only="0"/>
 			<property name="paste-target-list" type="GtkTargetList*" readable="1" writable="0" construct="0" construct-only="0"/>
 			<property name="progress" type="gdouble" readable="1" writable="0" construct="0" construct-only="0"/>
@@ -1524,6 +1621,7 @@
 				<return-type type="void"/>
 				<parameters>
 					<parameter name="object" type="WebKitWebView*"/>
+					<parameter name="p0" type="char*"/>
 				</parameters>
 			</signal>
 			<signal name="load-committed" when="LAST">
@@ -1760,9 +1858,8 @@
 			<property name="y" type="gint" readable="1" writable="1" construct="1" construct-only="0"/>
 		</object>
 		<constant name="WEBKIT_MAJOR_VERSION" type="int" value="1"/>
-		<constant name="WEBKIT_MICRO_VERSION" type="int" value="14"/>
+		<constant name="WEBKIT_MICRO_VERSION" type="int" value="22"/>
 		<constant name="WEBKIT_MINOR_VERSION" type="int" value="1"/>
-		<constant name="WEBKIT_SOUP_AUTH_DIALOG_H" type="int" value="1"/>
 		<constant name="WEBKIT_USER_AGENT_MAJOR_VERSION" type="int" value="531"/>
 		<constant name="WEBKIT_USER_AGENT_MINOR_VERSION" type="int" value="2"/>
 	</namespace>
diff --git a/vapi/webkit-1.0.vapi b/vapi/webkit-1.0.vapi
index db50ac3..3873712 100644
--- a/vapi/webkit-1.0.vapi
+++ b/vapi/webkit-1.0.vapi
@@ -11,6 +11,7 @@ namespace WebKit {
 		public unowned string get_destination_uri ();
 		public double get_elapsed_time ();
 		public unowned WebKit.NetworkRequest get_network_request ();
+		public unowned WebKit.NetworkResponse get_network_response ();
 		public double get_progress ();
 		public WebKit.DownloadStatus get_status ();
 		public unowned string get_suggested_filename ();
@@ -21,6 +22,7 @@ namespace WebKit {
 		public uint64 current_size { get; }
 		public string destination_uri { get; set; }
 		public WebKit.NetworkRequest network_request { get; construct; }
+		public WebKit.NetworkResponse network_response { get; construct; }
 		public double progress { get; }
 		public WebKit.DownloadStatus status { get; }
 		public string suggested_filename { get; }
@@ -28,6 +30,17 @@ namespace WebKit {
 		public virtual signal bool error (int p0, int p1, string p2);
 	}
 	[CCode (cheader_filename = "webkit/webkit.h")]
+	public class HitTestResult : GLib.Object {
+		[NoAccessorMethod]
+		public WebKit.HitTestResultContext context { get; construct; }
+		[NoAccessorMethod]
+		public string image_uri { owned get; construct; }
+		[NoAccessorMethod]
+		public string link_uri { owned get; construct; }
+		[NoAccessorMethod]
+		public string media_uri { owned get; construct; }
+	}
+	[CCode (cheader_filename = "webkit/webkit.h")]
 	public class NetworkRequest : GLib.Object {
 		[CCode (has_construct_function = false)]
 		public NetworkRequest (string uri);
@@ -95,6 +108,7 @@ namespace WebKit {
 		public unowned WebKit.NetworkRequest get_initial_request ();
 		public unowned WebKit.WebResource get_main_resource ();
 		public unowned WebKit.NetworkRequest get_request ();
+		public unowned GLib.List get_subresources ();
 		public unowned string get_unreachable_uri ();
 		public unowned WebKit.WebFrame get_web_frame ();
 		public bool is_loading ();
@@ -126,6 +140,7 @@ namespace WebKit {
 		public Gtk.PolicyType get_horizontal_scrollbar_policy ();
 		public WebKit.LoadStatus get_load_status ();
 		public unowned string get_name ();
+		public unowned WebKit.NetworkResponse get_network_response ();
 		public unowned WebKit.WebFrame get_parent ();
 		public unowned WebKit.WebDataSource get_provisional_data_source ();
 		public unowned WebKit.SecurityOrigin get_security_origin ();
@@ -158,6 +173,7 @@ namespace WebKit {
 	public class WebHistoryItem : GLib.Object {
 		[CCode (has_construct_function = false)]
 		public WebHistoryItem ();
+		public unowned WebKit.WebHistoryItem copy ();
 		public unowned string get_alternate_title ();
 		public double get_last_visited_time ();
 		public unowned string get_original_uri ();
@@ -174,11 +190,16 @@ namespace WebKit {
 	}
 	[CCode (cheader_filename = "webkit/webkit.h")]
 	public class WebInspector : GLib.Object {
+		public void close ();
 		public unowned string get_inspected_uri ();
 		public unowned WebKit.WebView get_web_view ();
+		public void inspect_coordinates (double x, double y);
+		public void show ();
 		public string inspected_uri { get; }
 		[NoAccessorMethod]
 		public bool javascript_profiling_enabled { get; set; }
+		[NoAccessorMethod]
+		public bool timeline_profiling_enabled { get; set; }
 		public WebKit.WebView web_view { get; }
 		public virtual signal bool attach_window ();
 		public virtual signal bool close_window ();
@@ -231,6 +252,8 @@ namespace WebKit {
 		[NoAccessorMethod]
 		public bool auto_load_images { get; set construct; }
 		[NoAccessorMethod]
+		public bool auto_resize_window { get; set construct; }
+		[NoAccessorMethod]
 		public bool auto_shrink_images { get; set construct; }
 		[NoAccessorMethod]
 		public string cursive_font_family { owned get; set construct; }
@@ -247,20 +270,32 @@ namespace WebKit {
 		[NoAccessorMethod]
 		public bool enable_caret_browsing { get; set construct; }
 		[NoAccessorMethod]
+		public bool enable_default_context_menu { get; set construct; }
+		[NoAccessorMethod]
 		public bool enable_developer_extras { get; set construct; }
 		[NoAccessorMethod]
+		public bool enable_dom_paste { get; set construct; }
+		[NoAccessorMethod]
+		public bool enable_file_access_from_file_uris { get; set construct; }
+		[NoAccessorMethod]
 		public bool enable_html5_database { get; set construct; }
 		[NoAccessorMethod]
 		public bool enable_html5_local_storage { get; set construct; }
 		[NoAccessorMethod]
+		public bool enable_java_applet { get; set construct; }
+		[NoAccessorMethod]
 		public bool enable_offline_web_application_cache { get; set construct; }
 		[NoAccessorMethod]
+		public bool enable_page_cache { get; set construct; }
+		[NoAccessorMethod]
 		public bool enable_plugins { get; set construct; }
 		[NoAccessorMethod]
 		public bool enable_private_browsing { get; set construct; }
 		[NoAccessorMethod]
 		public bool enable_scripts { get; set construct; }
 		[NoAccessorMethod]
+		public bool enable_site_specific_quirks { get; set construct; }
+		[NoAccessorMethod]
 		public bool enable_spell_checking { get; set construct; }
 		[NoAccessorMethod]
 		public bool enable_universal_access_from_file_uris { get; set construct; }
@@ -289,6 +324,8 @@ namespace WebKit {
 		[NoAccessorMethod]
 		public string spell_checking_languages { owned get; set construct; }
 		[NoAccessorMethod]
+		public bool tab_key_cycles_through_elements { get; set construct; }
+		[NoAccessorMethod]
 		public string user_agent { owned get; set construct; }
 		[NoAccessorMethod]
 		public string user_stylesheet_uri { owned get; set construct; }
@@ -319,6 +356,8 @@ namespace WebKit {
 		public unowned string get_encoding ();
 		public unowned WebKit.WebFrame get_focused_frame ();
 		public bool get_full_content_zoom ();
+		public unowned WebKit.HitTestResult get_hit_test_result (Gdk.EventButton event);
+		public unowned string get_icon_uri ();
 		public unowned WebKit.WebInspector get_inspector ();
 		public WebKit.LoadStatus get_load_status ();
 		public unowned WebKit.WebFrame get_main_frame ();
@@ -363,6 +402,9 @@ namespace WebKit {
 		public bool editable { get; set; }
 		public string encoding { get; }
 		public bool full_content_zoom { get; set; }
+		public string icon_uri { get; }
+		[NoAccessorMethod]
+		public Gtk.IMContext im_context { owned get; }
 		public WebKit.LoadStatus load_status { get; }
 		public Gtk.TargetList paste_target_list { get; }
 		public double progress { get; }
@@ -386,7 +428,7 @@ namespace WebKit {
 		public virtual signal void database_quota_exceeded (GLib.Object p0, GLib.Object p1);
 		public virtual signal bool download_requested (GLib.Object p0);
 		public virtual signal void hovering_over_link (string? p0, string p1);
-		public virtual signal void icon_loaded ();
+		public virtual signal void icon_loaded (string p0);
 		public virtual signal void load_committed (WebKit.WebFrame p0);
 		public virtual signal bool load_error (WebKit.WebFrame p0, string p1, void* p2);
 		public virtual signal void load_finished (WebKit.WebFrame p0);
@@ -445,6 +487,11 @@ namespace WebKit {
 		[NoAccessorMethod]
 		public int y { get; set construct; }
 	}
+	[CCode (cprefix = "WEBKIT_CACHE_MODEL_", cheader_filename = "webkit/webkit.h")]
+	public enum CacheModel {
+		DOCUMENT_VIEWER,
+		WEB_BROWSER
+	}
 	[CCode (cprefix = "WEBKIT_DOWNLOAD_ERROR_", cheader_filename = "webkit/webkit.h")]
 	public enum DownloadError {
 		CANCELLED_BY_USER,
@@ -464,12 +511,23 @@ namespace WebKit {
 		MAC,
 		WINDOWS
 	}
+	[CCode (cprefix = "WEBKIT_HIT_TEST_RESULT_CONTEXT_", cheader_filename = "webkit/webkit.h")]
+	[Flags]
+	public enum HitTestResultContext {
+		DOCUMENT,
+		LINK,
+		IMAGE,
+		MEDIA,
+		SELECTION,
+		EDITABLE
+	}
 	[CCode (cprefix = "WEBKIT_LOAD_", cheader_filename = "webkit/webkit.h")]
 	public enum LoadStatus {
 		PROVISIONAL,
 		COMMITTED,
 		FINISHED,
-		FIRST_VISUALLY_NON_EMPTY_LAYOUT
+		FIRST_VISUALLY_NON_EMPTY_LAYOUT,
+		FAILED
 	}
 	[CCode (cprefix = "WEBKIT_NAVIGATION_RESPONSE_", cheader_filename = "webkit/webkit.h")]
 	public enum NavigationResponse {
@@ -526,14 +584,14 @@ namespace WebKit {
 	[CCode (cheader_filename = "webkit/webkit.h")]
 	public const int MINOR_VERSION;
 	[CCode (cheader_filename = "webkit/webkit.h")]
-	public const int SOUP_AUTH_DIALOG_H;
-	[CCode (cheader_filename = "webkit/webkit.h")]
 	public const int USER_AGENT_MAJOR_VERSION;
 	[CCode (cheader_filename = "webkit/webkit.h")]
 	public const int USER_AGENT_MINOR_VERSION;
 	[CCode (cheader_filename = "webkit/webkit.h")]
 	public static bool check_version (uint major, uint minor, uint micro);
 	[CCode (cheader_filename = "webkit/webkit.h")]
+	public static WebKit.CacheModel get_cache_model ();
+	[CCode (cheader_filename = "webkit/webkit.h")]
 	public static unowned Soup.Session get_default_session ();
 	[CCode (cheader_filename = "webkit/webkit.h")]
 	public static uint64 get_default_web_database_quota ();
@@ -554,6 +612,8 @@ namespace WebKit {
 	[CCode (cheader_filename = "webkit/webkit.h")]
 	public static void remove_all_web_databases ();
 	[CCode (cheader_filename = "webkit/webkit.h")]
+	public static void set_cache_model (WebKit.CacheModel cache_model);
+	[CCode (cheader_filename = "webkit/webkit.h")]
 	public static void set_default_web_database_quota (uint64 defaultQuota);
 	[CCode (cheader_filename = "webkit/webkit.h")]
 	public static void set_web_database_directory_path (string path);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]