webengine/osswebengine/WebKit/s60/webview/BrCtl.cpp
branchRCL_3
changeset 42 a1a5d4e727e8
parent 41 4bd5176e1bc8
child 44 800203832575
equal deleted inserted replaced
41:4bd5176e1bc8 42:a1a5d4e727e8
  2209 
  2209 
  2210 void CBrCtl::doCloseWindowSoon()
  2210 void CBrCtl::doCloseWindowSoon()
  2211 {
  2211 {
  2212     m_windoCloseTimer->Cancel();
  2212     m_windoCloseTimer->Cancel();
  2213     if (brCtlWindowObserver())
  2213     if (brCtlWindowObserver())
  2214         TRAP_IGNORE(brCtlWindowObserver()->HandleWindowCommandL(KNullDesC(), ECloseWindow));
  2214         {
       
  2215         TRAPD(err,brCtlWindowObserver()->HandleWindowCommandL(KNullDesC(), ECloseWindow));
       
  2216 		if ( err == KLeaveExit )
       
  2217 		    { // while we exit the browser it actually leaves with KLeaveExit from the system.
       
  2218 		      // If we block this here then the exit would not happen so propogate the leave 
       
  2219 		      // condition to the system for handling
       
  2220 		    User::Leave(KLeaveExit);
       
  2221 		    }        
       
  2222         }
  2215 }
  2223 }
  2216 
  2224 
  2217 TBool CBrCtl::sendCommandsToClient(
  2225 TBool CBrCtl::sendCommandsToClient(
  2218     TBrCtlDefs::TBrCtlClientCommands aCommand,
  2226     TBrCtlDefs::TBrCtlClientCommands aCommand,
  2219     const CArrayFix<TPtrC>& aAttributesNames,
  2227     const CArrayFix<TPtrC>& aAttributesNames,