b=519896 NPN_InvalidateRect r=cjones

This commit is contained in:
Karl Tomlinson 2009-10-01 17:09:21 +13:00
parent 6256ea2a09
commit 3ed5b0a4b2
4 changed files with 15 additions and 0 deletions

View File

@ -49,6 +49,7 @@ using NPError;
using NPEvent;
using NPRemoteWindow;
using NPReason;
using NPRect;
namespace mozilla {
namespace plugins {
@ -110,6 +111,8 @@ parent:
nsCString buffer, bool file)
returns (NPError result);
async NPN_InvalidateRect(NPRect rect);
child:
/**
* Represents NPP_URLNotify

View File

@ -249,6 +249,13 @@ PluginInstanceParent::DeallocPStreamNotify(PStreamNotifyParent* notifyData,
return true;
}
bool
PluginInstanceParent::RecvNPN_InvalidateRect(const NPRect& rect)
{
mNPNIface->invalidaterect(mNPP, const_cast<NPRect*>(&rect));
return true;
}
NPError
PluginInstanceParent::NPP_SetWindow(const NPWindow* aWindow)
{

View File

@ -148,6 +148,9 @@ public:
DeallocPStreamNotify(PStreamNotifyParent* notifyData,
const NPReason& reason);
virtual bool
RecvNPN_InvalidateRect(const NPRect& rect);
NPError NPP_SetWindow(const NPWindow* aWindow);
NPError NPP_GetValue(NPPVariable variable, void *ret_value);

View File

@ -646,6 +646,7 @@ _invalidaterect(NPP aNPP,
NPRect* aInvalidRect)
{
_MOZ_LOG(__FUNCTION__);
InstCast(aNPP)->SendNPN_InvalidateRect(*aInvalidRect);
}
void NP_CALLBACK
@ -653,6 +654,7 @@ _invalidateregion(NPP aNPP,
NPRegion aInvalidRegion)
{
_MOZ_LOG(__FUNCTION__);
// Not implemented in Mozilla.
}
void NP_CALLBACK