*** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@34185 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -533,12 +533,22 @@ NS_IMETHODIMP ns4xPluginInstance::HandleEvent(nsPluginEvent* event, PRBool* hand
|
||||
#if !TARGET_CARBON
|
||||
// pinkerton
|
||||
// relies on routine descriptors, not present in carbon. We need to fix this.
|
||||
#if defined(XP_MAC) || defined(XP_WIN) //~~~
|
||||
#ifdef XP_MAC
|
||||
res = CallNPP_HandleEventProc(fCallbacks->event,
|
||||
&fNPP,
|
||||
(void*) event->event);
|
||||
#endif
|
||||
|
||||
#ifdef XP_WIN //~~~
|
||||
NPEvent npEvent;
|
||||
npEvent.event = event->event;
|
||||
npEvent.wParam = event->wParam;
|
||||
npEvent.lParam = event->lParam;
|
||||
res = CallNPP_HandleEventProc(fCallbacks->event,
|
||||
&fNPP,
|
||||
(void*)&npEvent);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
*handled = res;
|
||||
|
||||
@@ -533,12 +533,22 @@ NS_IMETHODIMP ns4xPluginInstance::HandleEvent(nsPluginEvent* event, PRBool* hand
|
||||
#if !TARGET_CARBON
|
||||
// pinkerton
|
||||
// relies on routine descriptors, not present in carbon. We need to fix this.
|
||||
#if defined(XP_MAC) || defined(XP_WIN) //~~~
|
||||
#ifdef XP_MAC
|
||||
res = CallNPP_HandleEventProc(fCallbacks->event,
|
||||
&fNPP,
|
||||
(void*) event->event);
|
||||
#endif
|
||||
|
||||
#ifdef XP_WIN //~~~
|
||||
NPEvent npEvent;
|
||||
npEvent.event = event->event;
|
||||
npEvent.wParam = event->wParam;
|
||||
npEvent.lParam = event->lParam;
|
||||
res = CallNPP_HandleEventProc(fCallbacks->event,
|
||||
&fNPP,
|
||||
(void*)&npEvent);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
*handled = res;
|
||||
|
||||
Reference in New Issue
Block a user