Bug 133909

Summary: Get rid of GenericAPICallback
Product: WebKit Reporter: mitz
Component: WebKit2Assignee: mitz
Status: RESOLVED FIXED    
Severity: Normal CC: berto, cgarcia, commit-queue, eric.carlson, glenn, gns, jer.noble, mrobinson, philipj, sam, sergio
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Replace GenericAPICallback with genericCallbackFunction()
sam: review+, mitz: commit-queue-
Patch none

Description mitz 2014-06-14 12:57:50 PDT
In preparation for passing callbacks as functions, replace GenericAPICallback::create, which returned a GenericCallback, with a function template that returns an appropriate callback function.
Comment 1 mitz 2014-06-14 13:03:59 PDT
Created attachment 233116 [details]
Replace GenericAPICallback with genericCallbackFunction()
Comment 2 WebKit Commit Bot 2014-06-14 13:05:57 PDT
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.
Comment 3 mitz 2014-06-14 14:36:07 PDT
Created attachment 233123 [details]
Patch
Comment 4 WebKit Commit Bot 2014-06-14 14:36:54 PDT
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 5 WebKit Commit Bot 2014-06-14 14:37:04 PDT
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.
Comment 6 mitz 2014-06-14 16:12:24 PDT
Committed <http://trac.webkit.org/r169984>.