Пример #1
0
void NPN_ForceRedraw(NPP instance)
{
  GetNPNFuncs().forceredraw(instance);
}
Пример #2
0
NPIdentifier NPN_GetStringIdentifier(const NPUTF8 *name)
{
  return GetNPNFuncs().getstringidentifier(name);
}
Пример #3
0
void NPN_InvalidateRect(NPP instance, NPRect *invalidRect)
{
  GetNPNFuncs().invalidaterect(instance, invalidRect);
}
Пример #4
0
void NPN_InvalidateRegion(NPP instance, NPRegion invalidRegion)
{
  GetNPNFuncs().invalidateregion(instance, invalidRegion);
}
Пример #5
0
NPError NPN_GetURL(NPP instance, const char *url, const char *target)
{
  NPError rv = GetNPNFuncs().geturl(instance, url, target);
  return rv;
}
Пример #6
0
NPError NPN_SetValue(NPP instance, NPPVariable variable, void *value)
{
  NPError rv = GetNPNFuncs().setvalue(instance, variable, value);
  return rv;
}
Пример #7
0
void NPN_MemFree(void* ptr)
{
  GetNPNFuncs().memfree(ptr);
}
Пример #8
0
bool NPN_IdentifierIsString(NPIdentifier identifier)
{
  return GetNPNFuncs().identifierisstring(identifier);
}
Пример #9
0
const char* NPN_UserAgent(NPP instance)
{
  const char * rv = NULL;
  rv = GetNPNFuncs().uagent(instance);
  return rv;
}
Пример #10
0
void* NPN_MemAlloc(uint32 size)
{
  void * rv = NULL;
  rv = GetNPNFuncs().memalloc(size);
  return rv;
}
Пример #11
0
void NPN_Status(NPP instance, const char *message)
{
  GetNPNFuncs().status(instance, message);
}
Пример #12
0
NPError NPN_RequestRead(NPStream* stream, NPByteRange* rangeList)
{
  NPError rv = GetNPNFuncs().requestread(stream, rangeList);
  return rv;
}
Пример #13
0
NPError NPN_PostURL(NPP instance, const char* url, const char* window,
                    uint32 len, const char* buf, NPBool file)
{
  NPError rv = GetNPNFuncs().posturl(instance, url, window, len, buf, file);
  return rv;
} 
Пример #14
0
void NPN_GetStringIdentifiers(const NPUTF8 **names, int32_t nameCount,
                              NPIdentifier *identifiers)
{
  return GetNPNFuncs().getstringidentifiers(names, nameCount, identifiers);
}
Пример #15
0
uint32 NPN_MemFlush(uint32 size)
{
  uint32 rv = GetNPNFuncs().memflush(size);
  return rv;
}
Пример #16
0
NPIdentifier NPN_GetIntIdentifier(int32_t intid)
{
  return GetNPNFuncs().getintidentifier(intid);
}
Пример #17
0
void NPN_ReloadPlugins(NPBool reloadPages)
{
  GetNPNFuncs().reloadplugins(reloadPages);
}
Пример #18
0
NPUTF8 *NPN_UTF8FromIdentifier(NPIdentifier identifier)
{
  return GetNPNFuncs().utf8fromidentifier(identifier);
}
Пример #19
0
	void    NPP_StreamAsFile(NPP instance, NPStream* stream, const char* fname);
	void    NPP_Print(NPP instance, NPPrint* platformPrint);
	int16   NPP_HandleEvent(NPP instance, void* event);
	void    NPP_URLNotify(NPP instance, const char* URL, NPReason reason, void* notifyData);
	NPError NP_GetValue(void*, NPPVariable variable, void *value);
	NPError	NPP_GetValue(NPP instance, NPPVariable variable, void *value);
	NPError	NPP_SetValue(NPP instance, NPNVariable variable, void *value);
};

NPError WINAPI NP_Initialize(NPNetscapeFuncs* browserFuncs NPINIT_ARG(pluginFuncs))
{

	Debug::println("NP_Initialize");

	SetNPNFuncs(browserFuncs);
	browser = &GetNPNFuncs();
	return NPERR_NO_ERROR;
}

NPError WINAPI NP_GetEntryPoints(NPPluginFuncs* pluginFuncs)
{
	Debug::println("NP_GetEntryPoints");
	if (pluginFuncs->size < sizeof(NPPluginFuncs)) {
		return NPERR_INVALID_FUNCTABLE_ERROR;
	}

	pluginFuncs->version = (NP_VERSION_MAJOR << 8) | NP_VERSION_MINOR;
	pluginFuncs->newp          = NPP_New;
	pluginFuncs->destroy       = NPP_Destroy;
	pluginFuncs->setwindow     = NPP_SetWindow;
	pluginFuncs->newstream     = NPP_NewStream;