500 MemoryManager::InitOOMDialog(); |
500 MemoryManager::InitOOMDialog(); |
501 |
501 |
502 // Set the rect for BrowserControl (a CCoeControl). |
502 // Set the rect for BrowserControl (a CCoeControl). |
503 SetRect(aRect); |
503 SetRect(aRect); |
504 CCoeEnv::Static()->DisableExitChecks(true); |
504 CCoeEnv::Static()->DisableExitChecks(true); |
505 Window().AllocPointerMoveBuffer(256, 0); |
|
506 Window().DisablePointerMoveBuffer(); |
|
507 Window().PointerFilter(EPointerFilterMove | EPointerFilterDrag | EPointerFilterEnterExit, 0); |
505 Window().PointerFilter(EPointerFilterMove | EPointerFilterDrag | EPointerFilterEnterExit, 0); |
508 ActivateL(); |
506 ActivateL(); |
509 } |
507 } |
510 |
508 |
511 // ----------------------------------------------------------------------------- |
509 // ----------------------------------------------------------------------------- |
960 { |
958 { |
961 m_webView->LeaveFullscreenBrowsingL(); |
959 m_webView->LeaveFullscreenBrowsingL(); |
962 break; |
960 break; |
963 } |
961 } |
964 |
962 |
|
963 #ifdef BRDO_OCC_ENABLED_FF |
|
964 case TBrCtlDefs::ECommandSetRetryConnectivityFlag: |
|
965 { |
|
966 StaticObjectsContainer::instance()->resourceLoaderDelegate()->httpSessionManager()->setRetryConnectivityFlag(); |
|
967 break; |
|
968 } |
|
969 case TBrCtlDefs::ECommandUnSetRetryConnectivityFlag: |
|
970 { |
|
971 StaticObjectsContainer::instance()->resourceLoaderDelegate()->httpSessionManager()->unSetRetryConnectivityFlag(); |
|
972 break; |
|
973 } |
|
974 case TBrCtlDefs::ECommandRetryTransactions: |
|
975 { |
|
976 StaticObjectsContainer::instance()->resourceLoaderDelegate()->httpSessionManager()->retryTransactions(); |
|
977 m_webView->reCreatePlugins(); |
|
978 break; |
|
979 } |
|
980 case TBrCtlDefs::ECommandClearQuedTransactions: |
|
981 { |
|
982 StaticObjectsContainer::instance()->resourceLoaderDelegate()->httpSessionManager()->handleError(KErrCancel); |
|
983 break; |
|
984 } |
|
985 case TBrCtlDefs::ECommandConnToDownloadManager: |
|
986 { |
|
987 TInt connectionPtr = 0; |
|
988 TInt sockSvrHandle = 0; |
|
989 TBool newConn = ETrue; |
|
990 TApBearerType bearerType; |
|
991 TInt error = KErrNone; |
|
992 |
|
993 TRAP(error, m_brCtlSpecialLoadObserver->NetworkConnectionNeededL(&connectionPtr, &sockSvrHandle, &newConn, &bearerType)); |
|
994 if( error == KErrNone && connectionPtr ) |
|
995 { |
|
996 RConnection* connPtr = REINTERPRET_CAST( RConnection*, connectionPtr ); |
|
997 TName name; |
|
998 connPtr->Name( name ); |
|
999 StaticObjectsContainer::instance()->resourceLoaderDelegate()->httpSessionManager()->httpDownload()->connect(name); |
|
1000 } |
|
1001 break; |
|
1002 } |
|
1003 #endif |
|
1004 |
965 default: |
1005 default: |
966 { |
1006 { |
967 if ( m_wmlEngineInterface && |
1007 if ( m_wmlEngineInterface && |
968 (TUint)aCommand >= m_commandIdBase + TBrCtlDefs::ECommandIdWMLBase && |
1008 (TUint)aCommand >= m_commandIdBase + TBrCtlDefs::ECommandIdWMLBase && |
969 (TUint)aCommand <= m_commandIdBase + TBrCtlDefs::ECommandIdRange ) |
1009 (TUint)aCommand <= m_commandIdBase + TBrCtlDefs::ECommandIdRange ) |
1167 m_webView->widgetExtension()->AddOptionMenuItemsL( aMenuPane, aResourceId ); |
1207 m_webView->widgetExtension()->AddOptionMenuItemsL( aMenuPane, aResourceId ); |
1168 return; |
1208 return; |
1169 } |
1209 } |
1170 |
1210 |
1171 int after = aAfter == -1 ? aAfter :0; |
1211 int after = aAfter == -1 ? aAfter :0; |
1172 TBrCtlDefs::TBrCtlElementType focusedElementType = FocusedElementType(); |
1212 TBrCtlDefs::TBrCtlElementType focusedElementType; |
|
1213 if(m_webView) |
|
1214 focusedElementType = FocusedElementType(); |
1173 |
1215 |
1174 int count = sizeof(commandsArray) / sizeof(TCommandsArray); |
1216 int count = sizeof(commandsArray) / sizeof(TCommandsArray); |
1175 bool found = false; |
1217 bool found = false; |
1176 int i; |
1218 int i; |
1177 for (i = count - 1; i >= 0; i--) { |
1219 for (i = count - 1; i >= 0; i--) { |
1801 |
1843 |
1802 if( visible && !isvisible && m_webView ) { |
1844 if( visible && !isvisible && m_webView ) { |
1803 m_webView->checkForZoomChange(); |
1845 m_webView->checkForZoomChange(); |
1804 } |
1846 } |
1805 |
1847 |
1806 if( m_webView->pageFullScreenHandler() && m_webView->pageFullScreenHandler()->isFullScreenMode() ) { |
1848 if(m_webView && m_webView->pageFullScreenHandler() && m_webView->pageFullScreenHandler()->isFullScreenMode() ) { |
1807 if (visible) |
1849 if (visible) |
1808 m_webView->pageFullScreenHandler()->showEscBtnL(); |
1850 m_webView->pageFullScreenHandler()->showEscBtnL(); |
1809 else |
1851 else |
1810 m_webView->pageFullScreenHandler()->hideEscBtnL(); |
1852 m_webView->pageFullScreenHandler()->hideEscBtnL(); |
1811 } |
1853 } |
2098 if (!newBrctl) |
2140 if (!newBrctl) |
2099 { |
2141 { |
2100 if(StaticObjectsContainer::instance()->isPluginFullscreen()) |
2142 if(StaticObjectsContainer::instance()->isPluginFullscreen()) |
2101 { |
2143 { |
2102 PluginSkin* plugin=m_webView->mainFrame()->focusedPlugin(); |
2144 PluginSkin* plugin=m_webView->mainFrame()->focusedPlugin(); |
|
2145 if(plugin) |
2103 plugin->deActivate(); |
2146 plugin->deActivate(); |
2104 } |
2147 } |
2105 newBrctl = m_brCtlWindowObserver->OpenWindowL(emptyUrl, &windowName, userGesture, 0); |
2148 newBrctl = m_brCtlWindowObserver->OpenWindowL(emptyUrl, &windowName, userGesture, 0); |
2106 } |
2149 } |
2107 } |
2150 } |