webengine/osswebengine/WebKit/s60/plugins/NpnImplementation.cpp
changeset 11 c8a366e56285
parent 10 a359256acfc6
child 25 0ed94ceaa377
equal deleted inserted replaced
10:a359256acfc6 11:c8a366e56285
   319 
   319 
   320                 npWindow->x = rect.iTl.iX;
   320                 npWindow->x = rect.iTl.iX;
   321                 npWindow->y = rect.iTl.iY;
   321                 npWindow->y = rect.iTl.iY;
   322                 npWindow->width = rect.Width();
   322                 npWindow->width = rect.Width();
   323                 npWindow->height = rect.Height();
   323                 npWindow->height = rect.Height();
   324                 npWindow->type = NPWindowTypeWindow;
   324                 npWindow->type = pluginWin->Windowed() ? NPWindowTypeWindow : NPWindowTypeDrawable;
   325                 npWindow->window = NULL;
   325                 npWindow->window = pluginWin->Windowed() ? NULL : (MPluginAdapter*) pluginWin;
   326             
   326             
   327                 NPRect clipRect = {0,0,0,0};
   327                 NPRect clipRect = {0,0,0,0};
   328                 npWindow->clipRect = clipRect;
   328                 npWindow->clipRect = clipRect;
   329             }
   329             }
   330         }
   330         }
   387             else {
   387             else {
   388                 err = NPERR_GENERIC_ERROR;
   388                 err = NPERR_GENERIC_ERROR;
   389             }
   389             }
   390         }
   390         }
   391         break;  // for code consistency
   391         break;  // for code consistency
       
   392         
       
   393        case NPNVSupportsWindowless:{
       
   394             PluginWin* pluginWin = (PluginWin*)aInstance->ndata;
       
   395                if (pluginWin) {
       
   396                    *((TBool*) aRetValue) = ETrue;
       
   397                }
       
   398                else {
       
   399                    err = NPERR_GENERIC_ERROR;
       
   400                }
       
   401        }
       
   402        break;		   
   392         default:
   403         default:
   393             {
   404             {
   394             *((TBool*) aRetValue) = EFalse;
   405             *((TBool*) aRetValue) = EFalse;
   395             err = NPERR_INVALID_PARAM;
   406             err = NPERR_INVALID_PARAM;
   396             }
   407             }