webengine/osswebengine/WebKit/s60/plugins/PluginSkin.cpp
branchRCL_3
changeset 40 8bfb9186a8b8
parent 38 4917f9bf7995
child 42 a1a5d4e727e8
equal deleted inserted replaced
38:4917f9bf7995 40:8bfb9186a8b8
   162       m_handle(-1),
   162       m_handle(-1),
   163       m_instance(0),    
   163       m_instance(0),    
   164       m_pluginfuncs(0),
   164       m_pluginfuncs(0),
   165       m_resized(false),
   165       m_resized(false),
   166       m_oldRect(TRect(0,0,0,0)),
   166       m_oldRect(TRect(0,0,0,0)),
   167       m_oldViewport(TRect(0,0,0,0))
   167       m_oldViewport(TRect(0,0,0,0)),
       
   168       m_loadmode(ELoadModeNone)
   168   {
   169   {
   169   }
   170   }
   170 
   171 
   171 
   172 
   172 void PluginSkin::addWidgetAttributesL()
   173 void PluginSkin::addWidgetAttributesL()
   833 
   834 
   834 //callbacks from NpnImplementation  
   835 //callbacks from NpnImplementation  
   835 int PluginSkin::getRequestL(const TDesC8& url, bool notify, void* notifydata,const TDesC* aWindowType)
   836 int PluginSkin::getRequestL(const TDesC8& url, bool notify, void* notifydata,const TDesC* aWindowType)
   836 {
   837 {
   837     TPluginLoadMode loadmode = GetLoadMode(aWindowType);
   838     TPluginLoadMode loadmode = GetLoadMode(aWindowType);
   838 
   839     setLoadMode(loadmode);
       
   840     
   839     if (url.Ptr() == NULL ) {                        
   841     if (url.Ptr() == NULL ) {                        
   840         return KErrArgument;
   842         return KErrArgument;
   841     }
   843     }
   842     
   844     
   843     _LIT8(KJs, "javascript:");
   845     _LIT8(KJs, "javascript:");