Changeset 18657 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jan 7, 2007, 9:11:18 PM (18 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r18656 r18657 1 2007-01-07 David Carson <[email protected]> 2 3 Reviewed by Darin. 4 5 - fix http://bugs.webkit.org/show_bug.cgi?id=12100 6 JNI bindings should be available to non-Mac platforms that have JNI 7 8 Change JNI so that it is not wrapped in the PLATFORM(MAC) ifdef, enabling 9 other platforms who have JNI to use it. 10 11 * bindings/jni/jni_instance.h: 12 Removed unnecessary include of <CoreFoundation/CoreFoundation.h> 13 * bindings/jni/jni_utility.cpp: 14 (KJS::Bindings::setJavaVM): 15 * bindings/jni/jni_utility.h: 16 Added new method for clients to set the JavaVM 17 * bindings/runtime.cpp: 18 (KJS::Bindings::Instance::createBindingForLanguageInstance): 19 Changed code to utilize new #if HAVE(JNI) 20 * kjs/config.h: 21 Added new #define for JNI, ie HAVE_JNI 22 1 23 2007-01-07 David Carson <[email protected]> 2 24 -
trunk/JavaScriptCore/bindings/jni/jni_instance.h
r13589 r18657 30 30 #include "runtime.h" 31 31 32 #include <CoreFoundation/CoreFoundation.h>33 32 #include <JavaVM/jni.h> 34 33 -
trunk/JavaScriptCore/bindings/jni/jni_utility.cpp
r15698 r18657 56 56 static JavaVM *jvm = 0; 57 57 58 // Provide the ability for an outside component to specify the JavaVM to use 59 // If the jvm value is set, the getJavaVM function below will just return. 60 // In getJNIEnv(), if AttachCurrentThread is called to a VM that is already 61 // attached, the result is a no-op. 62 void setJavaVM(JavaVM *javaVM) 63 { 64 jvm = javaVM; 65 } 66 58 67 JavaVM *getJavaVM() 59 68 { -
trunk/JavaScriptCore/bindings/jni/jni_utility.h
r15696 r18657 103 103 104 104 JavaVM *getJavaVM(); 105 void setJavaVM(JavaVM *javaVM); 105 106 JNIEnv *getJNIEnv(); 106 107 -
trunk/JavaScriptCore/bindings/runtime.cpp
r18461 r18657 30 30 #include "NP_jsobject.h" 31 31 #include "c_instance.h" 32 #if HAVE(JNI) 33 #include "jni_instance.h" 34 #endif 32 35 #if PLATFORM(MAC) 33 #include "jni_instance.h"34 36 #include "objc_instance.h" 35 37 #endif … … 118 120 119 121 switch (language) { 120 #if PLATFORM(MAC)122 #if HAVE(JNI) 121 123 case Instance::JavaLanguage: { 122 124 newInstance = new Bindings::JavaInstance((jobject)nativeInstance, rootObject); 123 125 break; 124 126 } 127 #endif 128 #if PLATFORM(MAC) 125 129 case Instance::ObjectiveCLanguage: { 126 130 newInstance = new Bindings::ObjcInstance((ObjectStructPtr)nativeInstance); -
trunk/JavaScriptCore/kjs/config.h
r18087 r18657 33 33 #define HAVE_SYS_TIME_H 1 34 34 #define HAVE_SYS_TIMEB_H 1 35 #define HAVE_JNI 1 35 36 36 37 #elif PLATFORM(WIN_OS)
Note:
See TracChangeset
for help on using the changeset viewer.