Bug 1072528. Part 1: Remove plugin-related code. r=bsmedberg
This commit is contained in:
@@ -164,10 +164,7 @@ static NPNetscapeFuncs sBrowserFuncs = {
|
||||
_convertpoint,
|
||||
nullptr, // handleevent, unimplemented
|
||||
nullptr, // unfocusinstance, unimplemented
|
||||
_urlredirectresponse,
|
||||
_initasyncsurface,
|
||||
_finalizeasyncsurface,
|
||||
_setcurrentasyncsurface
|
||||
_urlredirectresponse
|
||||
};
|
||||
|
||||
static Mutex *sPluginThreadAsyncCallLock = nullptr;
|
||||
@@ -2777,36 +2774,6 @@ _popupcontextmenu(NPP instance, NPMenu* menu)
|
||||
return inst->PopUpContextMenu(menu);
|
||||
}
|
||||
|
||||
NPError
|
||||
_initasyncsurface(NPP instance, NPSize *size, NPImageFormat format, void *initData, NPAsyncSurface *surface)
|
||||
{
|
||||
nsNPAPIPluginInstance *inst = (nsNPAPIPluginInstance *)instance->ndata;
|
||||
if (!inst)
|
||||
return NPERR_GENERIC_ERROR;
|
||||
|
||||
return inst->InitAsyncSurface(size, format, initData, surface);
|
||||
}
|
||||
|
||||
NPError
|
||||
_finalizeasyncsurface(NPP instance, NPAsyncSurface *surface)
|
||||
{
|
||||
nsNPAPIPluginInstance *inst = (nsNPAPIPluginInstance *)instance->ndata;
|
||||
if (!inst)
|
||||
return NPERR_GENERIC_ERROR;
|
||||
|
||||
return inst->FinalizeAsyncSurface(surface);
|
||||
}
|
||||
|
||||
void
|
||||
_setcurrentasyncsurface(NPP instance, NPAsyncSurface *surface, NPRect *changed)
|
||||
{
|
||||
nsNPAPIPluginInstance *inst = (nsNPAPIPluginInstance *)instance->ndata;
|
||||
if (!inst)
|
||||
return;
|
||||
|
||||
inst->SetCurrentAsyncSurface(surface, changed);
|
||||
}
|
||||
|
||||
NPBool
|
||||
_convertpoint(NPP instance, double sourceX, double sourceY, NPCoordinateSpace sourceSpace, double *destX, double *destY, NPCoordinateSpace destSpace)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user