[Webkit-unassigned] [Bug 43636] IPC in WebKit2 is not type-safe
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 6 13:55:49 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=43636
--- Comment #4 from Adam Roben (aroben) <aroben at apple.com> 2010-08-06 13:55:50 PST ---
Here's some proposed syntax from Anders, if we generate these classes:
messages WebPage -> WebPageProxy {
MouseEvent(WebMouseEvent)
RunJavaScriptInMainFrame(WebCore::String, uint64_t)
}
generates:
namespace Message {
namespace WebPage {
enum {
MouseEventID,
RunJavaScriptInMainFrameID,
}
struct MouseEvent : Arguments1<WebMouseEvent> {
static const unsigned messageID = Message::WebPage::MouseEventID;
explicit MouseEvent(const WebMouseEvent& argument1)
: Arguments1(argument1)
}
{
};
struct RunJavaScriptInMainFrame : Arguments2<WebCore::String, uint64_t> {
static const unsigned messageID = Message::WebPage::RunJavaScriptInMainFrameID;
RunJavaScriptInMainFrame(const WebCore::String& argument1, uint64_t argument2)
: Arguments2(argument1, argument2)
{
}
}
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list