webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
PluginTest Class Reference

#include <PluginTest.h>

Inheritance diagram for PluginTest:
CallInvalidateRectWithNullNPPArgument CallJSThatDestroysPlugin ContentsScaleFactor ConvertPoint DocumentOpenInDestroyStream EvaluateJSAfterRemovingPluginElement EvaluteJSWithinNPP_New FormValue GetURLNotifyWithURLThatFailsToLoad GetURLWithJavaScriptURL GetURLWithJavaScriptURLDestroyingPlugin GetUserAgentWithNullNPPFromNPPNew GetValueNetscapeWindow InvokeDestroysPluginWithinNPP_New LogNPPSetWindow NPDeallocateCalledBeforeNPShutdown NPPNewFails NPPSetWindowCalledDuringDestruction NPRuntimeCallsWithNullNPP NPRuntimeObjectFromDestroyedPlugin NPRuntimeRemoveProperty NullNPPGetValuePointer PassDifferentNPPStruct PluginScriptableNPObjectInvokeDefault PluginScriptableObjectOverridesAllProperties PrivateBrowsing SetMuted SlowNPPNew SupportsCarbonEventModel ToStringAndValueOfObject URLRedirect WindowedPluginTest WindowGeometryInitializedBeforeSetWindow WindowlessPaintRectCoordinates

Classes

struct  Object
 
class  Register
 

Public Member Functions

virtual ~PluginTest ()
 
virtual NPError NPP_New (NPMIMEType pluginType, uint16_t mode, int16_t argc, char *argn[], char *argv[], NPSavedData *saved)
 
virtual NPError NPP_Destroy (NPSavedData **)
 
virtual NPError NPP_SetWindow (NPWindow *)
 
virtual NPError NPP_NewStream (NPMIMEType, NPStream *, NPBool seekable, uint16_t *stype)
 
virtual NPError NPP_DestroyStream (NPStream *, NPReason)
 
virtual int32_t NPP_WriteReady (NPStream *)
 
virtual int32_t NPP_Write (NPStream *, int32_t offset, int32_t len, void *buffer)
 
virtual int16_t NPP_HandleEvent (void *event)
 
virtual bool NPP_URLNotify (const char *url, NPReason, void *notifyData)
 
virtual void NPP_URLRedirectNotify (const char *url, int32_t status, void *notifyData)
 
virtual NPError NPP_GetValue (NPPVariable, void *value)
 
virtual NPError NPP_SetValue (NPNVariable, void *value)
 
NPError NPN_GetURL (const char *url, const char *target)
 
NPError NPN_GetURLNotify (const char *url, const char *target, void *notifyData)
 
NPError NPN_PostURLNotify (const char *url, const char *target, uint32_t len, const char *buf, NPBool file, void *notifyData)
 
NPError NPN_GetValue (NPNVariable, void *value)
 
void NPN_InvalidateRect (NPRect *invalidRect)
 
bool NPN_Invoke (NPObject *, NPIdentifier methodName, const NPVariant *args, uint32_t argCount, NPVariant *result)
 
voidNPN_MemAlloc (uint32_t size)
 
NPIdentifier NPN_GetStringIdentifier (const NPUTF8 *name)
 
NPIdentifier NPN_GetIntIdentifier (int32_t intid)
 
bool NPN_IdentifierIsString (NPIdentifier)
 
NPUTF8NPN_UTF8FromIdentifier (NPIdentifier)
 
int32_t NPN_IntFromIdentifier (NPIdentifier)
 
NPObjectNPN_CreateObject (NPClass *)
 
NPObjectNPN_RetainObject (NPObject *)
 
void NPN_ReleaseObject (NPObject *)
 
bool NPN_RemoveProperty (NPObject *, NPIdentifier propertyName)
 
void NPN_ReleaseVariantValue (NPVariant *)
 
void NPN_URLRedirectResponse (void *notifyData, NPBool allow)
 
bool executeScript (const NPString *, NPVariant *result)
 
void executeScript (const char *)
 
void log (const char *format,...)
 
void registerNPShutdownFunction (void(*)())
 

Static Public Member Functions

static PluginTestcreate (NPP, const std::string &identifier)
 
static void NP_Shutdown ()
 
static void indicateTestFailure ()
 

Protected Member Functions

 PluginTest (NPP npp, const std::string &identifier)
 
const std::stringidentifier () const
 
void waitUntilDone ()
 
void notifyDone ()
 

Static Protected Member Functions

static NPNetscapeFuncsnetscapeFuncs ()
 

Protected Attributes

NPP m_npp
 

Constructor & Destructor Documentation

◆ ~PluginTest()

PluginTest::~PluginTest ( )
virtual

◆ PluginTest()

PluginTest::PluginTest ( NPP  npp,
const std::string identifier 
)
protected

Member Function Documentation

◆ create()

PluginTest * PluginTest::create ( NPP  npp,
const std::string identifier 
)
static

◆ executeScript() [1/2]

bool PluginTest::executeScript ( const NPString script,
NPVariant result 
)

◆ executeScript() [2/2]

void PluginTest::executeScript ( const char *  script)

◆ identifier()

