Ignore:
Timestamp:
Jan 7, 2007, 9:11:18 PM (18 years ago)
Author:
ddkilzer
Message:

JavaScriptCore:

Reviewed by Darin.

Change JNI so that it is not wrapped in the PLATFORM(MAC) ifdef, enabling
other platforms who have JNI to use it.

  • bindings/jni/jni_instance.h: Removed unnecessary include of <CoreFoundation/CoreFoundation.h>
  • bindings/jni/jni_utility.cpp: (KJS::Bindings::setJavaVM):
  • bindings/jni/jni_utility.h: Added new method for clients to set the JavaVM
  • bindings/runtime.cpp: (KJS::Bindings::Instance::createBindingForLanguageInstance): Changed code to utilize new #if HAVE(JNI)
  • kjs/config.h: Added new #define for JNI, ie HAVE_JNI
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bindings/runtime.cpp

    r18461 r18657  
    3030#include "NP_jsobject.h"
    3131#include "c_instance.h"
     32#if HAVE(JNI)
     33#include "jni_instance.h"
     34#endif
    3235#if PLATFORM(MAC)
    33 #include "jni_instance.h"
    3436#include "objc_instance.h"
    3537#endif
     
    118120   
    119121    switch (language) {
    120 #if PLATFORM(MAC)
     122#if HAVE(JNI)
    121123        case Instance::JavaLanguage: {
    122124            newInstance = new Bindings::JavaInstance((jobject)nativeInstance, rootObject);
    123125            break;
    124126        }
     127#endif
     128#if PLATFORM(MAC)
    125129        case Instance::ObjectiveCLanguage: {
    126130            newInstance = new Bindings::ObjcInstance((ObjectStructPtr)nativeInstance);
Note: See TracChangeset for help on using the changeset viewer.