// Copyright 2005 Google Inc. | |
// All Rights Reserved. | |
#ifndef GWT_WEBKIT_H | |
#define GWT_WEBKIT_H | |
#include <jni.h> | |
#include "JStringWrap.h" | |
extern JNIEnv* gEnv; | |
extern jclass gClass; | |
extern jclass gDispObjCls; | |
extern jclass gDispMethCls; | |
extern jmethodID gSetFieldMeth; | |
extern jmethodID gGetFieldMeth; | |
extern jmethodID gInvokeMeth; | |
extern jmethodID gToStringMeth; | |
//#define FILETRACE | |
//#define JAVATRACE | |
#if defined(FILETRACE) && defined(JAVATRACE) | |
#define TRACE(s) filetrace(s),javatrace(s) | |
#elif defined(FILETRACE) | |
#define TRACE(s) filetrace(s) | |
#elif defined(JAVATRACE) | |
#define TRACE(s) javatrace(s) | |
#else | |
#define TRACE(s) ((void)0) | |
#endif | |
#ifdef FILETRACE | |
extern FILE* gout; | |
void filetrace(const char* s); | |
#endif // FILETRACE | |
#ifdef JAVATRACE | |
extern jmethodID gTraceMethod; | |
void javatrace(const char* s); | |
#endif // JAVATRACE | |
#endif |