webengine/osswebengine/WebKit/s60/webview/BrCtl.cpp
branchRCL_3
changeset 46 30342f40acbf
parent 44 800203832575
child 47 e1bea15f9a39
equal deleted inserted replaced
44:800203832575 46:30342f40acbf
   806                     }
   806                     }
   807 #endif
   807 #endif
   808 
   808 
   809                 //Disable the zooming bar when it goes to background
   809                 //Disable the zooming bar when it goes to background
   810                 m_webView->hideZoomSliderL();
   810                 m_webView->hideZoomSliderL();
   811                 
   811                 m_webView->scrollStatus(false); 
   812                 // Instruct JS to garbage collect
   812                 // Instruct JS to garbage collect
   813                 WebCore::gcController().garbageCollectSoon();                
   813                 WebCore::gcController().garbageCollectSoon();                
   814                 break;
   814                 break;
   815             }
   815             }
   816         case TBrCtlDefs::ECommandClearAutoFormFillData:
   816         case TBrCtlDefs::ECommandClearAutoFormFillData:
  1031            }
  1031            }
  1032        case TBrCtlDefs::ECommandCancelQueuedTransactions:
  1032        case TBrCtlDefs::ECommandCancelQueuedTransactions:
  1033            {
  1033            {
  1034            StaticObjectsContainer::instance()->resourceLoaderDelegate()->httpSessionManager()->cancelQueuedTransactions();
  1034            StaticObjectsContainer::instance()->resourceLoaderDelegate()->httpSessionManager()->cancelQueuedTransactions();
  1035 		   break;
  1035 		   break;
  1036            }		   
  1036            }
       
  1037 
       
  1038 	   // Messages sent by OOM monitor
       
  1039        case TBrCtlDefs::ECommandFreeMemory:
       
  1040            {
       
  1041            //MemoryManager::FreeRam(); // invoke memory collect operation - enable later, causes BC break
       
  1042            break;
       
  1043            }
       
  1044        case TBrCtlDefs::ECommandMemoryGood:
       
  1045            {
       
  1046            //MemoryManager::RestoreCollectors(); // restore collectors - enable later, causes BC break
       
  1047            break;
       
  1048            }
       
  1049                   
  1037       default:
  1050       default:
  1038             {
  1051             {
  1039             if ( m_wmlEngineInterface &&
  1052             if ( m_wmlEngineInterface &&
  1040                  (TUint)aCommand >= m_commandIdBase + TBrCtlDefs::ECommandIdWMLBase &&
  1053                  (TUint)aCommand >= m_commandIdBase + TBrCtlDefs::ECommandIdWMLBase &&
  1041                  (TUint)aCommand <= m_commandIdBase + TBrCtlDefs::ECommandIdRange )
  1054                  (TUint)aCommand <= m_commandIdBase + TBrCtlDefs::ECommandIdRange )
  1239         m_webView->widgetExtension()->AddOptionMenuItemsL( aMenuPane, aResourceId );
  1252         m_webView->widgetExtension()->AddOptionMenuItemsL( aMenuPane, aResourceId );
  1240         return;
  1253         return;
  1241     }
  1254     }
  1242 
  1255 
  1243     int after = aAfter == -1 ? aAfter :0;
  1256     int after = aAfter == -1 ? aAfter :0;
  1244     TBrCtlDefs::TBrCtlElementType focusedElementType;
  1257     TBrCtlDefs::TBrCtlElementType focusedElementType = TBrCtlDefs::EElementNone;
  1245     if(m_webView)
  1258     if(m_webView)
  1246        focusedElementType = FocusedElementType();
  1259        focusedElementType = FocusedElementType();
  1247 
  1260 
  1248     int count = sizeof(commandsArray) / sizeof(TCommandsArray);
  1261     int count = sizeof(commandsArray) / sizeof(TCommandsArray);
  1249     bool found = false;
  1262     bool found = false;
  2549     for (TInt i=0; i<m_stateChangeObserverArray.Count(); i++) {
  2562     for (TInt i=0; i<m_stateChangeObserverArray.Count(); i++) {
  2550         m_stateChangeObserverArray[i]->StateChanged(TBrCtlDefs::EStateScriptLog, aMode);
  2563         m_stateChangeObserverArray[i]->StateChanged(TBrCtlDefs::EStateScriptLog, aMode);
  2551     }
  2564     }
  2552 }
  2565 }
  2553 
  2566 
       
  2567 CWidgetExtension* CBrCtl::getWidgetExt()
       
  2568 {
       
  2569     if ( m_webView) {
       
  2570         return m_webView->widgetExtension();
       
  2571     }
       
  2572     return NULL;
       
  2573 }
  2554 
  2574 
  2555 int CBrCtl::getMainScrollbarWidth() const
  2575 int CBrCtl::getMainScrollbarWidth() const
  2556 {
  2576 {
  2557   return 0;
  2577   return 0;
  2558 }
  2578 }