Bug 556487 - Plugin child/parent/PluginInstance API part. r=roc a=blocking2.0

This commit is contained in:
Oleg Romashin
2010-09-10 11:28:52 -07:00
parent 26f5a71cb9
commit e4f48b9684
10 changed files with 175 additions and 0 deletions

View File

@@ -613,6 +613,37 @@ PluginModuleParent::HasRequiredFunctions()
return true;
}
nsresult
PluginModuleParent::AsyncSetWindow(NPP instance, NPWindow* window)
{
PluginInstanceParent* i = InstCast(instance);
if (!i)
return NS_ERROR_FAILURE;
return i->AsyncSetWindow(window);
}
nsresult
PluginModuleParent::NotifyPainted(NPP instance)
{
PluginInstanceParent* i = InstCast(instance);
if (!i)
return NS_ERROR_FAILURE;
return i->NotifyPainted();
}
nsresult
PluginModuleParent::GetSurface(NPP instance, gfxASurface** aSurface)
{
PluginInstanceParent* i = InstCast(instance);
if (!i)
return NS_ERROR_FAILURE;
return i->GetSurface(aSurface);
}
#if defined(XP_UNIX) && !defined(XP_MACOSX)
nsresult
PluginModuleParent::NP_Initialize(NPNetscapeFuncs* bFuncs, NPPluginFuncs* pFuncs, NPError* error)