WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
43097
Make all objects in the WebKit2 API inherit from a single base class
https://bugs.webkit.org/show_bug.cgi?id=43097
Summary
Make all objects in the WebKit2 API inherit from a single base class
Sam Weinig
Reported
2010-07-27 18:26:34 PDT
We should make all WK objects in the WebKit2 API inherit from a single base class.
Attachments
Patch
(37.71 KB, patch)
2010-07-27 18:38 PDT
,
Sam Weinig
andersca
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2010-07-27 18:38:06 PDT
Created
attachment 62783
[details]
Patch
WebKit Review Bot
Comment 2
2010-07-27 18:40:07 PDT
Attachment 62783
[details]
did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 WebKit2/UIProcess/API/C/WKAPICast.h:59: More than one command on the same line [whitespace/newline] [4] WebKit2/UIProcess/API/C/WKAPICast.h:60: More than one command on the same line [whitespace/newline] [4] WebKit2/UIProcess/API/C/WKAPICast.h:73: More than one command on the same line [whitespace/newline] [4] WebKit2/UIProcess/API/C/WKAPICast.h:120: Extra space before last semicolon. If this should be an empty statement, use { } instead. [whitespace/semicolon] [5] Total errors found: 4 in 30 files If any of these errors are false positives, please file a bug against check-webkit-style.
Darin Adler
Comment 3
2010-07-28 12:59:49 PDT
Comment on
attachment 62783
[details]
Patch Patch says what it does, but not why. Why is inheriting from a single base class better?
Sam Weinig
Comment 4
2010-07-28 13:04:52 PDT
(In reply to
comment #3
)
> (From update of
attachment 62783
[details]
) > Patch says what it does, but not why. > > Why is inheriting from a single base class better?
The intent is to allow for a CF-style base type (CFTypeRef) so that our message passing API can be defined as something like WKContextPostMessageToInjectedBundle(WKStringRef name, WKTypeRef message); Then you could send a message which is either a WKStringRef or a WKArrayRef or a WKPageRef event.
Sam Weinig
Comment 5
2010-07-28 14:42:49 PDT
Landed in
r64232
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug