In preparation for passing callbacks as functions, replace GenericAPICallback::create, which returned a GenericCallback, with a function template that returns an appropriate callback function.
Created attachment 233116 [details] Replace GenericAPICallback with genericCallbackFunction()
Attachment 233116 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/GenericCallback.h:174: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/UIProcess/GenericCallback.h:174: Extra space before [ [whitespace/braces] [5] Total errors found: 2 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 233123 [details] Patch
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
Attachment 233123 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/GenericCallback.h:174: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/UIProcess/GenericCallback.h:174: Extra space before [ [whitespace/braces] [5] Total errors found: 2 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
Committed <http://trac.webkit.org/r169984>.