Bug 69509

Summary: [GTK] Add estimated-progress property to WebKitWebLoaderClient
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: gustavo, pnormand, xan.lopez
Priority: P2 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Bug Depends on: 69506    
Bug Blocks:    
Attachments:
Description Flags
Patch mrobinson: review+

Description Carlos Garcia Campos 2011-10-06 03:24:34 PDT
To monitor the estimated progress of a load operation.
Comment 1 Carlos Garcia Campos 2011-10-06 03:29:42 PDT
Created attachment 109939 [details]
Patch

Property is called estimated-progress instead of just progress to make it clear that the value is an estimation.
Comment 2 Philippe Normand 2011-10-06 05:50:44 PDT
Comment on attachment 109939 [details]
Patch

Looks good to me API wise.
Comment 3 Martin Robinson 2011-10-06 08:39:27 PDT
Comment on attachment 109939 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=109939&action=review

I think estimated-progress is fine. :)

> Source/WebKit2/UIProcess/API/gtk/WebKitWebLoaderClient.cpp:259
> +     * An estimate of the percent complete for a document load. This

complete->completion Maybe you should say "for the current loading operation." It includes subresources and subdocuments too, so maybe you shouldn't mention the document. Might want to explicitly say that it includes all subresources, actually.

> Source/WebKit2/UIProcess/API/gtk/WebKitWebLoaderClient.cpp:264
> +     * to be received for a document, including all it's possible subresources.

it's -> its

> Source/WebKit2/UIProcess/API/gtk/WebKitWebLoaderClient.cpp:270
> +                                                        "An estimate of the percent complete for a document load",

complete -> completion

> Source/WebKit2/UIProcess/API/gtk/tests/testloading.c:80
> +    fixture->progress = 0.;

No need for the extra period here.
Comment 4 Carlos Garcia Campos 2011-10-06 10:59:12 PDT
(In reply to comment #3)
> (From update of attachment 109939 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=109939&action=review
> 
> I think estimated-progress is fine. :)
> 
> > Source/WebKit2/UIProcess/API/gtk/WebKitWebLoaderClient.cpp:259
> > +     * An estimate of the percent complete for a document load. This
> 
> complete->completion Maybe you should say "for the current loading operation." It includes subresources and subdocuments too, so maybe you shouldn't mention the document. Might want to explicitly say that it includes all subresources, actually.

It already mentions it:

* The value is an estimate based on the total number of bytes expected                                                                                                                  
* to be received for a document, including all it's possible subresources.

> > Source/WebKit2/UIProcess/API/gtk/WebKitWebLoaderClient.cpp:264
> > +     * to be received for a document, including all it's possible subresources.
> 
> it's -> its

Ok.

> > Source/WebKit2/UIProcess/API/gtk/WebKitWebLoaderClient.cpp:270
> > +                                                        "An estimate of the percent complete for a document load",
> 
> complete -> completion

Ok.

> > Source/WebKit2/UIProcess/API/gtk/tests/testloading.c:80
> > +    fixture->progress = 0.;
> 
> No need for the extra period here.

Ok.
Comment 5 Carlos Garcia Campos 2011-10-06 11:02:23 PDT
Committed r96833: <http://trac.webkit.org/changeset/96833>