[Webkit-unassigned] [Bug 68062] [GTK] WebProcess shouldn't use the GTK+ API
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 14 08:29:13 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=68062
Martin Robinson <mrobinson at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #107302|review? |review-
Flag| |
--- Comment #2 from Martin Robinson <mrobinson at webkit.org> 2011-09-14 08:29:13 PST ---
(From update of attachment 107302)
View in context: https://bugs.webkit.org/attachment.cgi?id=107302&action=review
Looks good, but we need to guard the duplicated enum.
> Source/WebCore/platform/gtk/ErrorsGtk.h:57
> +enum NetworkError {
> + NetworkErrorFailed = 399,
> + NetworkErrorTransport = 300,
> + NetworkErrorUnknownProtocol = 301,
> + NetworkErrorCancelled = 302,
> + NetworkErrorFileDoesNotExist = 303
> +};
> +
> +// Sync'd with Mac's WebKit Errors.
> +enum PolicyError {
> + PolicyErrorFailed = 199,
> + PolicyErrorCannotShowMimeType = 100,
> + PolicyErrorCannotShowURL = 101,
> + PolicyErrorFrameLoadInterruptedByPolicyChange = 102,
> + PolicyErrorCannotUseRestrictedPort = 103
> +};
> +
> +enum PluginError {
> + PluginErrorFailed = 299,
> + PluginErrorCannotFindPlugin = 200,
> + PluginErrorCannotLoadPlugin = 201,
> + PluginErrorJavaUnavailable = 202,
> + PluginErrorConnectionCancelled = 203,
> + PluginErrorWillHandleLoad = 204
> +};
Since you are duplicating this enum from WebKit you shoud use the approach in Source/WebKit/WebCoreSupport/AssertMatchingEnums.cpp to sure they stay in sync.
Because some of these lines are so long, it's my opinion that it helps readability to not line them up. Please consider unaligning them.
--
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