[Webkit-unassigned] [Bug 136372] [GTK] allow overwriting destination of download
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 29 10:06:24 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=136372
Carlos Garcia Campos <cgarcia at igalia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #237353|review?, commit-queue? |review-, commit-queue-
Flag| |
--- Comment #4 from Carlos Garcia Campos <cgarcia at igalia.com> 2014-08-29 10:06:29 PST ---
(From update of attachment 237353)
View in context: https://bugs.webkit.org/attachment.cgi?id=237353&action=review
We need a test case in the unit tests for this new API, and new symbols in the docs, see http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
> Source/WebKit2/UIProcess/API/gtk/WebKitDownload.cpp:205
> + */
Since: 2.6
> Source/WebKit2/UIProcess/API/gtk/WebKitDownload.cpp:213
> + g_object_class_install_property(objectClass,
> + PROP_ALLOW_OVERWRITE,
> + g_param_spec_boolean("allow-overwrite",
> + _("Allow Overwrite"),
> + _("Whether the destination may be overwritten"),
> + FALSE,
> + WEBKIT_PARAM_READWRITE));
> +
You need to follow the coding style here regarding indentation.
> Source/WebKit2/UIProcess/API/gtk/WebKitDownload.cpp:406
> -CString webkitDownloadDecideDestinationWithSuggestedFilename(WebKitDownload* download, const CString& suggestedFilename)
> +CString webkitDownloadDecideDestinationWithSuggestedFilename(WebKitDownload* download, const CString& suggestedFilename, bool* allowOverwrite)
The public C API uses a pointer for the out parameter but here we can use a reference instead. We should move this to use API::DownloadClient at some point instead of the C API.
> Source/WebKit2/UIProcess/API/gtk/WebKitDownload.cpp:413
> + if (allowOverwrite)
> + *allowOverwrite = download->priv->allowOverwrite;
We should always receive a reference.
> Source/WebKit2/UIProcess/API/gtk/WebKitDownload.cpp:611
> + * Returns the current value of the #WebKitDownload::allow-overwrite property,
:: is for signals, for properties use a single :
> Source/WebKit2/UIProcess/API/gtk/WebKitDownload.cpp:615
> + * Returns: the current value of the #WebKitDownload::allow-overwrite property
Ditto.
> Source/WebKit2/UIProcess/API/gtk/WebKitDownload.cpp:629
> + * @allowed: the new value for the #WebKitDownload::allow-overwrite property
Ditto.
> Source/WebKit2/UIProcess/API/gtk/WebKitDownload.cpp:631
> + * Sets the #WebKitDownload::allow-overwrite property, which determines whether
Ditto.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list