equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Implementation of WebFrameLoaderClient |
14 * Description: Implementation of WebFrameLoaderClient |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include <browser_platform_variant.hrh> |
18 #include <Browser_platform_variant.hrh> |
19 #include "config.h" |
19 #include "config.h" |
20 #include <../bidi.h> |
20 #include <../bidi.h> |
21 #include "WebFrameLoaderClient.h" |
21 #include "WebFrameLoaderClient.h" |
22 #include "ResourceError.h" |
22 #include "ResourceError.h" |
23 #include "DebugStream.h" |
23 #include "DebugStream.h" |
42 #include "page.h" |
42 #include "page.h" |
43 #include "ProgressTracker.h" |
43 #include "ProgressTracker.h" |
44 #include "WebPolicyManager.h" |
44 #include "WebPolicyManager.h" |
45 #include "StaticObjectsContainer.h" |
45 #include "StaticObjectsContainer.h" |
46 #include "ResourceLoaderDelegate.h" |
46 #include "ResourceLoaderDelegate.h" |
47 #include <brctlwindowobserver.h> |
47 #include "BrCtlWindowObserver.h" |
48 #include "WmlDispatcher.h" |
48 #include "WmlDispatcher.h" |
49 #include "WebUtil.h" |
49 #include "WebUtil.h" |
50 #include "errordefs.h" |
50 #include "errordefs.h" |
51 #include "WebFepTextEditor.h" |
51 #include "WebFepTextEditor.h" |
52 #include "SettingsContainer.h" |
52 #include "SettingsContainer.h" |
929 } |
929 } |
930 |
930 |
931 void WebFrameLoaderClient::committedLoad(DocumentLoader* loader, const char* data, int length) |
931 void WebFrameLoaderClient::committedLoad(DocumentLoader* loader, const char* data, int length) |
932 { |
932 { |
933 if (brctl(m_webFrame)->wmlMode()) { |
933 if (brctl(m_webFrame)->wmlMode()) { |
934 if(m_WmlContentListener) |
934 TRAP_IGNORE( |
935 TRAP_IGNORE( |
935 m_WmlContentListener->ResponseL( data, length ); |
936 m_WmlContentListener->ResponseL( data, length ); |
936 ); |
937 ); |
|
938 return; |
937 return; |
939 } |
938 } |
940 m_webFrame->bridge()->receivedData(data, length, m_response.textEncodingName()); |
939 m_webFrame->bridge()->receivedData(data, length, m_response.textEncodingName()); |
941 } |
940 } |
942 |
941 |
1141 } |
1140 } |
1142 |
1141 |
1143 void WebFrameLoaderClient::frameLoadCompleted() |
1142 void WebFrameLoaderClient::frameLoadCompleted() |
1144 { |
1143 { |
1145 if (brctl(m_webFrame)->wmlMode()) { |
1144 if (brctl(m_webFrame)->wmlMode()) { |
1146 if (m_WmlContentListener) |
|
1147 TRAP_IGNORE( |
1145 TRAP_IGNORE( |
1148 m_WmlContentListener->CompleteL( 0, 0 ); |
1146 if (m_WmlContentListener) |
|
1147 m_WmlContentListener->CompleteL( 0, 0 ); |
1149 ); |
1148 ); |
1150 return; |
1149 return; |
1151 } |
1150 } |
1152 /* |
1151 /* |
1153 // Note: Can be called multiple times. |
1152 // Note: Can be called multiple times. |