Rev 8319 | Rev 8330 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8319 | Rev 8320 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | #include "..\lib\patterns\toolbar_button.h" |
29 | #include "..\lib\patterns\toolbar_button.h" |
30 | #include "..\lib\patterns\restart_process.h" |
30 | #include "..\lib\patterns\restart_process.h" |
Line 31... | Line 31... | ||
31 | 31 | ||
Line 32... | Line 32... | ||
32 | char editbox_icons[] = FROM "res/editbox_icons.raw"; |
32 | char editbox_icons[] = FROM "res/editbox_icons.raw"; |
Line 33... | Line 33... | ||
33 | 33 | ||
34 | char version[]="WebView 2.7c"; |
34 | char version[]="WebView 2.7e"; |
35 | 35 | ||
Line 234... | Line 234... | ||
234 | 234 | ||
235 | case evNetwork: |
235 | case evNetwork: |
236 | if (http.transfer <= 0) break; |
236 | if (http.transfer <= 0) break; |
237 | http.receive(); |
237 | http.receive(); |
238 | EventUpdateProgressBar(); |
238 | EventUpdateProgressBar(); |
239 | CheckContentType(); |
239 | if (http_get_type==PAGE) CheckContentType(); |
240 | if (http.receive_result != 0) break; |
240 | if (http.receive_result != 0) break; |
241 | if (http.status_code >= 300) && (http.status_code < 400) |
241 | if (http.status_code >= 300) && (http.status_code < 400) |
242 | { |
242 | { |
243 | // Handle redirects |
243 | // Handle redirects |
Line 257... | Line 257... | ||
257 | cache.add(history.current(), http.content_pointer, http.content_received, PAGE); |
257 | cache.add(history.current(), http.content_pointer, http.content_received, PAGE); |
258 | LoadInternalPage(http.content_pointer, http.content_received); |
258 | LoadInternalPage(http.content_pointer, http.content_received); |
259 | } |
259 | } |
260 | else if (http_get_type==IMG) { |
260 | else if (http_get_type==IMG) { |
261 | cache.add(WB1.page_img.current_url(), http.content_pointer, http.content_received, IMG); |
261 | cache.add(WB1.page_img.current_url(), http.content_pointer, http.content_received, IMG); |
262 | WB1.page_img.set_data(cache.data.get_last(), http.content_received); |
262 | WB1.page_img.set_size(http.content_pointer, http.content_received); |
263 | GetImg(); |
263 | GetImg(); |
264 | } |
264 | } |
265 | } |
265 | } |
266 | break; |
266 | break; |
267 | default: |
267 | default: |