summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java
diff options
context:
space:
mode:
authorGrant Gayed <grant_gayed@ca.ibm.com>2011-09-27 12:57:35 -0400
committerGrant Gayed <grant_gayed@ca.ibm.com>2011-09-27 12:57:35 -0400
commitbe73abf6be7d500ac17b1247ebee741e3a177b7d (patch)
treeeac5ab1b71f2da830dd2a53136c1af5b223cdad4 /bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java
parent7c05ea712090d921560edc39e2f8b7fcc08d357e (diff)
downloadeclipse.platform.swt-be73abf6be7d500ac17b1247ebee741e3a177b7d.tar.gz
eclipse.platform.swt-be73abf6be7d500ac17b1247ebee741e3a177b7d.tar.xz
eclipse.platform.swt-be73abf6be7d500ac17b1247ebee741e3a177b7d.zip
Bug 345682 WebKit for GTK not detected
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java263
1 files changed, 186 insertions, 77 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java
index 01bbe98be5..5540f843f7 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java
@@ -80,6 +80,7 @@ protected static byte [] ascii (String name) {
/**
+ * @method flags=dynamic
* @param definition cast=(const JSClassDefinition*)
*/
public static final native int /*long*/ _JSClassCreate (int /*long*/ definition);
@@ -93,6 +94,7 @@ public static final int /*long*/ JSClassCreate (int /*long*/ definition) {
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
*/
public static final native int /*long*/ _JSContextGetGlobalObject (int /*long*/ ctx);
@@ -106,6 +108,7 @@ public static final int /*long*/ JSContextGetGlobalObject (int /*long*/ ctx) {
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param script cast=(JSStringRef)
* @param thisObject cast=(JSObjectRef)
@@ -123,6 +126,7 @@ public static final int /*long*/ JSEvaluateScript (int /*long*/ ctx, int /*long*
}
/**
+ * @method flags=dynamic
* @param object cast=(JSObjectRef)
*/
public static final native int /*long*/ _JSObjectGetPrivate (int /*long*/ object);
@@ -136,6 +140,7 @@ public static final int /*long*/ JSObjectGetPrivate (int /*long*/ object) {
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param object cast=(JSObjectRef)
* @param propertyName cast=(JSStringRef)
@@ -152,6 +157,7 @@ public static final int /*long*/ JSObjectGetProperty (int /*long*/ ctx, int /*lo
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param object cast=(JSObjectRef)
* @param propertyIndex cast=(unsigned)
@@ -168,6 +174,7 @@ public static final int /*long*/ JSObjectGetPropertyAtIndex (int /*long*/ ctx, i
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param jsClass cast=(JSClassRef)
* @param data cast=(void *)
@@ -183,6 +190,7 @@ public static final int /*long*/ JSObjectMake (int /*long*/ ctx, int /*long*/ js
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param argumentCount cast=(size_t)
* @param arguments cast=(const struct OpaqueJSValue * const*)
@@ -199,6 +207,7 @@ public static final int /*long*/ JSObjectMakeArray (int /*long*/ ctx, int /*long
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param name cast=(JSStringRef)
* @param callAsFunction cast=(JSObjectCallAsFunctionCallback)
@@ -214,6 +223,7 @@ public static final int /*long*/ JSObjectMakeFunctionWithCallback (int /*long*/
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param object cast=(JSObjectRef)
* @param propertyName cast=(JSStringRef)
@@ -232,6 +242,7 @@ public static final void JSObjectSetProperty (int /*long*/ ctx, int /*long*/ obj
}
/**
+ * @method flags=dynamic
* @param string cast=(const char *)
*/
public static final native int /*long*/ _JSStringCreateWithUTF8CString (byte[] string);
@@ -245,6 +256,7 @@ public static final int /*long*/ JSStringCreateWithUTF8CString (byte[] string) {
}
/**
+ * @method flags=dynamic
* @param string cast=(JSStringRef)
*/
public static final native int /*long*/ _JSStringGetLength (int /*long*/ string);
@@ -258,6 +270,7 @@ public static final int /*long*/ JSStringGetLength (int /*long*/ string) {
}
/**
+ * @method flags=dynamic
* @param string cast=(JSStringRef)
*/
public static final native int /*long*/ _JSStringGetMaximumUTF8CStringSize (int /*long*/ string);
@@ -271,6 +284,7 @@ public static final int /*long*/ JSStringGetMaximumUTF8CStringSize (int /*long*/
}
/**
+ * @method flags=dynamic
* @param string cast=(JSStringRef)
* @param buffer cast=(char *)
* @param bufferSize cast=(size_t)
@@ -286,6 +300,7 @@ public static final int /*long*/ JSStringGetUTF8CString (int /*long*/ string, by
}
/**
+ * @method flags=dynamic
* @param a cast=(JSStringRef)
* @param b cast=(const char *)
*/
@@ -300,6 +315,7 @@ public static final int JSStringIsEqualToUTF8CString (int /*long*/ a, byte[] b)
}
/**
+ * @method flags=dynamic
* @param string cast=(JSStringRef)
*/
public static final native void _JSStringRelease (int /*long*/ string);
@@ -313,6 +329,7 @@ public static final void JSStringRelease (int /*long*/ string) {
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param value cast=(JSValueRef)
*/
@@ -327,6 +344,7 @@ public static final int JSValueGetType (int /*long*/ ctx, int /*long*/ value) {
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param value cast=(JSValueRef)
* @param jsClass cast=(JSClassRef)
@@ -342,6 +360,7 @@ public static final int JSValueIsObjectOfClass (int /*long*/ ctx, int /*long*/ v
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param bool cast=(bool)
*/
@@ -356,6 +375,7 @@ public static final int /*long*/ JSValueMakeBoolean (int /*long*/ ctx, int bool)
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param number cast=(double)
*/
@@ -370,6 +390,7 @@ public static final int /*long*/ JSValueMakeNumber (int /*long*/ ctx, double num
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param string cast=(JSStringRef)
*/
@@ -384,6 +405,7 @@ public static final int /*long*/ JSValueMakeString (int /*long*/ ctx, int /*long
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
*/
public static final native int /*long*/ _JSValueMakeUndefined (int /*long*/ ctx);
@@ -397,6 +419,7 @@ public static final int /*long*/ JSValueMakeUndefined (int /*long*/ ctx) {
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param value cast=(JSValueRef)
*/
@@ -411,6 +434,7 @@ public static final int JSValueToBoolean (int /*long*/ ctx, int /*long*/ value)
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param value cast=(JSValueRef)
* @param exception cast=(JSValueRef*)
@@ -426,6 +450,7 @@ public static final double JSValueToNumber (int /*long*/ ctx, int /*long*/ value
}
/**
+ * @method flags=dynamic
* @param ctx cast=(JSContextRef)
* @param value cast=(JSValueRef)
* @param exception cast=(JSValueRef*)
@@ -443,6 +468,7 @@ public static final int /*long*/ JSValueToStringCopy (int /*long*/ ctx, int /*lo
/* --------------------- start libsoup natives --------------------- */
/**
+ * @method flags=dynamic
* @param auth cast=(SoupAuth *)
* @param username cast=(const char *)
* @param password cast=(const char *)
@@ -458,6 +484,7 @@ public static final void soup_auth_authenticate (int /*long*/ auth, byte[] usern
}
/**
+ * @method flags=dynamic
* @param auth cast=(SoupAuth *)
*/
public static final native int /*long*/ _soup_auth_get_host (int /*long*/ auth);
@@ -471,6 +498,7 @@ public static final int /*long*/ soup_auth_get_host (int /*long*/ auth) {
}
/**
+ * @method flags=dynamic
* @param auth cast=(SoupAuth *)
*/
public static final native int /*long*/ _soup_auth_get_scheme_name (int /*long*/ auth);
@@ -484,6 +512,7 @@ public static final int /*long*/ soup_auth_get_scheme_name (int /*long*/ auth) {
}
/**
+ * @method flags=dynamic
* @param jar cast=(SoupCookieJar *)
* @param cookie cast=(SoupCookie *)
*/
@@ -498,6 +527,7 @@ public static final void soup_cookie_jar_add_cookie (int /*long*/ jar, int /*lon
}
/**
+ * @method flags=dynamic
* @param jar cast=(SoupCookieJar *)
*/
public static final native int /*long*/ _soup_cookie_jar_all_cookies (int /*long*/ jar);
@@ -511,6 +541,7 @@ public static final int /*long*/ soup_cookie_jar_all_cookies (int /*long*/ jar)
}
/**
+ * @method flags=dynamic
* @param jar cast=(SoupCookieJar *)
* @param cookie cast=(SoupCookie *)
*/
@@ -525,6 +556,7 @@ public static final void soup_cookie_jar_delete_cookie (int /*long*/ jar, int /*
}
/**
+ * @method flags=dynamic
* @param jar cast=(SoupCookieJar *)
* @param uri cast=(SoupURI *)
*/
@@ -538,6 +570,9 @@ public static final int /*long*/ soup_cookie_jar_get_cookies (int /*long*/ jar,
}
}
+/**
+ * @method flags=dynamic
+ */
public static final native int /*long*/ _soup_cookie_jar_get_type ();
public static final int /*long*/ soup_cookie_jar_get_type () {
lock.lock();
@@ -549,6 +584,7 @@ public static final int /*long*/ soup_cookie_jar_get_type () {
}
/**
+ * @method flags=dynamic
* @param header cast=(const char *)
* @param origin cast=(SoupURI *)
*/
@@ -563,73 +599,7 @@ public static final int /*long*/ soup_cookie_parse (byte[] header, int /*long*/
}
/**
- * @method flags=getter
- * @param cookie cast=(SoupCookie *)
- */
-public static final native int /*long*/ _SoupCookie_expires (int /*long*/ cookie);
-public static final int /*long*/ SoupCookie_expires (int /*long*/ cookie) {
- lock.lock();
- try {
- return _SoupCookie_expires (cookie);
- } finally {
- lock.unlock();
- }
-}
-
-public static final native boolean _SOUP_IS_SESSION (int /*long*/ object);
-public static final boolean SOUP_IS_SESSION (int /*long*/ object) {
- lock.lock();
- try {
- return _SOUP_IS_SESSION (object);
- } finally {
- lock.unlock();
- }
-}
-
-/**
- * @method flags=setter
- * @param message cast=(SoupMessage *)
- * @param method cast=(const char *)
- */
-public static final native void _SoupMessage_method (int /*long*/ message, int /*long*/ method);
-public static final void SoupMessage_method (int /*long*/ message, int /*long*/ method) {
- lock.lock();
- try {
- _SoupMessage_method (message, method);
- } finally {
- lock.unlock();
- }
-}
-
-/**
- * @method flags=getter
- * @param message cast=(SoupMessage *)
- */
-public static final native int /*long*/ _SoupMessage_request_body (int /*long*/ message);
-public static final int /*long*/ SoupMessage_request_body (int /*long*/ message) {
- lock.lock();
- try {
- return _SoupMessage_request_body (message);
- } finally {
- lock.unlock();
- }
-}
-
-/**
- * @method flags=getter
- * @param message cast=(SoupMessage *)
- */
-public static final native int /*long*/ _SoupMessage_request_headers (int /*long*/ message);
-public static final int /*long*/ SoupMessage_request_headers (int /*long*/ message) {
- lock.lock();
- try {
- return _SoupMessage_request_headers (message);
- } finally {
- lock.unlock();
- }
-}
-
-/**
+ * @method flags=dynamic
* @param body cast=(SoupMessageBody *)
* @param use cast=(SoupMemoryUse)
* @param data cast=(gconstpointer)
@@ -646,6 +616,7 @@ public static final void soup_message_body_append (int /*long*/ body, int use, i
}
/**
+ * @method flags=dynamic
* @param body cast=(SoupMessageBody *)
*/
public static final native void _soup_message_body_flatten (int /*long*/ body);
@@ -659,6 +630,7 @@ public static final void soup_message_body_flatten (int /*long*/ body) {
}
/**
+ * @method flags=dynamic
* @param msg cast=(SoupMessage *)
*/
public static final native int /*long*/ _soup_message_get_uri (int /*long*/ msg);
@@ -672,6 +644,7 @@ public static final int /*long*/ soup_message_get_uri (int /*long*/ msg) {
}
/**
+ * @method flags=dynamic
* @param headers cast=(SoupMessageHeaders *)
* @param name cast=(const char *)
* @param value cast=(const char *)
@@ -687,6 +660,7 @@ public static final void soup_message_headers_append (int /*long*/ headers, byte
}
/**
+ * @method flags=dynamic
* @param session cast=(SoupSession *)
* @param type cast=(GType)
*/
@@ -701,6 +675,7 @@ public static final void soup_session_add_feature_by_type (int /*long*/ session,
}
/**
+ * @method flags=dynamic
* @param session cast=(SoupSession *)
* @param feature_type cast=(GType)
*/
@@ -715,6 +690,7 @@ public static final int /*long*/ soup_session_get_feature (int /*long*/ session,
}
/**
+ * @method flags=dynamic
* @param feature cast=(SoupSessionFeature *)
* @param session cast=(SoupSession *)
*/
@@ -729,6 +705,20 @@ public static final void soup_session_feature_attach (int /*long*/ feature, int
}
/**
+ * @method flags=dynamic
+ */
+public static final native int _soup_session_get_type ();
+public static final int soup_session_get_type () {
+ lock.lock();
+ try {
+ return _soup_session_get_type ();
+ } finally {
+ lock.unlock();
+ }
+}
+
+/**
+ * @method flags=dynamic
* @param feature cast=(SoupSessionFeature *)
* @param session cast=(SoupSession *)
*/
@@ -743,6 +733,7 @@ public static final void soup_session_feature_detach (int /*long*/ feature, int
}
/**
+ * @method flags=dynamic
* @param uri cast=(SoupURI *)
*/
public static final native void _soup_uri_free (int /*long*/ uri);
@@ -756,6 +747,7 @@ public static final void soup_uri_free (int /*long*/ uri) {
}
/**
+ * @method flags=dynamic
* @param uri_string cast=(const char *)
*/
public static final native int /*long*/ _soup_uri_new (byte[] uri_string);
@@ -769,6 +761,7 @@ public static final int /*long*/ soup_uri_new (byte[] uri_string) {
}
/**
+ * @method flags=dynamic
* @param uri cast=(SoupURI *)
*/
public static final native int /*long*/ _soup_uri_to_string (int /*long*/ uri, int just_path_and_query);
@@ -784,6 +777,7 @@ public static final int /*long*/ soup_uri_to_string (int /*long*/ uri, int just_
/* --------------------- start WebKitGTK natives --------------------- */
/**
+ * @method flags=dynamic
* @param download cast=(WebKitDownload *)
*/
public static final native void _webkit_download_cancel (int /*long*/ download);
@@ -797,6 +791,7 @@ public static final void webkit_download_cancel (int /*long*/ download) {
}
/**
+ * @method flags=dynamic
* @param download cast=(WebKitDownload *)
*/
public static final native long _webkit_download_get_current_size (int /*long*/ download);
@@ -810,6 +805,7 @@ public static final long webkit_download_get_current_size (int /*long*/ download
}
/**
+ * @method flags=dynamic
* @param download cast=(WebKitDownload *)
*/
public static final native int _webkit_download_get_status (int /*long*/ download);
@@ -823,6 +819,7 @@ public static final int webkit_download_get_status (int /*long*/ download) {
}
/**
+ * @method flags=dynamic
* @param download cast=(WebKitDownload *)
*/
public static final native int /*long*/ _webkit_download_get_suggested_filename (int /*long*/ download);
@@ -836,6 +833,7 @@ public static final int /*long*/ webkit_download_get_suggested_filename (int /*l
}
/**
+ * @method flags=dynamic
* @param download cast=(WebKitDownload *)
*/
public static final native long _webkit_download_get_total_size (int /*long*/ download);
@@ -849,6 +847,7 @@ public static final long webkit_download_get_total_size (int /*long*/ download)
}
/**
+ * @method flags=dynamic
* @param download cast=(WebKitDownload *)
*/
public static final native int /*long*/ _webkit_download_get_uri (int /*long*/ download);
@@ -862,6 +861,7 @@ public static final int /*long*/ webkit_download_get_uri (int /*long*/ download)
}
/**
+ * @method flags=dynamic
* @param download cast=(WebKitDownload *)
* @param destination_uri cast=(const gchar *)
*/
@@ -875,6 +875,9 @@ public static final void webkit_download_set_destination_uri (int /*long*/ downl
}
}
+/**
+ * @method flags=dynamic
+ */
public static final native int /*long*/ _webkit_get_default_session ();
public static final int /*long*/ webkit_get_default_session () {
lock.lock();
@@ -885,16 +888,9 @@ public static final int /*long*/ webkit_get_default_session () {
}
}
-public static final native boolean _WEBKIT_IS_WEB_FRAME (int /*long*/ object);
-public static final boolean WEBKIT_IS_WEB_FRAME (int /*long*/ object) {
- lock.lock();
- try {
- return _WEBKIT_IS_WEB_FRAME (object);
- } finally {
- lock.unlock();
- }
-}
-
+/**
+ * @method flags=dynamic
+ */
public static final native int _webkit_major_version ();
public static final int webkit_major_version () {
lock.lock();
@@ -905,6 +901,9 @@ public static final int webkit_major_version () {
}
}
+/**
+ * @method flags=dynamic
+ */
public static final native int _webkit_micro_version ();
public static final int webkit_micro_version () {
lock.lock();
@@ -915,6 +914,9 @@ public static final int webkit_micro_version () {
}
}
+/**
+ * @method flags=dynamic
+ */
public static final native int _webkit_minor_version ();
public static final int webkit_minor_version () {
lock.lock();
@@ -926,6 +928,7 @@ public static final int webkit_minor_version () {
}
/**
+ * @method flags=dynamic
* @param request cast=(WebKitNetworkRequest *)
*/
public static final native int /*long*/ _webkit_network_request_get_message (int /*long*/ request);
@@ -939,6 +942,7 @@ public static final int /*long*/ webkit_network_request_get_message (int /*long*
}
/**
+ * @method flags=dynamic
* @param request cast=(WebKitNetworkRequest *)
*/
public static final native int /*long*/ _webkit_network_request_get_uri (int /*long*/ request);
@@ -952,6 +956,7 @@ public static final int /*long*/ webkit_network_request_get_uri (int /*long*/ re
}
/**
+ * @method flags=dynamic
* @param uri cast=(const gchar *)
*/
public static final native int /*long*/ _webkit_network_request_new (byte[] uri);
@@ -964,6 +969,9 @@ public static final int /*long*/ webkit_network_request_new (byte[] uri) {
}
}
+/**
+ * @method flags=dynamic
+ */
public static final native int /*long*/ _webkit_soup_auth_dialog_get_type ();
public static final int /*long*/ webkit_soup_auth_dialog_get_type () {
lock.lock();
@@ -975,6 +983,7 @@ public static final int /*long*/ webkit_soup_auth_dialog_get_type () {
}
/**
+ * @method flags=dynamic
* @param data_source cast=(WebKitWebDataSource *)
*/
public static final native int /*long*/ _webkit_web_data_source_get_data (int /*long*/ data_source);
@@ -988,6 +997,7 @@ public static final int /*long*/ webkit_web_data_source_get_data (int /*long*/ d
}
/**
+ * @method flags=dynamic
* @param data_source cast=(WebKitWebDataSource *)
*/
public static final native int /*long*/ _webkit_web_data_source_get_encoding (int /*long*/ data_source);
@@ -1001,6 +1011,7 @@ public static final int /*long*/ webkit_web_data_source_get_encoding (int /*long
}
/**
+ * @method flags=dynamic
* @param frame cast=(WebKitWebFrame *)
*/
public static final native int /*long*/ _webkit_web_frame_get_data_source (int /*long*/ frame);
@@ -1014,6 +1025,7 @@ public static final int /*long*/ webkit_web_frame_get_data_source (int /*long*/
}
/**
+ * @method flags=dynamic
* @param frame cast=(WebKitWebFrame *)
*/
public static final native int /*long*/ _webkit_web_frame_get_global_context (int /*long*/ frame);
@@ -1027,6 +1039,7 @@ public static final int /*long*/ webkit_web_frame_get_global_context (int /*long
}
/**
+ * @method flags=dynamic
* @param frame cast=(WebKitWebFrame *)
*/
public static final native int _webkit_web_frame_get_load_status (int /*long*/ frame);
@@ -1040,6 +1053,7 @@ public static final int webkit_web_frame_get_load_status (int /*long*/ frame) {
}
/**
+ * @method flags=dynamic
* @param frame cast=(WebKitWebFrame *)
*/
public static final native int /*long*/ _webkit_web_frame_get_parent (int /*long*/ frame);
@@ -1053,6 +1067,7 @@ public static final int /*long*/ webkit_web_frame_get_parent (int /*long*/ frame
}
/**
+ * @method flags=dynamic
* @param frame cast=(WebKitWebFrame *)
*/
public static final native int /*long*/ _webkit_web_frame_get_title (int /*long*/ frame);
@@ -1066,6 +1081,20 @@ public static final int /*long*/ webkit_web_frame_get_title (int /*long*/ frame)
}
/**
+ * @method flags=dynamic
+ */
+public static final native int _webkit_web_frame_get_type ();
+public static final int webkit_web_frame_get_type () {
+ lock.lock();
+ try {
+ return _webkit_web_frame_get_type ();
+ } finally {
+ lock.unlock();
+ }
+}
+
+/**
+ * @method flags=dynamic
* @param frame cast=(WebKitWebFrame *)
*/
public static final native int /*long*/ _webkit_web_frame_get_uri (int /*long*/ frame);
@@ -1079,6 +1108,7 @@ public static final int /*long*/ webkit_web_frame_get_uri (int /*long*/ frame) {
}
/**
+ * @method flags=dynamic
* @param frame cast=(WebKitWebFrame *)
*/
public static final native int /*long*/ _webkit_web_frame_get_web_view (int /*long*/ frame);
@@ -1092,6 +1122,7 @@ public static final int /*long*/ webkit_web_frame_get_web_view (int /*long*/ fra
}
/**
+ * @method flags=dynamic
* @param decision cast=(WebKitWebPolicyDecision *)
*/
public static final native void _webkit_web_policy_decision_download (int /*long*/ decision);
@@ -1105,6 +1136,7 @@ public static final void webkit_web_policy_decision_download (int /*long*/ decis
}
/**
+ * @method flags=dynamic
* @param decision cast=(WebKitWebPolicyDecision *)
*/
public static final native void _webkit_web_policy_decision_ignore (int /*long*/ decision);
@@ -1118,6 +1150,7 @@ public static final void webkit_web_policy_decision_ignore (int /*long*/ decisio
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
*/
public static final native int _webkit_web_view_can_go_back (int /*long*/ web_view);
@@ -1131,6 +1164,7 @@ public static final int webkit_web_view_can_go_back (int /*long*/ web_view) {
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
*/
public static final native int _webkit_web_view_can_go_forward (int /*long*/ web_view);
@@ -1144,6 +1178,7 @@ public static final int webkit_web_view_can_go_forward (int /*long*/ web_view) {
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
* @param mime_type cast=(const gchar *)
*/
@@ -1158,6 +1193,7 @@ public static final int webkit_web_view_can_show_mime_type (int /*long*/ web_vie
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
* @param script cast=(const gchar *)
*/
@@ -1172,6 +1208,7 @@ public static final void webkit_web_view_execute_script (int /*long*/ web_view,
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
*/
public static final native int _webkit_web_view_get_load_status (int /*long*/ web_view);
@@ -1185,6 +1222,7 @@ public static final int webkit_web_view_get_load_status (int /*long*/ web_view)
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
*/
public static final native int /*long*/ _webkit_web_view_get_main_frame (int /*long*/ web_view);
@@ -1198,6 +1236,7 @@ public static final int /*long*/ webkit_web_view_get_main_frame (int /*long*/ we
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
*/
public static final native double _webkit_web_view_get_progress (int /*long*/ web_view);
@@ -1211,6 +1250,7 @@ public static final double webkit_web_view_get_progress (int /*long*/ web_view)
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
*/
public static final native int /*long*/ _webkit_web_view_get_settings (int /*long*/ web_view);
@@ -1224,6 +1264,7 @@ public static final int /*long*/ webkit_web_view_get_settings (int /*long*/ web_
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
*/
public static final native int /*long*/ _webkit_web_view_get_title (int /*long*/ web_view);
@@ -1237,6 +1278,7 @@ public static final int /*long*/ webkit_web_view_get_title (int /*long*/ web_vie
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
*/
public static final native int /*long*/ _webkit_web_view_get_uri (int /*long*/ web_view);
@@ -1250,6 +1292,7 @@ public static final int /*long*/ webkit_web_view_get_uri (int /*long*/ web_view)
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
*/
public static final native int /*long*/ _webkit_web_view_get_window_features (int /*long*/ web_view);
@@ -1263,6 +1306,7 @@ public static final int /*long*/ webkit_web_view_get_window_features (int /*long
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
*/
public static final native void _webkit_web_view_go_back (int /*long*/ web_view);
@@ -1276,6 +1320,7 @@ public static final void webkit_web_view_go_back (int /*long*/ web_view) {
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
*/
public static final native void _webkit_web_view_go_forward (int /*long*/ web_view);
@@ -1289,6 +1334,7 @@ public static final void webkit_web_view_go_forward (int /*long*/ web_view) {
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
* @param content cast=(const gchar *)
* @param mime_type cast=(const gchar *)
@@ -1306,6 +1352,7 @@ public static final void webkit_web_view_load_string (int /*long*/ web_view, byt
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
* @param uri cast=(const gchar *)
*/
@@ -1319,6 +1366,9 @@ public static final void webkit_web_view_load_uri (int /*long*/ web_view, byte[]
}
}
+/**
+ * @method flags=dynamic
+ */
public static final native int /*long*/ _webkit_web_view_new ();
public static final int /*long*/ webkit_web_view_new () {
lock.lock();
@@ -1330,6 +1380,7 @@ public static final int /*long*/ webkit_web_view_new () {
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
*/
public static final native void _webkit_web_view_reload (int /*long*/ web_view);
@@ -1343,6 +1394,7 @@ public static final void webkit_web_view_reload (int /*long*/ web_view) {
}
/**
+ * @method flags=dynamic
* @param web_view cast=(WebKitWebView *)
*/
public static final native void _webkit_web_view_stop_loading (int /*long*/ web_view);
@@ -1366,4 +1418,61 @@ public static final native int JSClassDefinition_sizeof ();
*/
public static final native void memmove (int /*long*/ dest, JSClassDefinition src, int /*long*/ size);
+/**
+ * @method flags=getter
+ * @param cookie cast=(SoupCookie *)
+ */
+public static final native int /*long*/ _SoupCookie_expires (int /*long*/ cookie);
+public static final int /*long*/ SoupCookie_expires (int /*long*/ cookie) {
+ lock.lock();
+ try {
+ return _SoupCookie_expires (cookie);
+ } finally {
+ lock.unlock();
+ }
+}
+
+/**
+ * @method flags=setter
+ * @param message cast=(SoupMessage *)
+ * @param method cast=(const char *)
+ */
+public static final native void _SoupMessage_method (int /*long*/ message, int /*long*/ method);
+public static final void SoupMessage_method (int /*long*/ message, int /*long*/ method) {
+ lock.lock();
+ try {
+ _SoupMessage_method (message, method);
+ } finally {
+ lock.unlock();
+ }
+}
+
+/**
+ * @method flags=getter
+ * @param message cast=(SoupMessage *)
+ */
+public static final native int /*long*/ _SoupMessage_request_body (int /*long*/ message);
+public static final int /*long*/ SoupMessage_request_body (int /*long*/ message) {
+ lock.lock();
+ try {
+ return _SoupMessage_request_body (message);
+ } finally {
+ lock.unlock();
+ }
+}
+
+/**
+ * @method flags=getter
+ * @param message cast=(SoupMessage *)
+ */
+public static final native int /*long*/ _SoupMessage_request_headers (int /*long*/ message);
+public static final int /*long*/ SoupMessage_request_headers (int /*long*/ message) {
+ lock.lock();
+ try {
+ return _SoupMessage_request_headers (message);
+ } finally {
+ lock.unlock();
+ }
+}
+
}