Make `enum NavigationType` be an enum class
Created attachment 251762 [details] Patch v1
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment on attachment 251762 [details] Patch v1 View in context: https://bugs.webkit.org/attachment.cgi?id=251762&action=review r=me > Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm:1569 > + [NSNumber numberWithInt:static_cast<int>(action.type())], WebActionNavigationTypeKey, Why is this necessary? I would omit this from this change.
(In reply to comment #3) > Comment on attachment 251762 [details] > Patch v1 > > View in context: > https://bugs.webkit.org/attachment.cgi?id=251762&action=review > > r=me > > > Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm:1569 > > + [NSNumber numberWithInt:static_cast<int>(action.type())], WebActionNavigationTypeKey, > > Why is this necessary? I would omit this from this change. Because it is illegal to implicitly cast an `enum class` to an integer - One of the stronger protections enum class provides. Without this change, this patch rightfully fails to build!
http://trac.webkit.org/changeset/183405