diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library')
3 files changed, 45 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk.c b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk.c index bc1a839c5a..6eab165bee 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk.c +++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2012 IBM Corporation and others. All rights reserved. + * Copyright (c) 2009, 2013 IBM Corporation and others. All rights reserved. * The contents of this file are made available under the terms * of the GNU Lesser General Public License (LGPL) Version 2.1 that * accompanies this distribution (lgpl-v21.txt). The LGPL is also @@ -1460,6 +1460,24 @@ JNIEXPORT void JNICALL WebKitGTK_NATIVE(_1webkit_1download_1start) } #endif +#ifndef NO__1webkit_1favicon_1database_1set_1path +JNIEXPORT void JNICALL WebKitGTK_NATIVE(_1webkit_1favicon_1database_1set_1path) + (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1) +{ + WebKitGTK_NATIVE_ENTER(env, that, _1webkit_1favicon_1database_1set_1path_FUNC); +/* + webkit_favicon_database_set_path(arg0, arg1); +*/ + { + WebKitGTK_LOAD_FUNCTION(fp, webkit_favicon_database_set_path) + if (fp) { + ((void (CALLING_CONVENTION*)(jintLong, jintLong))fp)(arg0, arg1); + } + } + WebKitGTK_NATIVE_EXIT(env, that, _1webkit_1favicon_1database_1set_1path_FUNC); +} +#endif + #ifndef NO__1webkit_1get_1default_1session JNIEXPORT jintLong JNICALL WebKitGTK_NATIVE(_1webkit_1get_1default_1session) (JNIEnv *env, jclass that) @@ -1480,6 +1498,26 @@ JNIEXPORT jintLong JNICALL WebKitGTK_NATIVE(_1webkit_1get_1default_1session) } #endif +#ifndef NO__1webkit_1get_1favicon_1database +JNIEXPORT jintLong JNICALL WebKitGTK_NATIVE(_1webkit_1get_1favicon_1database) + (JNIEnv *env, jclass that) +{ + jintLong rc = 0; + WebKitGTK_NATIVE_ENTER(env, that, _1webkit_1get_1favicon_1database_FUNC); +/* + rc = (jintLong)webkit_get_favicon_database(); +*/ + { + WebKitGTK_LOAD_FUNCTION(fp, webkit_get_favicon_database) + if (fp) { + rc = (jintLong)((jintLong (CALLING_CONVENTION*)())fp)(); + } + } + WebKitGTK_NATIVE_EXIT(env, that, _1webkit_1get_1favicon_1database_FUNC); + return rc; +} +#endif + #ifndef NO__1webkit_1major_1version JNIEXPORT jint JNICALL WebKitGTK_NATIVE(_1webkit_1major_1version) (JNIEnv *env, jclass that) diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.c b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.c index c0d22658fc..5b59ba12e3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.c +++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2012 IBM Corporation and others. All rights reserved. + * Copyright (c) 2009, 2013 IBM Corporation and others. All rights reserved. * The contents of this file are made available under the terms * of the GNU Lesser General Public License (LGPL) Version 2.1 that * accompanies this distribution (lgpl-v21.txt). The LGPL is also @@ -91,7 +91,9 @@ char * WebKitGTK_nativeFunctionNames[] = { "_1webkit_1download_1new", "_1webkit_1download_1set_1destination_1uri", "_1webkit_1download_1start", + "_1webkit_1favicon_1database_1set_1path", "_1webkit_1get_1default_1session", + "_1webkit_1get_1favicon_1database", "_1webkit_1major_1version", "_1webkit_1micro_1version", "_1webkit_1minor_1version", diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.h b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.h index 8056ac9d08..c5771a66cf 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.h +++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.h @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2012 IBM Corporation and others. All rights reserved. + * Copyright (c) 2009, 2013 IBM Corporation and others. All rights reserved. * The contents of this file are made available under the terms * of the GNU Lesser General Public License (LGPL) Version 2.1 that * accompanies this distribution (lgpl-v21.txt). The LGPL is also @@ -101,7 +101,9 @@ typedef enum { _1webkit_1download_1new_FUNC, _1webkit_1download_1set_1destination_1uri_FUNC, _1webkit_1download_1start_FUNC, + _1webkit_1favicon_1database_1set_1path_FUNC, _1webkit_1get_1default_1session_FUNC, + _1webkit_1get_1favicon_1database_FUNC, _1webkit_1major_1version_FUNC, _1webkit_1micro_1version_FUNC, _1webkit_1minor_1version_FUNC, |