mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
b=519896 NPN_InvalidateRect r=cjones
This commit is contained in:
parent
6256ea2a09
commit
3ed5b0a4b2
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user