mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
Bug 648935 - Remove dead code from plugin instances. r=bsmedberg.
This commit is contained in:
parent
513d0ca1d6
commit
909389680e
@ -1553,54 +1553,12 @@ PluginInstanceChild::DestroyWinlessPopupSurrogate()
|
||||
mWinlessPopupSurrogateHWND = NULL;
|
||||
}
|
||||
|
||||
/* windowless handle event helpers */
|
||||
|
||||
static bool
|
||||
NeedsNestedEventCoverage(UINT msg)
|
||||
{
|
||||
// Events we assume some sort of modal ui *might* be generated.
|
||||
switch (msg) {
|
||||
case WM_LBUTTONUP:
|
||||
case WM_RBUTTONUP:
|
||||
case WM_MBUTTONUP:
|
||||
case WM_LBUTTONDOWN:
|
||||
case WM_RBUTTONDOWN:
|
||||
case WM_MBUTTONDOWN:
|
||||
case WM_CONTEXTMENU:
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool
|
||||
IsMouseInputEvent(UINT msg)
|
||||
{
|
||||
switch (msg) {
|
||||
case WM_MOUSEMOVE:
|
||||
case WM_LBUTTONUP:
|
||||
case WM_RBUTTONUP:
|
||||
case WM_MBUTTONUP:
|
||||
case WM_LBUTTONDOWN:
|
||||
case WM_RBUTTONDOWN:
|
||||
case WM_MBUTTONDOWN:
|
||||
case WM_LBUTTONDBLCLK:
|
||||
case WM_MBUTTONDBLCLK:
|
||||
case WM_RBUTTONDBLCLK:
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
int16_t
|
||||
PluginInstanceChild::WinlessHandleEvent(NPEvent& event)
|
||||
{
|
||||
if (!mPluginIface->event)
|
||||
return false;
|
||||
|
||||
if (!NeedsNestedEventCoverage(event.event)) {
|
||||
return mPluginIface->event(&mData, reinterpret_cast<void*>(&event));
|
||||
}
|
||||
|
||||
// Events that might generate nested event dispatch loops need
|
||||
// special handling during delivery.
|
||||
int16_t handled;
|
||||
|
@ -68,10 +68,6 @@ extern const PRUnichar* kOOPPPluginFocusEventId;
|
||||
UINT gOOPPPluginFocusEvent =
|
||||
RegisterWindowMessage(kOOPPPluginFocusEventId);
|
||||
extern const PRUnichar* kFlashFullscreenClass;
|
||||
UINT gOOPPSpinNativeLoopEvent =
|
||||
RegisterWindowMessage(L"SyncChannel Spin Inner Loop Message");
|
||||
UINT gOOPPStopNativeLoopEvent =
|
||||
RegisterWindowMessage(L"SyncChannel Stop Inner Loop Message");
|
||||
#elif defined(MOZ_WIDGET_GTK2)
|
||||
#include <gdk/gdk.h>
|
||||
#elif defined(XP_MACOSX)
|
||||
|
Loading…
Reference in New Issue
Block a user