#ifndef PluginObject_h
#define PluginObject_h
#include <bindings/npfunctions.h>
#include <stdarg.h>
class PluginTest;
extern NPNetscapeFuncs *browser;
extern NPPluginFuncs* pluginFunctions;
typedef struct {
NPObject header;
PluginTest* pluginTest;
NPP npp;
NPBool eventLogging;
NPBool logSetWindow;
NPBool logDestroy;
NPBool returnNegativeOneFromWrite;
NPBool returnErrorFromNewStream;
NPObject* testObject;
NPObject* rememberedObject;
NPStream* stream;
NPBool testGetURLOnDestroy;
NPBool testWindowOpen;
NPBool testKeyboardFocusForPlugins;
NPBool mouseDownForEvaluateScript;
char* onStreamLoad;
char* onStreamDestroy;
char* onDestroy;
char* onURLNotify;
char* onSetWindow;
char* onPaintEvent;
char* firstUrl;
char* firstHeaders;
char* lastUrl;
char* lastHeaders;
char* evaluateScriptOnMouseDownOrKeyDown;
#ifdef XP_MACOSX
NPEventModel eventModel;
#endif
#ifdef XP_MACOSX
void* coreAnimationLayer;
#endif
NPWindow lastWindow;
NPBool alwaysFilterEvents;
} PluginObject;
extern NPClass* createPluginClass(void);
extern void handleCallback(PluginObject* object,
const char* url,
NPReason reason,
void* notifyData);
extern void notifyStream(PluginObject* object,
const char* url,
const char* headers);
extern void testNPRuntime(NPP npp);
extern void pluginLog(NPP instance, const char* format, ...);
extern void pluginLogWithArguments(NPP instance,
const char* format,
va_list args);
extern bool testDocumentOpen(NPP npp);
extern bool testWindowOpen(NPP npp);
#ifdef XP_MACOSX
extern void* createCoreAnimationLayer();
#endif
#endif