diff options
17 files changed, 698 insertions, 20 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM.properties b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM.properties index 7df333ac2d..fff0ed56ec 100644 --- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM.properties +++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM.properties @@ -114,6 +114,16 @@ XPCOM_VtblCall__IIIIIIZ_4= XPCOM_VtblCall__IIIIIIZ_5= XPCOM_VtblCall__IIIIIIZ_6= +XPCOM_VtblCall__IIIIII_3Z_3I= +XPCOM_VtblCall__IIIIII_3Z_3I_0= +XPCOM_VtblCall__IIIIII_3Z_3I_1= +XPCOM_VtblCall__IIIIII_3Z_3I_2= +XPCOM_VtblCall__IIIIII_3Z_3I_3= +XPCOM_VtblCall__IIIIII_3Z_3I_4= +XPCOM_VtblCall__IIIIII_3Z_3I_5= +XPCOM_VtblCall__IIIIII_3Z_3I_6= +XPCOM_VtblCall__IIIIII_3Z_3I_7= + XPCOM_VtblCall__IIIIIZ= XPCOM_VtblCall__IIIIIZ_0= XPCOM_VtblCall__IIIIIZ_1= @@ -146,6 +156,14 @@ XPCOM_VtblCall__IIIII_3C_3= XPCOM_VtblCall__IIIII_3C_4= XPCOM_VtblCall__IIIII_3C_5= +XPCOM_VtblCall__IIIII_3I= +XPCOM_VtblCall__IIIII_3I_0= +XPCOM_VtblCall__IIIII_3I_1= +XPCOM_VtblCall__IIIII_3I_2= +XPCOM_VtblCall__IIIII_3I_3= +XPCOM_VtblCall__IIIII_3I_4= +XPCOM_VtblCall__IIIII_3I_5= + XPCOM_VtblCall__IIIIJJJJ= XPCOM_VtblCall__IIIIJJJJ_0= XPCOM_VtblCall__IIIIJJJJ_1= @@ -379,6 +397,14 @@ XPCOM_VtblCall__III_3C_3C_3C_3Z_3Z_5= XPCOM_VtblCall__III_3C_3C_3C_3Z_3Z_6= XPCOM_VtblCall__III_3C_3C_3C_3Z_3Z_7= +XPCOM_VtblCall__III_3C_3C_3I= +XPCOM_VtblCall__III_3C_3C_3I_0= +XPCOM_VtblCall__III_3C_3C_3I_1= +XPCOM_VtblCall__III_3C_3C_3I_2= +XPCOM_VtblCall__III_3C_3C_3I_3= +XPCOM_VtblCall__III_3C_3C_3I_4= +XPCOM_VtblCall__III_3C_3C_3I_5= + XPCOM_VtblCall__III_3C_3C_3I_3C_3Z_3Z= XPCOM_VtblCall__III_3C_3C_3I_3C_3Z_3Z_0= XPCOM_VtblCall__III_3C_3C_3I_3C_3Z_3Z_1= @@ -558,6 +584,13 @@ XPCOM_VtblCall__II_3BILorg_eclipse_swt_internal_mozilla_nsID_2_3I_3= XPCOM_VtblCall__II_3BILorg_eclipse_swt_internal_mozilla_nsID_2_3I_4= XPCOM_VtblCall__II_3BILorg_eclipse_swt_internal_mozilla_nsID_2_3I_5= +XPCOM_VtblCall__II_3BI_3I= +XPCOM_VtblCall__II_3BI_3I_0= +XPCOM_VtblCall__II_3BI_3I_1= +XPCOM_VtblCall__II_3BI_3I_2= +XPCOM_VtblCall__II_3BI_3I_3= +XPCOM_VtblCall__II_3BI_3I_4= + XPCOM_VtblCall__II_3BJ= XPCOM_VtblCall__II_3BJ_0= XPCOM_VtblCall__II_3BJ_1= @@ -664,6 +697,13 @@ XPCOM_VtblCall__II_3B_3Z_1= XPCOM_VtblCall__II_3B_3Z_2= XPCOM_VtblCall__II_3B_3Z_3= +XPCOM_VtblCall__II_3B_3Z_3I= +XPCOM_VtblCall__II_3B_3Z_3I_0= +XPCOM_VtblCall__II_3B_3Z_3I_1= +XPCOM_VtblCall__II_3B_3Z_3I_2= +XPCOM_VtblCall__II_3B_3Z_3I_3= +XPCOM_VtblCall__II_3B_3Z_3I_4= + XPCOM_VtblCall__II_3C= XPCOM_VtblCall__II_3C_0= XPCOM_VtblCall__II_3C_1= @@ -685,12 +725,32 @@ XPCOM_VtblCall__II_3CI_3I_2= XPCOM_VtblCall__II_3CI_3I_3= XPCOM_VtblCall__II_3CI_3I_4= +XPCOM_VtblCall__II_3CZ= +XPCOM_VtblCall__II_3CZ_0= +XPCOM_VtblCall__II_3CZ_1= +XPCOM_VtblCall__II_3CZ_2= +XPCOM_VtblCall__II_3CZ_3= + XPCOM_VtblCall__II_3C_3C= XPCOM_VtblCall__II_3C_3C_0= XPCOM_VtblCall__II_3C_3C_1= XPCOM_VtblCall__II_3C_3C_2= XPCOM_VtblCall__II_3C_3C_3= +XPCOM_VtblCall__II_3C_3C_3CZ= +XPCOM_VtblCall__II_3C_3C_3CZ_0= +XPCOM_VtblCall__II_3C_3C_3CZ_1= +XPCOM_VtblCall__II_3C_3C_3CZ_2= +XPCOM_VtblCall__II_3C_3C_3CZ_3= +XPCOM_VtblCall__II_3C_3C_3CZ_4= +XPCOM_VtblCall__II_3C_3C_3CZ_5= + +XPCOM_VtblCall__II_3C_3Z= +XPCOM_VtblCall__II_3C_3Z_0= +XPCOM_VtblCall__II_3C_3Z_1= +XPCOM_VtblCall__II_3C_3Z_2= +XPCOM_VtblCall__II_3C_3Z_3= + XPCOM_VtblCall__II_3F= XPCOM_VtblCall__II_3F_0= XPCOM_VtblCall__II_3F_1= @@ -862,6 +922,10 @@ org_eclipse_swt_internal_mozilla_nsIDOMWindow= org_eclipse_swt_internal_mozilla_nsIDirectoryService= +org_eclipse_swt_internal_mozilla_nsIDirectoryServiceProvider= + +org_eclipse_swt_internal_mozilla_nsIDirectoryServiceProvider2= + org_eclipse_swt_internal_mozilla_nsIDocShell= org_eclipse_swt_internal_mozilla_nsIDownload= @@ -876,12 +940,18 @@ org_eclipse_swt_internal_mozilla_nsIFile= org_eclipse_swt_internal_mozilla_nsIFilePicker= +org_eclipse_swt_internal_mozilla_nsIFilePicker_11_18= + org_eclipse_swt_internal_mozilla_nsIHelperAppLauncher= +org_eclipse_swt_internal_mozilla_nsIHelperAppLauncherDialog= + org_eclipse_swt_internal_mozilla_nsIHelperAppLauncher_11_18= org_eclipse_swt_internal_mozilla_nsIIOService= +org_eclipse_swt_internal_mozilla_nsIInputStream= + org_eclipse_swt_internal_mozilla_nsIInterfaceRequestor= org_eclipse_swt_internal_mozilla_nsIJSContextStack= @@ -944,5 +1014,9 @@ org_eclipse_swt_internal_mozilla_nsIWebProgressListener= org_eclipse_swt_internal_mozilla_nsIWebProgressListener2= +org_eclipse_swt_internal_mozilla_nsIWindowCreator= + +org_eclipse_swt_internal_mozilla_nsIWindowCreator2= + org_eclipse_swt_internal_mozilla_nsIWindowWatcher= diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom.cpp b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom.cpp index 53d032740b..73e19ae5ff 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom.cpp +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom.cpp @@ -229,6 +229,26 @@ JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__IIIIIIZ) } #endif +#ifndef NO_VtblCall__IIIIII_3Z_3I +extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__IIIIII_3Z_3I)(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jbooleanArray arg6, jintArray arg7); +JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__IIIIII_3Z_3I) + (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jbooleanArray arg6, jintArray arg7) +{ + jboolean *lparg6=NULL; + jint *lparg7=NULL; + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, VtblCall__IIIIII_3Z_3I_FUNC); + if (arg6) if ((lparg6 = env->GetBooleanArrayElements(arg6, NULL)) == NULL) goto fail; + if (arg7) if ((lparg7 = env->GetIntArrayElements(arg7, NULL)) == NULL) goto fail; + rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, jint, jint, jboolean *, jint *))(*(jint **)arg1)[arg0])(arg1, arg2, arg3, arg4, arg5, lparg6, lparg7); +fail: + if (arg7 && lparg7) env->ReleaseIntArrayElements(arg7, lparg7, 0); + if (arg6 && lparg6) env->ReleaseBooleanArrayElements(arg6, lparg6, 0); + XPCOM_NATIVE_EXIT(env, that, VtblCall__IIIIII_3Z_3I_FUNC); + return rc; +} +#endif + #ifndef NO_VtblCall__IIIIIZ extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__IIIIIZ)(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jboolean arg5); JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__IIIIIZ) @@ -282,6 +302,23 @@ fail: } #endif +#ifndef NO_VtblCall__IIIII_3I +extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__IIIII_3I)(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jintArray arg5); +JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__IIIII_3I) + (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jintArray arg5) +{ + jint *lparg5=NULL; + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, VtblCall__IIIII_3I_FUNC); + if (arg5) if ((lparg5 = env->GetIntArrayElements(arg5, NULL)) == NULL) goto fail; + rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, jint, jint *))(*(jint **)arg1)[arg0])(arg1, arg2, arg3, arg4, lparg5); +fail: + if (arg5 && lparg5) env->ReleaseIntArrayElements(arg5, lparg5, 0); + XPCOM_NATIVE_EXIT(env, that, VtblCall__IIIII_3I_FUNC); + return rc; +} +#endif + #ifndef NO_VtblCall__IIIIJJJJ extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__IIIIJJJJ)(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jlong arg4, jlong arg5, jlong arg6, jlong arg7); JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__IIIIJJJJ) @@ -804,6 +841,29 @@ fail: } #endif +#ifndef NO_VtblCall__III_3C_3C_3I +extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__III_3C_3C_3I)(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jcharArray arg3, jcharArray arg4, jintArray arg5); +JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__III_3C_3C_3I) + (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jcharArray arg3, jcharArray arg4, jintArray arg5) +{ + jchar *lparg3=NULL; + jchar *lparg4=NULL; + jint *lparg5=NULL; + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, VtblCall__III_3C_3C_3I_FUNC); + if (arg3) if ((lparg3 = env->GetCharArrayElements(arg3, NULL)) == NULL) goto fail; + if (arg4) if ((lparg4 = env->GetCharArrayElements(arg4, NULL)) == NULL) goto fail; + if (arg5) if ((lparg5 = env->GetIntArrayElements(arg5, NULL)) == NULL) goto fail; + rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jchar *, jchar *, jint *))(*(jint **)arg1)[arg0])(arg1, arg2, lparg3, lparg4, lparg5); +fail: + if (arg5 && lparg5) env->ReleaseIntArrayElements(arg5, lparg5, 0); + if (arg4 && lparg4) env->ReleaseCharArrayElements(arg4, lparg4, 0); + if (arg3 && lparg3) env->ReleaseCharArrayElements(arg3, lparg3, 0); + XPCOM_NATIVE_EXIT(env, that, VtblCall__III_3C_3C_3I_FUNC); + return rc; +} +#endif + #ifndef NO_VtblCall__III_3C_3C_3I_3C_3Z_3Z extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__III_3C_3C_3I_3C_3Z_3Z)(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jcharArray arg3, jcharArray arg4, jintArray arg5, jcharArray arg6, jbooleanArray arg7, jbooleanArray arg8); JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__III_3C_3C_3I_3C_3Z_3Z) @@ -1297,6 +1357,26 @@ fail: } #endif +#ifndef NO_VtblCall__II_3BI_3I +extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3BI_3I)(JNIEnv *env, jclass that, jint arg0, jint arg1, jbyteArray arg2, jint arg3, jintArray arg4); +JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3BI_3I) + (JNIEnv *env, jclass that, jint arg0, jint arg1, jbyteArray arg2, jint arg3, jintArray arg4) +{ + jbyte *lparg2=NULL; + jint *lparg4=NULL; + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, VtblCall__II_3BI_3I_FUNC); + if (arg2) if ((lparg2 = env->GetByteArrayElements(arg2, NULL)) == NULL) goto fail; + if (arg4) if ((lparg4 = env->GetIntArrayElements(arg4, NULL)) == NULL) goto fail; + rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jbyte *, jint, jint *))(*(jint **)arg1)[arg0])(arg1, lparg2, arg3, lparg4); +fail: + if (arg4 && lparg4) env->ReleaseIntArrayElements(arg4, lparg4, 0); + if (arg2 && lparg2) env->ReleaseByteArrayElements(arg2, lparg2, 0); + XPCOM_NATIVE_EXIT(env, that, VtblCall__II_3BI_3I_FUNC); + return rc; +} +#endif + #ifndef NO_VtblCall__II_3BJ extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3BJ)(JNIEnv *env, jclass that, jint arg0, jint arg1, jbyteArray arg2, jlong arg3); JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3BJ) @@ -1621,6 +1701,29 @@ fail: } #endif +#ifndef NO_VtblCall__II_3B_3Z_3I +extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3B_3Z_3I)(JNIEnv *env, jclass that, jint arg0, jint arg1, jbyteArray arg2, jbooleanArray arg3, jintArray arg4); +JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3B_3Z_3I) + (JNIEnv *env, jclass that, jint arg0, jint arg1, jbyteArray arg2, jbooleanArray arg3, jintArray arg4) +{ + jbyte *lparg2=NULL; + jboolean *lparg3=NULL; + jint *lparg4=NULL; + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, VtblCall__II_3B_3Z_3I_FUNC); + if (arg2) if ((lparg2 = env->GetByteArrayElements(arg2, NULL)) == NULL) goto fail; + if (arg3) if ((lparg3 = env->GetBooleanArrayElements(arg3, NULL)) == NULL) goto fail; + if (arg4) if ((lparg4 = env->GetIntArrayElements(arg4, NULL)) == NULL) goto fail; + rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jbyte *, jboolean *, jint *))(*(jint **)arg1)[arg0])(arg1, lparg2, lparg3, lparg4); +fail: + if (arg4 && lparg4) env->ReleaseIntArrayElements(arg4, lparg4, 0); + if (arg3 && lparg3) env->ReleaseBooleanArrayElements(arg3, lparg3, 0); + if (arg2 && lparg2) env->ReleaseByteArrayElements(arg2, lparg2, 0); + XPCOM_NATIVE_EXIT(env, that, VtblCall__II_3B_3Z_3I_FUNC); + return rc; +} +#endif + #ifndef NO_VtblCall__II_3C extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3C)(JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2); JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3C) @@ -1675,6 +1778,23 @@ fail: } #endif +#ifndef NO_VtblCall__II_3CZ +extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3CZ)(JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2, jboolean arg3); +JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3CZ) + (JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2, jboolean arg3) +{ + jchar *lparg2=NULL; + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, VtblCall__II_3CZ_FUNC); + if (arg2) if ((lparg2 = env->GetCharArrayElements(arg2, NULL)) == NULL) goto fail; + rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jchar *, jboolean))(*(jint **)arg1)[arg0])(arg1, lparg2, arg3); +fail: + if (arg2 && lparg2) env->ReleaseCharArrayElements(arg2, lparg2, 0); + XPCOM_NATIVE_EXIT(env, that, VtblCall__II_3CZ_FUNC); + return rc; +} +#endif + #ifndef NO_VtblCall__II_3C_3C extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3C_3C)(JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2, jcharArray arg3); JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3C_3C) @@ -1695,6 +1815,49 @@ fail: } #endif +#ifndef NO_VtblCall__II_3C_3C_3CZ +extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3C_3C_3CZ)(JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2, jcharArray arg3, jcharArray arg4, jboolean arg5); +JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3C_3C_3CZ) + (JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2, jcharArray arg3, jcharArray arg4, jboolean arg5) +{ + jchar *lparg2=NULL; + jchar *lparg3=NULL; + jchar *lparg4=NULL; + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, VtblCall__II_3C_3C_3CZ_FUNC); + if (arg2) if ((lparg2 = env->GetCharArrayElements(arg2, NULL)) == NULL) goto fail; + if (arg3) if ((lparg3 = env->GetCharArrayElements(arg3, NULL)) == NULL) goto fail; + if (arg4) if ((lparg4 = env->GetCharArrayElements(arg4, NULL)) == NULL) goto fail; + rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jchar *, jchar *, jchar *, jboolean))(*(jint **)arg1)[arg0])(arg1, lparg2, lparg3, lparg4, arg5); +fail: + if (arg4 && lparg4) env->ReleaseCharArrayElements(arg4, lparg4, 0); + if (arg3 && lparg3) env->ReleaseCharArrayElements(arg3, lparg3, 0); + if (arg2 && lparg2) env->ReleaseCharArrayElements(arg2, lparg2, 0); + XPCOM_NATIVE_EXIT(env, that, VtblCall__II_3C_3C_3CZ_FUNC); + return rc; +} +#endif + +#ifndef NO_VtblCall__II_3C_3Z +extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3C_3Z)(JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2, jbooleanArray arg3); +JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3C_3Z) + (JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2, jbooleanArray arg3) +{ + jchar *lparg2=NULL; + jboolean *lparg3=NULL; + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, VtblCall__II_3C_3Z_FUNC); + if (arg2) if ((lparg2 = env->GetCharArrayElements(arg2, NULL)) == NULL) goto fail; + if (arg3) if ((lparg3 = env->GetBooleanArrayElements(arg3, NULL)) == NULL) goto fail; + rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jchar *, jboolean *))(*(jint **)arg1)[arg0])(arg1, lparg2, lparg3); +fail: + if (arg3 && lparg3) env->ReleaseBooleanArrayElements(arg3, lparg3, 0); + if (arg2 && lparg2) env->ReleaseCharArrayElements(arg2, lparg2, 0); + XPCOM_NATIVE_EXIT(env, that, VtblCall__II_3C_3Z_FUNC); + return rc; +} +#endif + #ifndef NO_VtblCall__II_3F extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3F)(JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2); JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__II_3F) diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.cpp b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.cpp index b61c8e805b..f97e851a56 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.cpp +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.cpp @@ -14,8 +14,8 @@ #ifdef NATIVE_STATS -int XPCOM_nativeFunctionCount = 118; -int XPCOM_nativeFunctionCallCount[118]; +int XPCOM_nativeFunctionCount = 126; +int XPCOM_nativeFunctionCallCount[126]; char * XPCOM_nativeFunctionNames[] = { "Call", "NS_1GetComponentManager", @@ -32,9 +32,11 @@ char * XPCOM_nativeFunctionNames[] = { "VtblCall__IIIIIIII", "VtblCall__IIIIIIJII", "VtblCall__IIIIIIZ", + "VtblCall__IIIIII_3Z_3I", "VtblCall__IIIIIZ", "VtblCall__IIIIIZ_3CIIIIZ_3I_3I", "VtblCall__IIIII_3C", + "VtblCall__IIIII_3I", "VtblCall__IIIIJJJJ", "VtblCall__IIIIJZ", "VtblCall__IIIIZ", @@ -63,6 +65,7 @@ char * XPCOM_nativeFunctionNames[] = { "VtblCall__III_3C_3CI_3I_3I_3Z", "VtblCall__III_3C_3C_3C_3Z", "VtblCall__III_3C_3C_3C_3Z_3Z", + "VtblCall__III_3C_3C_3I", "VtblCall__III_3C_3C_3I_3C_3Z_3Z", "VtblCall__III_3C_3C_3I_3I_3C_3Z_3Z", "VtblCall__III_3C_3C_3Z", @@ -88,6 +91,7 @@ char * XPCOM_nativeFunctionNames[] = { "VtblCall__II_3B", "VtblCall__II_3BI", "VtblCall__II_3BILorg_eclipse_swt_internal_mozilla_nsID_2_3I", + "VtblCall__II_3BI_3I", "VtblCall__II_3BJ", "VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2I", "VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2_3I", @@ -103,10 +107,14 @@ char * XPCOM_nativeFunctionNames[] = { "VtblCall__II_3B_3I_3Z", "VtblCall__II_3B_3J", "VtblCall__II_3B_3Z", + "VtblCall__II_3B_3Z_3I", "VtblCall__II_3C", "VtblCall__II_3CIIII", "VtblCall__II_3CI_3I", + "VtblCall__II_3CZ", "VtblCall__II_3C_3C", + "VtblCall__II_3C_3C_3CZ", + "VtblCall__II_3C_3Z", "VtblCall__II_3F", "VtblCall__II_3I", "VtblCall__II_3I_3I", diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.h b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.h index 7ac8e1c02b..37becb7842 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.h +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.h @@ -40,9 +40,11 @@ typedef enum { VtblCall__IIIIIIII_FUNC, VtblCall__IIIIIIJII_FUNC, VtblCall__IIIIIIZ_FUNC, + VtblCall__IIIIII_3Z_3I_FUNC, VtblCall__IIIIIZ_FUNC, VtblCall__IIIIIZ_3CIIIIZ_3I_3I_FUNC, VtblCall__IIIII_3C_FUNC, + VtblCall__IIIII_3I_FUNC, VtblCall__IIIIJJJJ_FUNC, VtblCall__IIIIJZ_FUNC, VtblCall__IIIIZ_FUNC, @@ -71,6 +73,7 @@ typedef enum { VtblCall__III_3C_3CI_3I_3I_3Z_FUNC, VtblCall__III_3C_3C_3C_3Z_FUNC, VtblCall__III_3C_3C_3C_3Z_3Z_FUNC, + VtblCall__III_3C_3C_3I_FUNC, VtblCall__III_3C_3C_3I_3C_3Z_3Z_FUNC, VtblCall__III_3C_3C_3I_3I_3C_3Z_3Z_FUNC, VtblCall__III_3C_3C_3Z_FUNC, @@ -96,6 +99,7 @@ typedef enum { VtblCall__II_3B_FUNC, VtblCall__II_3BI_FUNC, VtblCall__II_3BILorg_eclipse_swt_internal_mozilla_nsID_2_3I_FUNC, + VtblCall__II_3BI_3I_FUNC, VtblCall__II_3BJ_FUNC, VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2I_FUNC, VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2_3I_FUNC, @@ -111,10 +115,14 @@ typedef enum { VtblCall__II_3B_3I_3Z_FUNC, VtblCall__II_3B_3J_FUNC, VtblCall__II_3B_3Z_FUNC, + VtblCall__II_3B_3Z_3I_FUNC, VtblCall__II_3C_FUNC, VtblCall__II_3CIIII_FUNC, VtblCall__II_3CI_3I_FUNC, + VtblCall__II_3CZ_FUNC, VtblCall__II_3C_3C_FUNC, + VtblCall__II_3C_3C_3CZ_FUNC, + VtblCall__II_3C_3Z_FUNC, VtblCall__II_3F_FUNC, VtblCall__II_3I_FUNC, VtblCall__II_3I_3I_FUNC, diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/AppFileLocProvider.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/AppFileLocProvider.java index 59540b687d..85c63648cf 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/AppFileLocProvider.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/AppFileLocProvider.java @@ -92,12 +92,12 @@ int /*long*/ queryInterface (int /*long*/ riid, int /*long*/ ppvObject) { AddRef (); return XPCOM.NS_OK; } - if (guid.Equals (XPCOM.NS_IDIRECTORYSERVICEPROVIDER_IID)) { + if (guid.Equals (nsIDirectoryServiceProvider.NS_IDIRECTORYSERVICEPROVIDER_IID)) { XPCOM.memmove (ppvObject, new int /*long*/[] {directoryServiceProvider.getAddress ()}, C.PTR_SIZEOF); AddRef (); return XPCOM.NS_OK; } - if (guid.Equals (XPCOM.NS_IDIRECTORYSERVICEPROVIDER2_IID)) { + if (guid.Equals (nsIDirectoryServiceProvider2.NS_IDIRECTORYSERVICEPROVIDER2_IID)) { XPCOM.memmove (ppvObject, new int /*long*/[] {directoryServiceProvider2.getAddress ()}, C.PTR_SIZEOF); AddRef (); return XPCOM.NS_OK; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/FilePicker.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/FilePicker.java index 8abfab3a85..11fba11559 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/FilePicker.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/FilePicker.java @@ -96,7 +96,7 @@ int /*long*/ QueryInterface (int /*long*/ riid, int /*long*/ ppvObject) { AddRef (); return XPCOM.NS_OK; } - if (guid.Equals (XPCOM.NS_IFILEPICKER_1_8_IID)) { + if (guid.Equals (nsIFilePicker_1_8.NS_IFILEPICKER_IID)) { XPCOM.memmove(ppvObject, new int /*long*/[] {filePicker.getAddress ()}, C.PTR_SIZEOF); AddRef (); return XPCOM.NS_OK; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/HelperAppLauncherDialog.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/HelperAppLauncherDialog.java index 8e4dfcc4d5..e7fa2f93a9 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/HelperAppLauncherDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/HelperAppLauncherDialog.java @@ -71,7 +71,7 @@ int /*long*/ QueryInterface (int /*long*/ riid, int /*long*/ ppvObject) { AddRef (); return XPCOM.NS_OK; } - if (guid.Equals (XPCOM.NS_IHELPERAPPLAUNCHERDIALOG_IID)) { + if (guid.Equals (nsIHelperAppLauncherDialog.NS_IHELPERAPPLAUNCHERDIALOG_IID)) { XPCOM.memmove (ppvObject, new int /*long*/[] {helperAppLauncherDialog.getAddress ()}, C.PTR_SIZEOF); AddRef (); return XPCOM.NS_OK; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/InputStream.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/InputStream.java index b944fd12ce..3800e3a963 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/InputStream.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/InputStream.java @@ -66,7 +66,7 @@ int /*long*/ QueryInterface (int /*long*/ riid, int /*long*/ ppvObject) { AddRef (); return XPCOM.NS_OK; } - if (guid.Equals (XPCOM.NS_IINPUTSTREAM_IID)) { + if (guid.Equals (nsIInputStream.NS_IINPUTSTREAM_IID)) { XPCOM.memmove (ppvObject, new int /*long*/[] {inputStream.getAddress ()}, C.PTR_SIZEOF); AddRef (); return XPCOM.NS_OK; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/WindowCreator2.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/WindowCreator2.java index 10246874f5..af7d0c604e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/WindowCreator2.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/WindowCreator2.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2003, 2005 IBM Corporation and others. + * Copyright (c) 2003, 2007 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -86,12 +86,12 @@ int /*long*/ QueryInterface (int /*long*/ riid, int /*long*/ ppvObject) { AddRef (); return XPCOM.NS_OK; } - if (guid.Equals (XPCOM.NS_IWINDOWCREATOR_IID)) { + if (guid.Equals (nsIWindowCreator.NS_IWINDOWCREATOR_IID)) { XPCOM.memmove (ppvObject, new int /*long*/[] {windowCreator.getAddress ()}, C.PTR_SIZEOF); AddRef (); return XPCOM.NS_OK; } - if (guid.Equals (XPCOM.NS_IWINDOWCREATOR2_IID)) { + if (guid.Equals (nsIWindowCreator2.NS_IWINDOWCREATOR2_IID)) { XPCOM.memmove (ppvObject, new int /*long*/[] {windowCreator2.getAddress ()}, C.PTR_SIZEOF); AddRef (); return XPCOM.NS_OK; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM.java index a646db71bb..46c693d47a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM.java @@ -45,16 +45,6 @@ public class XPCOM extends C { public static final nsID NS_LOADGROUP_CID = new nsID("e1c61582-2a84-11d3-8cce-0060b0fc14a3"); //$NON-NLS-1$ public static final nsID NS_PROMPTSERVICE_CID = new nsID("a2112d6a-0e28-421f-b46a-25c0b308cbd0"); //$NON-NLS-1$ - /* IID constants */ - public static final nsID NS_IDIRECTORYSERVICEPROVIDER_IID = new nsID("bbf8cab0-d43a-11d3-8cc2-00609792278c"); //$NON-NLS-1$ - public static final nsID NS_IDIRECTORYSERVICEPROVIDER2_IID = new nsID("2f977d4b-5485-11d4-87e2-0010a4e75ef2"); //$NON-NLS-1$ - public static final nsID NS_IFILEPICKER_1_8_IID = new nsID("80faf095-c807-4558-a2cc-185ed70754ea"); //$NON-NLS-1$ - public static final nsID NS_IHELPERAPPLAUNCHERDIALOG_IID = new nsID("d7ebddf0-4c84-11d4-807a-00600811a9c3"); //$NON-NLS-1$ - public static final nsID NS_IINPUTSTREAM_IID = new nsID("fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a"); //$NON-NLS-1$ - public static final nsID NS_IWINDOWCREATOR_IID = new nsID("30465632-a777-44cc-90f9-8145475ef999"); //$NON-NLS-1$ - public static final nsID NS_IWINDOWCREATOR2_IID = new nsID("f673ec81-a4b0-11d6-964b-eb5a2bf216fc"); //$NON-NLS-1$ - - /* CONTRACTID constants */ public static final String NS_CONTEXTSTACK_CONTRACTID = "@mozilla.org/js/xpc/ContextStack;1"; //$NON-NLS-1$ public static final String NS_COOKIEMANAGER_CONTRACTID = "@mozilla.org/cookiemanager;1"; //$NON-NLS-1$ public static final String NS_DIRECTORYSERVICE_CONTRACTID = "@mozilla.org/file/directory_service;1"; //$NON-NLS-1$ @@ -175,10 +165,13 @@ static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, nsID arg0, b static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, nsID arg0, int /*long*/ arg1); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, nsID arg0, int /*long*/[] arg1); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, boolean arg1, boolean arg2, int /*long*/ arg3, int arg4, int arg5, int arg6, int arg7, int arg8, boolean arg9, boolean arg10, boolean arg11, boolean arg12, short arg13, int /*long*/ arg14); +static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, char[] arg0, boolean arg1); +static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, char[] arg0, boolean[] arg1); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, char[] arg0, char[] arg1); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, byte[] arg0, int /*long*/[] arg1, boolean[] arg2); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/[] arg0, int /*long*/[] arg1, int /*long*/[] arg2); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int[] arg0, long[] arg1, int /*long*/[] arg2); +static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, byte[] arg0, int arg1, int[] arg2); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, byte[] arg0, nsID arg1, boolean[] arg2); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, byte[] arg0, nsID arg1, int /*long*/[] arg2); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, char[] arg0, int /*long*/ arg1, int /*long*/[] arg2); @@ -200,13 +193,16 @@ static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, byte[] arg0, static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, byte[] arg0, int /*long*/ arg1, nsID arg2, int /*long*/[] arg3); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, byte[] arg1, int /*long*/ arg2, int /*long*/[] arg3); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, char[] arg1, char[] arg2, boolean[] arg3); +static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, char[] arg1, char[] arg2, int /*long*/[] arg3); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/ arg1, int arg2, boolean arg3); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/ arg1, long arg2, boolean arg3); // needed for 64-bit static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/ arg1, int arg2, char[] arg3); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/ arg1, int arg2, int arg3); +static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/ arg1, int arg2, int[] arg3); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int[] arg0, int[] arg1, int[] arg2, int[] arg3); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, nsID arg0, byte[] arg1, byte[] arg2, int /*long*/ arg3); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, nsID arg0, int /*long*/ arg1, nsID arg2, int /*long*/[] arg3); +static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, char[] arg0, char[] arg1, char[] arg2, boolean arg3); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, byte[] arg0, boolean arg1, int /*long*/ arg2, int /*long*/[] arg3, boolean[] arg4); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, char[] arg0, int arg1, int /*long*/ arg2, int /*long*/ arg3, int /*long*/ arg4); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, boolean arg1, boolean arg2, int /*long*/ arg3, int arg4); @@ -237,4 +233,7 @@ static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, byte[] arg1); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, byte[] arg1, boolean arg2); static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, byte[] arg1, char[] arg2); +static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, byte[] arg0, boolean[] arg1, int /*long*/[] arg2); +static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int arg1, int arg2, int /*long*/ arg3, boolean[] arg4, int /*long*/[] arg5); + } diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider.java new file mode 100644 index 0000000000..c6950abe50 --- /dev/null +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider.java @@ -0,0 +1,47 @@ +/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Mozilla Communicator client code, released March 31, 1998.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by Netscape are Copyright (C) 1998-1999
+ * Netscape Communications Corporation. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * IBM
+ * - Binding to permit interfacing between Mozilla and SWT
+ * - Copyright (C) 2003 IBM Corp. All Rights Reserved.
+ *
+ * ***** END LICENSE BLOCK ***** */
+package org.eclipse.swt.internal.mozilla;
+
+public class nsIDirectoryServiceProvider extends nsISupports {
+
+ static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 1;
+
+ public static final String NS_IDIRECTORYSERVICEPROVIDER_IID_STR =
+ "bbf8cab0-d43a-11d3-8cc2-00609792278c";
+
+ public static final nsID NS_IDIRECTORYSERVICEPROVIDER_IID =
+ new nsID(NS_IDIRECTORYSERVICEPROVIDER_IID_STR);
+
+ public nsIDirectoryServiceProvider(int /*long*/ address) {
+ super(address);
+ }
+
+ public int GetFile(byte[] prop, boolean[] persistent, int /*long*/[] _retval) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), prop, persistent, _retval);
+ }
+}
\ No newline at end of file diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider2.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider2.java new file mode 100644 index 0000000000..a277b15875 --- /dev/null +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider2.java @@ -0,0 +1,47 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla Communicator client code, released March 31, 1998. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation. + * Portions created by Netscape are Copyright (C) 1998-1999 + * Netscape Communications Corporation. All Rights Reserved. + * + * Contributor(s): + * + * IBM + * - Binding to permit interfacing between Mozilla and SWT + * - Copyright (C) 2003 IBM Corp. All Rights Reserved. + * + * ***** END LICENSE BLOCK ***** */ +package org.eclipse.swt.internal.mozilla; + +public class nsIDirectoryServiceProvider2 extends nsIDirectoryServiceProvider { + + static final int LAST_METHOD_ID = nsIDirectoryServiceProvider.LAST_METHOD_ID + 1; + + public static final String NS_IDIRECTORYSERVICEPROVIDER2_IID_STRING = + "2f977d4b-5485-11d4-87e2-0010a4e75ef2"; + + public static final nsID NS_IDIRECTORYSERVICEPROVIDER2_IID = + new nsID(NS_IDIRECTORYSERVICEPROVIDER2_IID_STRING); + + public nsIDirectoryServiceProvider2(int /*long*/ address) { + super(address); + } + + public int GetFiles(byte[] prop, int /*long*/[] _retval) { + return XPCOM.VtblCall(nsIDirectoryServiceProvider.LAST_METHOD_ID + 1, getAddress(), prop, _retval); + } +}
\ No newline at end of file diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIFilePicker_1_8.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIFilePicker_1_8.java new file mode 100644 index 0000000000..a7617ec8b7 --- /dev/null +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIFilePicker_1_8.java @@ -0,0 +1,118 @@ +/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Mozilla Communicator client code, released March 31, 1998.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by Netscape are Copyright (C) 1998-1999
+ * Netscape Communications Corporation. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * IBM
+ * - Binding to permit interfacing between Mozilla and SWT
+ * - Copyright (C) 2003 IBM Corp. All Rights Reserved.
+ *
+ * ***** END LICENSE BLOCK ***** */
+package org.eclipse.swt.internal.mozilla;
+
+public class nsIFilePicker_1_8 extends nsISupports {
+
+ static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 15;
+
+ public static final String NS_IFILEPICKER_IID_STR =
+ "80faf095-c807-4558-a2cc-185ed70754ea";
+
+ public static final nsID NS_IFILEPICKER_IID =
+ new nsID(NS_IFILEPICKER_IID_STR);
+
+ public nsIFilePicker_1_8(int /*long*/ address) {
+ super(address);
+ }
+
+ public static final int modeOpen = 0;
+ public static final int modeSave = 1;
+ public static final int modeGetFolder = 2;
+ public static final int modeOpenMultiple = 3;
+ public static final int returnOK = 0;
+ public static final int returnCancel = 1;
+ public static final int returnReplace = 2;
+ public static final int filterAll = 1;
+ public static final int filterHTML = 2;
+ public static final int filterText = 4;
+ public static final int filterImages = 8;
+ public static final int filterXML = 16;
+ public static final int filterXUL = 32;
+ public static final int filterApps = 64;
+
+ public int Init(int /*long*/ parent, int /*long*/ title, int mode) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), parent, title, mode);
+ }
+
+ public int AppendFilters(int filterMask) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), filterMask);
+ }
+
+ public int AppendFilter(int /*long*/ title, int /*long*/ filter) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), title, filter);
+ }
+
+ public int GetDefaultString(int /*long*/ aDefaultString) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), aDefaultString);
+ }
+
+ public int SetDefaultString(int /*long*/ aDefaultString) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), aDefaultString);
+ }
+
+ public int GetDefaultExtension(int /*long*/ aDefaultExtension) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress(), aDefaultExtension);
+ }
+
+ public int SetDefaultExtension(int /*long*/ aDefaultExtension) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), aDefaultExtension);
+ }
+
+ public int GetFilterIndex(int[] aFilterIndex) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress(), aFilterIndex);
+ }
+
+ public int SetFilterIndex(int aFilterIndex) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), aFilterIndex);
+ }
+
+ public int GetDisplayDirectory(int /*long*/[] aDisplayDirectory) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), aDisplayDirectory);
+ }
+
+ public int SetDisplayDirectory(int /*long*/ aDisplayDirectory) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11, getAddress(), aDisplayDirectory);
+ }
+
+ public int GetFile(int /*long*/[] aFile) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12, getAddress(), aFile);
+ }
+
+ public int GetFileURL(int /*long*/[] aFileURL) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13, getAddress(), aFileURL);
+ }
+
+ public int GetFiles(int /*long*/[] aFiles) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14, getAddress(), aFiles);
+ }
+
+ public int Show(int /*long*/ _retval) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15, getAddress(), _retval);
+ }
+}
\ No newline at end of file diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIHelperAppLauncherDialog.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIHelperAppLauncherDialog.java new file mode 100644 index 0000000000..10ca834a67 --- /dev/null +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIHelperAppLauncherDialog.java @@ -0,0 +1,55 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla Communicator client code, released March 31, 1998. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation. + * Portions created by Netscape are Copyright (C) 1998-1999 + * Netscape Communications Corporation. All Rights Reserved. + * + * Contributor(s): + * + * IBM + * - Binding to permit interfacing between Mozilla and SWT + * - Copyright (C) 2004, 2005 IBM Corp. All Rights Reserved. + * + * ***** END LICENSE BLOCK ***** */ +package org.eclipse.swt.internal.mozilla; + +public class nsIHelperAppLauncherDialog extends nsISupports { + + static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 3; + + public static final String NS_IHELPERAPPLAUNCHERDIALOG_IID_STR = + "d7ebddf0-4c84-11d4-807a-00600811a9c3"; + + public static final nsID NS_IHELPERAPPLAUNCHERDIALOG_IID = + new nsID(NS_IHELPERAPPLAUNCHERDIALOG_IID_STR); + + public nsIHelperAppLauncherDialog(int /*long*/ address) { + super(address); + } + + public int Show(int /*long*/ aLauncher, int /*long*/ aContext) { + return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), aLauncher, aContext); + } + + public int PromptForSaveToFile(int /*long*/ aWindowContext, char[] aDefaultFile, char[] aSuggestedFileExtension, int /*long*/[] _retval) { + return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aWindowContext, aDefaultFile, aSuggestedFileExtension, _retval); + } + + public int ShowProgressDialog(int /*long*/ aLauncher, int /*long*/ aContext) { + return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aLauncher, aContext); + } +}
\ No newline at end of file diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIInputStream.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIInputStream.java new file mode 100644 index 0000000000..f95ef69c66 --- /dev/null +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIInputStream.java @@ -0,0 +1,63 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla Communicator client code, released March 31, 1998. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation. + * Portions created by Netscape are Copyright (C) 1998-1999 + * Netscape Communications Corporation. All Rights Reserved. + * + * Contributor(s): + * + * IBM + * - Binding to permit interfacing between Mozilla and SWT + * - Copyright (C) 2003, 2005 IBM Corp. All Rights Reserved. + * + * ***** END LICENSE BLOCK ***** */ +package org.eclipse.swt.internal.mozilla; + +public class nsIInputStream extends nsISupports { + + static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 5; + + public static final String NS_IINPUTSTREAM_IID_STR = + "fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a"; + + public static final nsID NS_IINPUTSTREAM_IID = + new nsID(NS_IINPUTSTREAM_IID_STR); + + public nsIInputStream(int /*long*/ address) { + super(address); + } + + public int Close() { + return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress()); + } + + public int Available(int[] _retval) { + return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), _retval); + } + + public int Read(byte[] aBuf, int aCount, int[] _retval) { + return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aBuf, aCount, _retval); + } + + public int ReadSegments(int /*long*/ aWriter, int /*long*/ aClosure, int aCount, int[] _retval) { + return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), aWriter, aClosure, aCount, _retval); + } + + public int IsNonBlocking(boolean[] _retval) { + return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), _retval); + } +}
\ No newline at end of file diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIWindowCreator.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIWindowCreator.java new file mode 100644 index 0000000000..d7f5d7fb93 --- /dev/null +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIWindowCreator.java @@ -0,0 +1,47 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla Communicator client code, released March 31, 1998. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation. + * Portions created by Netscape are Copyright (C) 1998-1999 + * Netscape Communications Corporation. All Rights Reserved. + * + * Contributor(s): + * + * IBM + * - Binding to permit interfacing between Mozilla and SWT + * - Copyright (C) 2003, 2005 IBM Corp. All Rights Reserved. + * + * ***** END LICENSE BLOCK ***** */ +package org.eclipse.swt.internal.mozilla; + +public class nsIWindowCreator extends nsISupports { + + static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 1; + + public static final String NS_IWINDOWCREATOR_IID_STR = + "30465632-a777-44cc-90f9-8145475ef999"; + + public static final nsID NS_IWINDOWCREATOR_IID = + new nsID(NS_IWINDOWCREATOR_IID_STR); + + public nsIWindowCreator(int /*long*/ address) { + super(address); + } + + public int CreateChromeWindow(int /*long*/ parent, int chromeFlags, int /*long*/[] _retval) { + return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), parent, chromeFlags, _retval); + } +}
\ No newline at end of file diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIWindowCreator2.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIWindowCreator2.java new file mode 100644 index 0000000000..65bf318a16 --- /dev/null +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIWindowCreator2.java @@ -0,0 +1,49 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla Communicator client code, released March 31, 1998. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation. + * Portions created by Netscape are Copyright (C) 1998-1999 + * Netscape Communications Corporation. All Rights Reserved. + * + * Contributor(s): + * + * IBM + * - Binding to permit interfacing between Mozilla and SWT + * - Copyright (C) 2003, 2005 IBM Corp. All Rights Reserved. + * + * ***** END LICENSE BLOCK ***** */ +package org.eclipse.swt.internal.mozilla; + +public class nsIWindowCreator2 extends nsIWindowCreator { + + static final int LAST_METHOD_ID = nsIWindowCreator.LAST_METHOD_ID + 1; + + public static final String NS_IWINDOWCREATOR2_IID_STR = + "f673ec81-a4b0-11d6-964b-eb5a2bf216fc"; + + public static final nsID NS_IWINDOWCREATOR2_IID = + new nsID(NS_IWINDOWCREATOR2_IID_STR); + + public nsIWindowCreator2(int /*long*/ address) { + super(address); + } + + public static final int PARENT_IS_LOADING_OR_RUNNING_TIMEOUT = 1; + + public int CreateChromeWindow2(int /*long*/ parent, int chromeFlags, int contextFlags, int /*long*/ uri, boolean[] cancel, int /*long*/[] _retval) { + return XPCOM.VtblCall(nsIWindowCreator.LAST_METHOD_ID + 1, getAddress(), parent, chromeFlags, contextFlags, uri, cancel, _retval); + } +} |