[webkit-gtk] Resources in WebKit2 GTK+ API

Carlos Garcia Campos cgarcia at igalia.com
Thu Feb 9 10:17:39 PST 2012


El jue, 09-02-2012 a las 10:05 -0800, Martin Robinson escribió:
> On Thu, Feb 9, 2012 at 9:52 AM, Carlos Garcia Campos <cgarcia at igalia.com> wrote:
> 
> This API looks good to me!
> 
>  And we can probably add a convenient method to save a WebView:
> >
> > void webkit_web_view_save_to_dir (WebKitWebView          *web_view,
> >                                                        const gchar                *uri,
> >                                                        GAsyncReadyCallback callback,
> >                                                        gpointer                       user_data);
> 
> How does the URI argument work here?

Maybe it shoulnd't be called _to_dir(). URI is the destination uri to
save the main page, the directory to store the resources is created in
the same dir where uri is. 

>  Does it change the current page?

what do you mean?

> We might consider adding a boolean here determining whether to save
> all the resources or just the main resource. Chromium has this option
> in its save dialog.

Good point, maybe an enum SAVE_ALL, SAVE_MAIN_RESOURCE or something like
that to avoid booleans.

> --Martin

-- 
Carlos Garcia Campos
http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xF3D322D0EC4582C3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20120209/be6c5356/attachment.bin>


More information about the webkit-gtk mailing list