[webkit-dev] How to add a progress bar of page loading with webkit?

Jickae Davis jickaed at gmail.com
Fri Oct 9 01:55:10 PDT 2009

Well, I checked the WebView.h, and didn't find the estimateProgress method
and the three associated notifications.

Then I searched them in the chrome's whole solution, didn't get any clue

2009/9/28 John Sullivan <sullivan at apple.com>

>  The Chrome and Safari teams have chosen not to display approximate
> progress bars for user interface design reasons.
> You can implement a progress bar for a WebKit-based browser by using the
> -estimatedProgress method in WebView.h and the associated
> notifications WebViewProgressStartedNotification, WebViewProgressEstimateChangedNotification,
> and WebViewProgressFinishedNotification.
> Note that any such progress bar (in any web browser, WebKit-based or not)
> is only an approximation, because as a page loads resources, it might
> discover additional resources that need to be loaded, so the page cannot
> know in advance how much more there is to load.
> John
>   On Sep 28, 2009, at 12:14 AM, Jickae Davis wrote:
>   I'm wonderring why Chrome and Safari don't add a progress bar which
> indicates the progress of loading a html page.
> I took a look at all the ViewMsg and ViewHostMsg in Chrome's src, and
> didn't find anything related.
> So, is that unimpossible to create such a progress bar?
> If it's not so hard, how to achieve that?
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20091009/a67299ce/attachment.html>

More information about the webkit-dev mailing list