const std::string& PluginTest::identifier ( ) const
inlineprotected

◆ indicateTestFailure()

void PluginTest::indicateTestFailure ( )
static

◆ log()

void PluginTest::log ( const char *  format,
  ... 
)

◆ netscapeFuncs()

NPNetscapeFuncs * PluginTest::netscapeFuncs ( )
staticprotected

◆ notifyDone()

void PluginTest::notifyDone ( )
protected

◆ NP_Shutdown()

void PluginTest::NP_Shutdown ( )
static

◆ NPN_CreateObject()

NPObject * PluginTest::NPN_CreateObject ( NPClass npClass)

◆ NPN_GetIntIdentifier()

NPIdentifier PluginTest::NPN_GetIntIdentifier ( int32_t  intid)

◆ NPN_GetStringIdentifier()

NPIdentifier PluginTest::NPN_GetStringIdentifier ( const NPUTF8 name)

◆ NPN_GetURL()

NPError PluginTest::NPN_GetURL ( const char *  url,
const char *  target 
)

◆ NPN_GetURLNotify()

NPError PluginTest::NPN_GetURLNotify ( const char *  url,
const char *  target,
void notifyData 
)

◆ NPN_GetValue()

NPError PluginTest::NPN_GetValue ( NPNVariable  variable,
void value 
)

◆ NPN_IdentifierIsString()

bool PluginTest::NPN_IdentifierIsString ( NPIdentifier  npIdentifier)

◆ NPN_IntFromIdentifier()

int32_t PluginTest::NPN_IntFromIdentifier ( NPIdentifier  npIdentifier)

◆ NPN_InvalidateRect()

void PluginTest::NPN_InvalidateRect ( NPRect invalidRect)

◆ NPN_Invoke()

bool PluginTest::NPN_Invoke ( NPObject npobj,
NPIdentifier  methodName,
const NPVariant args,
uint32_t  argCount,
NPVariant result 
)

◆ NPN_MemAlloc()

void * PluginTest::NPN_MemAlloc ( uint32_t  size)

◆ NPN_PostURLNotify()

NPError PluginTest::NPN_PostURLNotify ( const char *  url,
const char *  target,
uint32_t  len,
const char *  buf,
NPBool  file,
void notifyData 
)

◆ NPN_ReleaseObject()

void PluginTest::NPN_ReleaseObject ( NPObject npObject)

◆ NPN_ReleaseVariantValue()

void PluginTest::NPN_ReleaseVariantValue ( NPVariant variant)

◆ NPN_RemoveProperty()

bool PluginTest::NPN_RemoveProperty ( NPObject npObject,
NPIdentifier  propertyName 
)

◆ NPN_RetainObject()

NPObject * PluginTest::NPN_RetainObject ( NPObject npObject)

◆ NPN_URLRedirectResponse()

void PluginTest::NPN_URLRedirectResponse ( void notifyData,
NPBool  allow 
)

◆ NPN_UTF8FromIdentifier()

NPUTF8 * PluginTest::NPN_UTF8FromIdentifier ( NPIdentifier  npIdentifier)

◆ NPP_Destroy()

NPError PluginTest::NPP_Destroy ( NPSavedData **  )
virtual

◆ NPP_DestroyStream()

NPError PluginTest::NPP_DestroyStream ( NPStream stream,
NPReason  reason 
)
virtual

◆ NPP_GetValue()

NPError PluginTest::NPP_GetValue ( NPPVariable  variable,
void value 
)
virtual

Reimplemented in FormValue.

◆ NPP_HandleEvent()

int16_t PluginTest::NPP_HandleEvent ( void event)
virtual

◆ NPP_New()

NPError PluginTest::NPP_New ( NPMIMEType  pluginType,
uint16_t  mode,
int16_t  argc,
char *  argn[],
char *  argv[],
NPSavedData saved 
)
virtual

◆ NPP_NewStream()

NPError PluginTest::NPP_NewStream ( NPMIMEType  type,
NPStream stream,
NPBool  seekable,
uint16_t stype 
)
virtual

◆ NPP_SetValue()

NPError PluginTest::NPP_SetValue ( NPNVariable  ,
void value 
)
virtual

◆ NPP_SetWindow()

NPError PluginTest::NPP_SetWindow ( NPWindow )
virtual

◆ NPP_URLNotify()

bool PluginTest::NPP_URLNotify ( const char *  url,
NPReason  ,
void notifyData 
)
virtual

◆ NPP_URLRedirectNotify()

void PluginTest::NPP_URLRedirectNotify ( const char *  url,
int32_t  status,
void notifyData 
)
virtual

◆ NPP_Write()

int32_t PluginTest::NPP_Write ( NPStream ,
int32_t  offset,
int32_t  len,
void buffer 
)
virtual

◆ NPP_WriteReady()

int32_t PluginTest::NPP_WriteReady ( NPStream )
virtual

◆ registerNPShutdownFunction()

void PluginTest::registerNPShutdownFunction ( void(*)()  func)

◆ waitUntilDone()

void PluginTest::waitUntilDone ( )
protected

Member Data Documentation

◆ m_npp

NPP PluginTest::m_npp
protected

The documentation for this class was generated from the following files: