webengine/osswebengine/WebKit/s60/webcoresupport/WebFrameLoaderClient.cpp
changeset 10 a359256acfc6
parent 5 10e98eab6f85
child 15 60c5402cb945
equal deleted inserted replaced
5:10e98eab6f85 10:a359256acfc6
    55 #include "WebCursor.h"
    55 #include "WebCursor.h"
    56 #include "WebCharsetData.h"
    56 #include "WebCharsetData.h"
    57 #include "WebKitLogger.h"
    57 #include "WebKitLogger.h"
    58 #include "PluginHandler.h"
    58 #include "PluginHandler.h"
    59 #include "MIMETypeRegistry.h"
    59 #include "MIMETypeRegistry.h"
       
    60 #include "WidgetExtension.h"
    60 
    61 
    61 using namespace WebCore;
    62 using namespace WebCore;
    62 using namespace HTMLNames;
    63 using namespace HTMLNames;
    63 
    64 
    64 // this should be changed if we wanna have a counter per window.
    65 // this should be changed if we wanna have a counter per window.
  1274 {
  1275 {
  1275     //    return [getWebView(m_webFrame.get()) _userAgentForURL:url];
  1276     //    return [getWebView(m_webFrame.get()) _userAgentForURL:url];
  1276     return m_webFrame->frameView()->topView()->userAgent();
  1277     return m_webFrame->frameView()->topView()->userAgent();
  1277 }
  1278 }
  1278 
  1279 
       
  1280 TInt WebFrameLoaderClient::widgetNetworkConstants(TInt aId)
       
  1281 {
       
  1282     CWidgetExtension* widgetExt = m_webFrame->frameView()->topView()->widgetExtension();
       
  1283     if ( widgetExt ) {
       
  1284         return widgetExt->widgetNetworkConstants(aId);
       
  1285     }
       
  1286     
       
  1287     notImplemented();
       
  1288     return 0;
       
  1289 }
       
  1290 
       
  1291 TInt WebFrameLoaderClient::widgetNetworkState()
       
  1292 {
       
  1293     CWidgetExtension* widgetExt = m_webFrame->frameView()->topView()->widgetExtension();
       
  1294     if ( widgetExt ) {
       
  1295         return widgetExt->widgetNetworkState();
       
  1296     }
       
  1297     
       
  1298     notImplemented();
       
  1299     return 0;
       
  1300 }
       
  1301 
  1279 void WebFrameLoaderClient::saveDocumentViewToCachedPage(CachedPage*) 
  1302 void WebFrameLoaderClient::saveDocumentViewToCachedPage(CachedPage*) 
  1280 {
  1303 {
  1281     //    cachedPage->setDocumentView([m_webFrame->_private->webFrameView documentView]);
  1304     //    cachedPage->setDocumentView([m_webFrame->_private->webFrameView documentView]);
  1282     notImplemented(); 
  1305     notImplemented(); 
  1283 }
  1306 }