equal
deleted
inserted
replaced
19 #include "../../bidi.h" |
19 #include "../../bidi.h" |
20 #include "HttpDefs.h" |
20 #include "HttpDefs.h" |
21 #include "NpnImplementation.h" |
21 #include "NpnImplementation.h" |
22 #include "PluginWin.h" |
22 #include "PluginWin.h" |
23 #include "PluginSkin.h" |
23 #include "PluginSkin.h" |
24 #include <cuseragent.h> |
24 #include <CUserAgent.h> |
25 #include <Element.h> |
25 #include <Element.h> |
26 #include <HTMLPlugInElement.h> |
26 #include <HTMLPlugInElement.h> |
27 #include <HTMLNames.h> |
27 #include <HTMLNames.h> |
28 |
28 |
29 using namespace WebCore::HTMLNames; |
29 using namespace WebCore::HTMLNames; |
479 } |
479 } |
480 case NPPVPluginDeactivate: |
480 case NPPVPluginDeactivate: |
481 { |
481 { |
482 PluginWin* pluginWin = (PluginWin*)aInstance->ndata; |
482 PluginWin* pluginWin = (PluginWin*)aInstance->ndata; |
483 if (pluginWin) { |
483 if (pluginWin) { |
484 TPoint* cursorPos; |
484 TPoint* cursorPos = static_cast<TPoint*>(aSetValue); |
485 |
485 pluginWin->pluginDeactivate(*cursorPos); |
486 //EPMR-7XPHXV aSetValue is set as "(void*) 1" from |
|
487 //"CBrowserPluginControl::GoNormalScreenL" from the flash plugin |
|
488 //to avoid the Invalid pointer access, we are checking for |
|
489 //aSetValue and setting point as (0,0) and also for NULL Value |
|
490 if((aSetValue == (void*)1) || (!aSetValue)) { |
|
491 TPoint position(0,0); |
|
492 cursorPos = static_cast<TPoint*>(&position); |
|
493 } |
|
494 else { |
|
495 cursorPos = static_cast<TPoint*>(aSetValue); |
|
496 } |
|
497 pluginWin->pluginDeactivate(*cursorPos); |
|
498 } |
486 } |
499 } |
487 } |
500 break; |
488 break; |
501 case NPPVpluginFullScreenBool: |
489 case NPPVpluginFullScreenBool: |
502 { |
490 { |