[webkit-reviews] review granted: [Bug 46668] Add WebProcessConnection CreatePlugin message : [Attachment 68983] Patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 27 16:03:13 PDT 2010
Adam Roben (aroben) <aroben at apple.com> has granted Anders Carlsson
<andersca at apple.com>'s request for review:
Bug 46668: Add WebProcessConnection CreatePlugin message
https://bugs.webkit.org/show_bug.cgi?id=46668
Attachment 68983: Patch
https://bugs.webkit.org/attachment.cgi?id=68983&action=review
------- Additional Comments from Adam Roben (aroben) <aroben at apple.com>
View in context: https://bugs.webkit.org/attachment.cgi?id=68983&action=review
> WebKit2/PluginProcess/WebProcessConnection.messages.in:26
> + # Creates a plug-in instance with the given instance ID.
I think // comments will work just fine, if that's what you'd prefer.
> WebKit2/Scripts/webkit2/messages.py:219
> +def headers_for_type(type):
> + special_cases = {
> + 'WTF::String': '<wtf/text/WTFString.h>',
> + 'WebKit::WebKeyboardEvent': '"WebEvent.h"',
> + 'WebKit::WebMouseEvent': '"WebEvent.h"',
> + 'WebKit::WebWheelEvent': '"WebEvent.h"',
> + 'WebKit::WebTouchEvent': '"WebEvent.h"',
> + }
> + if type in special_cases:
> + return [special_cases[type]]
> +
> + # We assume that we must include a header for a type iff it has a scope
> + # resolution operator (::).
> + split = type.split('::')
> + if len(split) < 2:
> + return []
> + if split[0] == 'WebKit' or split[0] == 'CoreIPC':
> + return ['"%s.h"' % split[1]]
> + return ['<%s/%s.h>' % tuple(split)]
Why did you move this?
More information about the webkit-reviews
mailing list