<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[161473] trunk/Source/WebKit2</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/161473">161473</a></dd>
<dt>Author</dt> <dd>simon.fraser@apple.com</dd>
<dt>Date</dt> <dd>2014-01-07 17:03:46 -0800 (Tue, 07 Jan 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Add message-generation test for non-legacy message receiver
https://bugs.webkit.org/show_bug.cgi?id=126603
Reviewed by Anders Carlsson.
Add expected output files for a non-legacy message receiver, and add
testing for same.
* Scripts/webkit2/LegacyMessageReceiver-expected.cpp: Copied from Source/WebKit2/Scripts/webkit2/MessageReceiver-expected.cpp.
* Scripts/webkit2/LegacyMessages-expected.h: Added.
* Scripts/webkit2/MessageReceiver-expected.cpp:
(WebKit::WebPage::didReceiveMessage):
(WebKit::WebPage::didReceiveSyncMessage):
* Scripts/webkit2/messages_unittest.py:
(MessagesTest.setUp):
(ParsingTest.test_receiver):
(HeaderTest.test_header):
(ReceiverImplementationTest.test_receiver_implementation):
* Scripts/webkit2/test-legacy-messages.in: Copied from Source/WebKit2/Scripts/webkit2/test-messages.in.
* Scripts/webkit2/test-messages.in:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2Scriptswebkit2MessageReceiverexpectedcpp">trunk/Source/WebKit2/Scripts/webkit2/MessageReceiver-expected.cpp</a></li>
<li><a href="#trunkSourceWebKit2Scriptswebkit2messages_unittestpy">trunk/Source/WebKit2/Scripts/webkit2/messages_unittest.py</a></li>
<li><a href="#trunkSourceWebKit2Scriptswebkit2testmessagesin">trunk/Source/WebKit2/Scripts/webkit2/test-messages.in</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2Scriptswebkit2LegacyMessageReceiverexpectedcpp">trunk/Source/WebKit2/Scripts/webkit2/LegacyMessageReceiver-expected.cpp</a></li>
<li><a href="#trunkSourceWebKit2Scriptswebkit2LegacyMessagesexpectedh">trunk/Source/WebKit2/Scripts/webkit2/LegacyMessages-expected.h</a></li>
<li><a href="#trunkSourceWebKit2Scriptswebkit2testlegacymessagesin">trunk/Source/WebKit2/Scripts/webkit2/test-legacy-messages.in</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (161472 => 161473)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2014-01-08 01:03:44 UTC (rev 161472)
+++ trunk/Source/WebKit2/ChangeLog        2014-01-08 01:03:46 UTC (rev 161473)
</span><span class="lines">@@ -1,5 +1,28 @@
</span><span class="cx"> 2014-01-07 Simon Fraser <simon.fraser@apple.com>
</span><span class="cx">
</span><ins>+ Add message-generation test for non-legacy message receiver
+ https://bugs.webkit.org/show_bug.cgi?id=126603
+
+ Reviewed by Anders Carlsson.
+
+ Add expected output files for a non-legacy message receiver, and add
+ testing for same.
+
+ * Scripts/webkit2/LegacyMessageReceiver-expected.cpp: Copied from Source/WebKit2/Scripts/webkit2/MessageReceiver-expected.cpp.
+ * Scripts/webkit2/LegacyMessages-expected.h: Added.
+ * Scripts/webkit2/MessageReceiver-expected.cpp:
+ (WebKit::WebPage::didReceiveMessage):
+ (WebKit::WebPage::didReceiveSyncMessage):
+ * Scripts/webkit2/messages_unittest.py:
+ (MessagesTest.setUp):
+ (ParsingTest.test_receiver):
+ (HeaderTest.test_header):
+ (ReceiverImplementationTest.test_receiver_implementation):
+ * Scripts/webkit2/test-legacy-messages.in: Copied from Source/WebKit2/Scripts/webkit2/test-messages.in.
+ * Scripts/webkit2/test-messages.in:
+
+2014-01-07 Simon Fraser <simon.fraser@apple.com>
+
</ins><span class="cx"> Move expected results out of messages_unittest.py into separate files
</span><span class="cx"> https://bugs.webkit.org/show_bug.cgi?id=126602
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2Scriptswebkit2LegacyMessageReceiverexpectedcppfromrev161472trunkSourceWebKit2Scriptswebkit2MessageReceiverexpectedcpp"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebKit2/Scripts/webkit2/LegacyMessageReceiver-expected.cpp (from rev 161472, trunk/Source/WebKit2/Scripts/webkit2/MessageReceiver-expected.cpp) (0 => 161473)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Scripts/webkit2/LegacyMessageReceiver-expected.cpp         (rev 0)
+++ trunk/Source/WebKit2/Scripts/webkit2/LegacyMessageReceiver-expected.cpp        2014-01-08 01:03:46 UTC (rev 161473)
</span><span class="lines">@@ -0,0 +1,218 @@
</span><ins>+/*
+ * Copyright (C) 2010 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+
+#if (ENABLE(WEBKIT2) && (NESTED_MASTER_CONDITION || MASTER_OR && MASTER_AND))
+
+#include "WebPage.h"
+
+#include "ArgumentCoders.h"
+#include "Connection.h"
+#if ENABLE(DEPRECATED_FEATURE) || ENABLE(EXPERIMENTAL_FEATURE)
+#include "DummyType.h"
+#endif
+#include "HandleMessage.h"
+#if PLATFORM(MAC)
+#include "MachPort.h"
+#endif
+#include "MessageDecoder.h"
+#include "Plugin.h"
+#include "WebCoreArgumentCoders.h"
+#if (ENABLE(TOUCH_EVENTS) && (NESTED_MESSAGE_CONDITION && SOME_OTHER_MESSAGE_CONDITION)) || (ENABLE(TOUCH_EVENTS) && (NESTED_MESSAGE_CONDITION || SOME_OTHER_MESSAGE_CONDITION))
+#include "WebEvent.h"
+#endif
+#include "WebPageMessages.h"
+#include "WebPreferencesStore.h"
+#if PLATFORM(MAC)
+#include <WebCore/KeyboardEvent.h>
+#endif
+#include <WebCore/PluginData.h>
+#include <utility>
+#include <wtf/HashMap.h>
+#include <wtf/Vector.h>
+#include <wtf/text/WTFString.h>
+
+namespace Messages {
+
+namespace WebPage {
+
+GetPluginProcessConnection::DelayedReply::DelayedReply(PassRefPtr<IPC::Connection> connection, std::unique_ptr<IPC::MessageEncoder> encoder)
+ : m_connection(connection)
+ , m_encoder(std::move(encoder))
+{
+}
+
+GetPluginProcessConnection::DelayedReply::~DelayedReply()
+{
+ ASSERT(!m_connection);
+}
+
+bool GetPluginProcessConnection::DelayedReply::send(const IPC::Connection::Handle& connectionHandle)
+{
+ ASSERT(m_encoder);
+ *m_encoder << connectionHandle;
+ bool result = m_connection->sendSyncReply(std::move(m_encoder));
+ m_connection = nullptr;
+ return result;
+}
+
+TestMultipleAttributes::DelayedReply::DelayedReply(PassRefPtr<IPC::Connection> connection, std::unique_ptr<IPC::MessageEncoder> encoder)
+ : m_connection(connection)
+ , m_encoder(std::move(encoder))
+{
+}
+
+TestMultipleAttributes::DelayedReply::~DelayedReply()
+{
+ ASSERT(!m_connection);
+}
+
+bool TestMultipleAttributes::DelayedReply::send()
+{
+ ASSERT(m_encoder);
+ bool result = m_connection->sendSyncReply(std::move(m_encoder));
+ m_connection = nullptr;
+ return result;
+}
+
+} // namespace WebPage
+
+} // namespace Messages
+
+namespace WebKit {
+
+void WebPage::didReceiveWebPageMessage(IPC::Connection*, IPC::MessageDecoder& decoder)
+{
+ if (decoder.messageName() == Messages::WebPage::LoadURL::name()) {
+ IPC::handleMessage<Messages::WebPage::LoadURL>(decoder, this, &WebPage::loadURL);
+ return;
+ }
+#if ENABLE(TOUCH_EVENTS)
+ if (decoder.messageName() == Messages::WebPage::LoadSomething::name()) {
+ IPC::handleMessage<Messages::WebPage::LoadSomething>(decoder, this, &WebPage::loadSomething);
+ return;
+ }
+#endif
+#if (ENABLE(TOUCH_EVENTS) && (NESTED_MESSAGE_CONDITION || SOME_OTHER_MESSAGE_CONDITION))
+ if (decoder.messageName() == Messages::WebPage::TouchEvent::name()) {
+ IPC::handleMessage<Messages::WebPage::TouchEvent>(decoder, this, &WebPage::touchEvent);
+ return;
+ }
+#endif
+#if (ENABLE(TOUCH_EVENTS) && (NESTED_MESSAGE_CONDITION && SOME_OTHER_MESSAGE_CONDITION))
+ if (decoder.messageName() == Messages::WebPage::AddEvent::name()) {
+ IPC::handleMessage<Messages::WebPage::AddEvent>(decoder, this, &WebPage::addEvent);
+ return;
+ }
+#endif
+#if ENABLE(TOUCH_EVENTS)
+ if (decoder.messageName() == Messages::WebPage::LoadSomethingElse::name()) {
+ IPC::handleMessage<Messages::WebPage::LoadSomethingElse>(decoder, this, &WebPage::loadSomethingElse);
+ return;
+ }
+#endif
+ if (decoder.messageName() == Messages::WebPage::DidReceivePolicyDecision::name()) {
+ IPC::handleMessage<Messages::WebPage::DidReceivePolicyDecision>(decoder, this, &WebPage::didReceivePolicyDecision);
+ return;
+ }
+ if (decoder.messageName() == Messages::WebPage::Close::name()) {
+ IPC::handleMessage<Messages::WebPage::Close>(decoder, this, &WebPage::close);
+ return;
+ }
+ if (decoder.messageName() == Messages::WebPage::PreferencesDidChange::name()) {
+ IPC::handleMessage<Messages::WebPage::PreferencesDidChange>(decoder, this, &WebPage::preferencesDidChange);
+ return;
+ }
+ if (decoder.messageName() == Messages::WebPage::SendDoubleAndFloat::name()) {
+ IPC::handleMessage<Messages::WebPage::SendDoubleAndFloat>(decoder, this, &WebPage::sendDoubleAndFloat);
+ return;
+ }
+ if (decoder.messageName() == Messages::WebPage::SendInts::name()) {
+ IPC::handleMessage<Messages::WebPage::SendInts>(decoder, this, &WebPage::sendInts);
+ return;
+ }
+ if (decoder.messageName() == Messages::WebPage::TestParameterAttributes::name()) {
+ IPC::handleMessage<Messages::WebPage::TestParameterAttributes>(decoder, this, &WebPage::testParameterAttributes);
+ return;
+ }
+ if (decoder.messageName() == Messages::WebPage::TemplateTest::name()) {
+ IPC::handleMessage<Messages::WebPage::TemplateTest>(decoder, this, &WebPage::templateTest);
+ return;
+ }
+#if PLATFORM(MAC)
+ if (decoder.messageName() == Messages::WebPage::DidCreateWebProcessConnection::name()) {
+ IPC::handleMessage<Messages::WebPage::DidCreateWebProcessConnection>(decoder, this, &WebPage::didCreateWebProcessConnection);
+ return;
+ }
+#endif
+#if ENABLE(DEPRECATED_FEATURE)
+ if (decoder.messageName() == Messages::WebPage::DeprecatedOperation::name()) {
+ IPC::handleMessage<Messages::WebPage::DeprecatedOperation>(decoder, this, &WebPage::deprecatedOperation);
+ return;
+ }
+#endif
+#if ENABLE(EXPERIMENTAL_FEATURE)
+ if (decoder.messageName() == Messages::WebPage::ExperimentalOperation::name()) {
+ IPC::handleMessage<Messages::WebPage::ExperimentalOperation>(decoder, this, &WebPage::experimentalOperation);
+ return;
+ }
+#endif
+ ASSERT_NOT_REACHED();
+}
+
+void WebPage::didReceiveSyncWebPageMessage(IPC::Connection* connection, IPC::MessageDecoder& decoder, std::unique_ptr<IPC::MessageEncoder>& replyEncoder)
+{
+ if (decoder.messageName() == Messages::WebPage::CreatePlugin::name()) {
+ IPC::handleMessage<Messages::WebPage::CreatePlugin>(decoder, *replyEncoder, this, &WebPage::createPlugin);
+ return;
+ }
+ if (decoder.messageName() == Messages::WebPage::RunJavaScriptAlert::name()) {
+ IPC::handleMessage<Messages::WebPage::RunJavaScriptAlert>(decoder, *replyEncoder, this, &WebPage::runJavaScriptAlert);
+ return;
+ }
+ if (decoder.messageName() == Messages::WebPage::GetPlugins::name()) {
+ IPC::handleMessage<Messages::WebPage::GetPlugins>(decoder, *replyEncoder, this, &WebPage::getPlugins);
+ return;
+ }
+ if (decoder.messageName() == Messages::WebPage::GetPluginProcessConnection::name()) {
+ IPC::handleMessageDelayed<Messages::WebPage::GetPluginProcessConnection>(connection, decoder, replyEncoder, this, &WebPage::getPluginProcessConnection);
+ return;
+ }
+ if (decoder.messageName() == Messages::WebPage::TestMultipleAttributes::name()) {
+ IPC::handleMessageDelayed<Messages::WebPage::TestMultipleAttributes>(connection, decoder, replyEncoder, this, &WebPage::testMultipleAttributes);
+ return;
+ }
+#if PLATFORM(MAC)
+ if (decoder.messageName() == Messages::WebPage::InterpretKeyEvent::name()) {
+ IPC::handleMessage<Messages::WebPage::InterpretKeyEvent>(decoder, *replyEncoder, this, &WebPage::interpretKeyEvent);
+ return;
+ }
+#endif
+ ASSERT_NOT_REACHED();
+}
+
+} // namespace WebKit
+
+#endif // (ENABLE(WEBKIT2) && (NESTED_MASTER_CONDITION || MASTER_OR && MASTER_AND))
</ins></span></pre></div>
<a id="trunkSourceWebKit2Scriptswebkit2LegacyMessagesexpectedh"></a>
<div class="addfile"><h4>Added: trunk/Source/WebKit2/Scripts/webkit2/LegacyMessages-expected.h (0 => 161473)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Scripts/webkit2/LegacyMessages-expected.h         (rev 0)
+++ trunk/Source/WebKit2/Scripts/webkit2/LegacyMessages-expected.h        2014-01-08 01:03:46 UTC (rev 161473)
</span><span class="lines">@@ -0,0 +1,567 @@
</span><ins>+/*
+ * Copyright (C) 2010 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebPageMessages_h
+#define WebPageMessages_h
+
+#if (ENABLE(WEBKIT2) && (NESTED_MASTER_CONDITION || MASTER_OR && MASTER_AND))
+
+#include "Arguments.h"
+#include "Connection.h"
+#include "MessageEncoder.h"
+#include "Plugin.h"
+#include "StringReference.h"
+#include <WebCore/KeyboardEvent.h>
+#include <WebCore/PluginData.h>
+#include <utility>
+#include <wtf/HashMap.h>
+#include <wtf/ThreadSafeRefCounted.h>
+#include <wtf/Vector.h>
+#include <wtf/text/WTFString.h>
+
+namespace IPC {
+ class Connection;
+ class DummyType;
+ class MachPort;
+}
+
+namespace WTF {
+ class String;
+}
+
+namespace WebKit {
+ struct WebPreferencesStore;
+ class WebTouchEvent;
+}
+
+namespace Messages {
+namespace WebPage {
+
+static inline IPC::StringReference messageReceiverName()
+{
+ return IPC::StringReference("WebPage");
+}
+
+class LoadURL {
+public:
+ typedef std::tuple<String> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("LoadURL"); }
+ static const bool isSync = false;
+
+ explicit LoadURL(const String& url)
+ : m_arguments(url)
+ {
+ }
+
+ const std::tuple<const String&> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<const String&> m_arguments;
+};
+
+#if ENABLE(TOUCH_EVENTS)
+class LoadSomething {
+public:
+ typedef std::tuple<String> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("LoadSomething"); }
+ static const bool isSync = false;
+
+ explicit LoadSomething(const String& url)
+ : m_arguments(url)
+ {
+ }
+
+ const std::tuple<const String&> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<const String&> m_arguments;
+};
+#endif
+
+#if (ENABLE(TOUCH_EVENTS) && (NESTED_MESSAGE_CONDITION || SOME_OTHER_MESSAGE_CONDITION))
+class TouchEvent {
+public:
+ typedef std::tuple<WebKit::WebTouchEvent> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("TouchEvent"); }
+ static const bool isSync = false;
+
+ explicit TouchEvent(const WebKit::WebTouchEvent& event)
+ : m_arguments(event)
+ {
+ }
+
+ const std::tuple<const WebKit::WebTouchEvent&> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<const WebKit::WebTouchEvent&> m_arguments;
+};
+#endif
+
+#if (ENABLE(TOUCH_EVENTS) && (NESTED_MESSAGE_CONDITION && SOME_OTHER_MESSAGE_CONDITION))
+class AddEvent {
+public:
+ typedef std::tuple<WebKit::WebTouchEvent> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("AddEvent"); }
+ static const bool isSync = false;
+
+ explicit AddEvent(const WebKit::WebTouchEvent& event)
+ : m_arguments(event)
+ {
+ }
+
+ const std::tuple<const WebKit::WebTouchEvent&> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<const WebKit::WebTouchEvent&> m_arguments;
+};
+#endif
+
+#if ENABLE(TOUCH_EVENTS)
+class LoadSomethingElse {
+public:
+ typedef std::tuple<String> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("LoadSomethingElse"); }
+ static const bool isSync = false;
+
+ explicit LoadSomethingElse(const String& url)
+ : m_arguments(url)
+ {
+ }
+
+ const std::tuple<const String&> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<const String&> m_arguments;
+};
+#endif
+
+class DidReceivePolicyDecision {
+public:
+ typedef std::tuple<uint64_t, uint64_t, uint32_t> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("DidReceivePolicyDecision"); }
+ static const bool isSync = false;
+
+ DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, uint32_t policyAction)
+ : m_arguments(frameID, listenerID, policyAction)
+ {
+ }
+
+ const std::tuple<uint64_t, uint64_t, uint32_t> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<uint64_t, uint64_t, uint32_t> m_arguments;
+};
+
+class Close {
+public:
+ typedef std::tuple<> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("Close"); }
+ static const bool isSync = false;
+
+ const std::tuple<> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<> m_arguments;
+};
+
+class PreferencesDidChange {
+public:
+ typedef std::tuple<WebKit::WebPreferencesStore> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("PreferencesDidChange"); }
+ static const bool isSync = false;
+
+ explicit PreferencesDidChange(const WebKit::WebPreferencesStore& store)
+ : m_arguments(store)
+ {
+ }
+
+ const std::tuple<const WebKit::WebPreferencesStore&> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<const WebKit::WebPreferencesStore&> m_arguments;
+};
+
+class SendDoubleAndFloat {
+public:
+ typedef std::tuple<double, float> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("SendDoubleAndFloat"); }
+ static const bool isSync = false;
+
+ SendDoubleAndFloat(double d, float f)
+ : m_arguments(d, f)
+ {
+ }
+
+ const std::tuple<double, float> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<double, float> m_arguments;
+};
+
+class SendInts {
+public:
+ typedef std::tuple<Vector<uint64_t>, Vector<Vector<uint64_t>>> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("SendInts"); }
+ static const bool isSync = false;
+
+ SendInts(const Vector<uint64_t>& ints, const Vector<Vector<uint64_t>>& intVectors)
+ : m_arguments(ints, intVectors)
+ {
+ }
+
+ const std::tuple<const Vector<uint64_t>&, const Vector<Vector<uint64_t>>&> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<const Vector<uint64_t>&, const Vector<Vector<uint64_t>>&> m_arguments;
+};
+
+class CreatePlugin {
+public:
+ typedef std::tuple<uint64_t, WebKit::Plugin::Parameters> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("CreatePlugin"); }
+ static const bool isSync = true;
+
+ typedef IPC::Arguments1<bool&> Reply;
+ CreatePlugin(uint64_t pluginInstanceID, const WebKit::Plugin::Parameters& parameters)
+ : m_arguments(pluginInstanceID, parameters)
+ {
+ }
+
+ const std::tuple<uint64_t, const WebKit::Plugin::Parameters&> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<uint64_t, const WebKit::Plugin::Parameters&> m_arguments;
+};
+
+class RunJavaScriptAlert {
+public:
+ typedef std::tuple<uint64_t, String> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("RunJavaScriptAlert"); }
+ static const bool isSync = true;
+
+ typedef IPC::Arguments0 Reply;
+ RunJavaScriptAlert(uint64_t frameID, const String& message)
+ : m_arguments(frameID, message)
+ {
+ }
+
+ const std::tuple<uint64_t, const String&> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<uint64_t, const String&> m_arguments;
+};
+
+class GetPlugins {
+public:
+ typedef std::tuple<bool> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("GetPlugins"); }
+ static const bool isSync = true;
+
+ typedef IPC::Arguments1<Vector<WebCore::PluginInfo>&> Reply;
+ explicit GetPlugins(bool refresh)
+ : m_arguments(refresh)
+ {
+ }
+
+ const std::tuple<bool> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<bool> m_arguments;
+};
+
+class GetPluginProcessConnection {
+public:
+ typedef std::tuple<String> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("GetPluginProcessConnection"); }
+ static const bool isSync = true;
+
+ struct DelayedReply : public ThreadSafeRefCounted<DelayedReply> {
+ DelayedReply(PassRefPtr<IPC::Connection>, std::unique_ptr<IPC::MessageEncoder>);
+ ~DelayedReply();
+
+ bool send(const IPC::Connection::Handle& connectionHandle);
+
+ private:
+ RefPtr<IPC::Connection> m_connection;
+ std::unique_ptr<IPC::MessageEncoder> m_encoder;
+ };
+
+ typedef IPC::Arguments1<IPC::Connection::Handle&> Reply;
+ explicit GetPluginProcessConnection(const String& pluginPath)
+ : m_arguments(pluginPath)
+ {
+ }
+
+ const std::tuple<const String&> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<const String&> m_arguments;
+};
+
+class TestMultipleAttributes {
+public:
+ typedef std::tuple<> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("TestMultipleAttributes"); }
+ static const bool isSync = true;
+
+ struct DelayedReply : public ThreadSafeRefCounted<DelayedReply> {
+ DelayedReply(PassRefPtr<IPC::Connection>, std::unique_ptr<IPC::MessageEncoder>);
+ ~DelayedReply();
+
+ bool send();
+
+ private:
+ RefPtr<IPC::Connection> m_connection;
+ std::unique_ptr<IPC::MessageEncoder> m_encoder;
+ };
+
+ typedef IPC::Arguments0 Reply;
+ const std::tuple<> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<> m_arguments;
+};
+
+class TestParameterAttributes {
+public:
+ typedef std::tuple<uint64_t, double, double> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("TestParameterAttributes"); }
+ static const bool isSync = false;
+
+ TestParameterAttributes(uint64_t foo, double bar, double baz)
+ : m_arguments(foo, bar, baz)
+ {
+ }
+
+ const std::tuple<uint64_t, double, double> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<uint64_t, double, double> m_arguments;
+};
+
+class TemplateTest {
+public:
+ typedef std::tuple<HashMap<String, std::pair<String, uint64_t>>> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("TemplateTest"); }
+ static const bool isSync = false;
+
+ explicit TemplateTest(const HashMap<String, std::pair<String, uint64_t>>& a)
+ : m_arguments(a)
+ {
+ }
+
+ const std::tuple<const HashMap<String, std::pair<String, uint64_t>>&> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<const HashMap<String, std::pair<String, uint64_t>>&> m_arguments;
+};
+
+#if PLATFORM(MAC)
+class DidCreateWebProcessConnection {
+public:
+ typedef std::tuple<IPC::MachPort> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("DidCreateWebProcessConnection"); }
+ static const bool isSync = false;
+
+ explicit DidCreateWebProcessConnection(const IPC::MachPort& connectionIdentifier)
+ : m_arguments(connectionIdentifier)
+ {
+ }
+
+ const std::tuple<const IPC::MachPort&> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<const IPC::MachPort&> m_arguments;
+};
+#endif
+
+#if PLATFORM(MAC)
+class InterpretKeyEvent {
+public:
+ typedef std::tuple<uint32_t> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("InterpretKeyEvent"); }
+ static const bool isSync = true;
+
+ typedef IPC::Arguments1<Vector<WebCore::KeypressCommand>&> Reply;
+ explicit InterpretKeyEvent(uint32_t type)
+ : m_arguments(type)
+ {
+ }
+
+ const std::tuple<uint32_t> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<uint32_t> m_arguments;
+};
+#endif
+
+#if ENABLE(DEPRECATED_FEATURE)
+class DeprecatedOperation {
+public:
+ typedef std::tuple<IPC::DummyType> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("DeprecatedOperation"); }
+ static const bool isSync = false;
+
+ explicit DeprecatedOperation(const IPC::DummyType& dummy)
+ : m_arguments(dummy)
+ {
+ }
+
+ const std::tuple<const IPC::DummyType&> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<const IPC::DummyType&> m_arguments;
+};
+#endif
+
+#if ENABLE(EXPERIMENTAL_FEATURE)
+class ExperimentalOperation {
+public:
+ typedef std::tuple<IPC::DummyType> DecodeType;
+
+ static IPC::StringReference receiverName() { return messageReceiverName(); }
+ static IPC::StringReference name() { return IPC::StringReference("ExperimentalOperation"); }
+ static const bool isSync = false;
+
+ explicit ExperimentalOperation(const IPC::DummyType& dummy)
+ : m_arguments(dummy)
+ {
+ }
+
+ const std::tuple<const IPC::DummyType&> arguments() const
+ {
+ return m_arguments;
+ }
+
+private:
+ std::tuple<const IPC::DummyType&> m_arguments;
+};
+#endif
+
+} // namespace WebPage
+} // namespace Messages
+
+#endif // (ENABLE(WEBKIT2) && (NESTED_MASTER_CONDITION || MASTER_OR && MASTER_AND))
+
+#endif // WebPageMessages_h
</ins><span class="cx">Property changes on: trunk/Source/WebKit2/Scripts/webkit2/LegacyMessages-expected.h
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkSourceWebKit2Scriptswebkit2MessageReceiverexpectedcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Scripts/webkit2/MessageReceiver-expected.cpp (161472 => 161473)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Scripts/webkit2/MessageReceiver-expected.cpp        2014-01-08 01:03:44 UTC (rev 161472)
+++ trunk/Source/WebKit2/Scripts/webkit2/MessageReceiver-expected.cpp        2014-01-08 01:03:46 UTC (rev 161473)
</span><span class="lines">@@ -103,7 +103,7 @@
</span><span class="cx">
</span><span class="cx"> namespace WebKit {
</span><span class="cx">
</span><del>-void WebPage::didReceiveWebPageMessage(IPC::Connection*, IPC::MessageDecoder& decoder)
</del><ins>+void WebPage::didReceiveMessage(IPC::Connection* connection, IPC::MessageDecoder& decoder)
</ins><span class="cx"> {
</span><span class="cx"> if (decoder.messageName() == Messages::WebPage::LoadURL::name()) {
</span><span class="cx"> IPC::handleMessage<Messages::WebPage::LoadURL>(decoder, this, &WebPage::loadURL);
</span><span class="lines">@@ -179,10 +179,11 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><ins>+ UNUSED_PARAM(connection);
</ins><span class="cx"> ASSERT_NOT_REACHED();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void WebPage::didReceiveSyncWebPageMessage(IPC::Connection* connection, IPC::MessageDecoder& decoder, std::unique_ptr<IPC::MessageEncoder>& replyEncoder)
</del><ins>+void WebPage::didReceiveSyncMessage(IPC::Connection* connection, IPC::MessageDecoder& decoder, std::unique_ptr<IPC::MessageEncoder>& replyEncoder)
</ins><span class="cx"> {
</span><span class="cx"> if (decoder.messageName() == Messages::WebPage::CreatePlugin::name()) {
</span><span class="cx"> IPC::handleMessage<Messages::WebPage::CreatePlugin>(decoder, *replyEncoder, this, &WebPage::createPlugin);
</span><span class="lines">@@ -210,6 +211,7 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><ins>+ UNUSED_PARAM(connection);
</ins><span class="cx"> ASSERT_NOT_REACHED();
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2Scriptswebkit2messages_unittestpy"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Scripts/webkit2/messages_unittest.py (161472 => 161473)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Scripts/webkit2/messages_unittest.py        2014-01-08 01:03:44 UTC (rev 161472)
+++ trunk/Source/WebKit2/Scripts/webkit2/messages_unittest.py        2014-01-08 01:03:46 UTC (rev 161473)
</span><span class="lines">@@ -31,15 +31,24 @@
</span><span class="cx">
</span><span class="cx"> script_directory = os.path.dirname(os.path.realpath(__file__))
</span><span class="cx">
</span><ins>+with open(os.path.join(script_directory, 'test-legacy-messages.in')) as file:
+ _legacy_messages_file_contents = file.read()
+
</ins><span class="cx"> with open(os.path.join(script_directory, 'test-messages.in')) as file:
</span><span class="cx"> _messages_file_contents = file.read()
</span><span class="cx">
</span><ins>+with open(os.path.join(script_directory, 'LegacyMessages-expected.h')) as file:
+ _expected_legacy_receiver_header = file.read()
+
</ins><span class="cx"> with open(os.path.join(script_directory, 'Messages-expected.h')) as file:
</span><del>- _expected_header = file.read()
</del><ins>+ _expected_receiver_header = file.read()
</ins><span class="cx">
</span><span class="cx"> with open(os.path.join(script_directory, 'MessageReceiver-expected.cpp')) as file:
</span><span class="cx"> _expected_receiver_implementation = file.read()
</span><span class="cx">
</span><ins>+with open(os.path.join(script_directory, 'LegacyMessageReceiver-expected.cpp')) as file:
+ _expected_legacy_receiver_implementation = file.read()
+
</ins><span class="cx"> _expected_results = {
</span><span class="cx"> 'name': 'WebPage',
</span><span class="cx"> 'conditions': ('(ENABLE(WEBKIT2) && (NESTED_MASTER_CONDITION || MASTER_OR && MASTER_AND))'),
</span><span class="lines">@@ -218,6 +227,7 @@
</span><span class="cx"> class MessagesTest(unittest.TestCase):
</span><span class="cx"> def setUp(self):
</span><span class="cx"> self.receiver = parser.parse(StringIO(_messages_file_contents))
</span><ins>+ self.legacy_receiver = parser.parse(StringIO(_legacy_messages_file_contents))
</ins><span class="cx">
</span><span class="cx">
</span><span class="cx"> class ParsingTest(MessagesTest):
</span><span class="lines">@@ -250,8 +260,14 @@
</span><span class="cx"> for index, message in enumerate(self.receiver.messages):
</span><span class="cx"> self.check_message(message, _expected_results['messages'][index])
</span><span class="cx">
</span><ins>+ self.assertEquals(self.legacy_receiver.name, _expected_results['name'])
+ self.assertEquals(self.legacy_receiver.condition, _expected_results['conditions'])
+ self.assertEquals(len(self.legacy_receiver.messages), len(_expected_results['messages']))
+ for index, message in enumerate(self.legacy_receiver.messages):
+ self.check_message(message, _expected_results['messages'][index])
</ins><span class="cx">
</span><span class="cx">
</span><ins>+
</ins><span class="cx"> class GeneratedFileContentsTest(unittest.TestCase):
</span><span class="cx"> def assertGeneratedFileContentsEqual(self, first, second):
</span><span class="cx"> first_list = first.split('\n')
</span><span class="lines">@@ -265,12 +281,18 @@
</span><span class="cx">
</span><span class="cx"> class HeaderTest(GeneratedFileContentsTest):
</span><span class="cx"> def test_header(self):
</span><ins>+ legacy_file_contents = messages.generate_messages_header(StringIO(_legacy_messages_file_contents))
+ self.assertGeneratedFileContentsEqual(legacy_file_contents, _expected_legacy_receiver_header)
+
</ins><span class="cx"> file_contents = messages.generate_messages_header(StringIO(_messages_file_contents))
</span><del>- self.assertGeneratedFileContentsEqual(file_contents, _expected_header)
</del><ins>+ self.assertGeneratedFileContentsEqual(file_contents, _expected_receiver_header)
</ins><span class="cx">
</span><span class="cx">
</span><span class="cx"> class ReceiverImplementationTest(GeneratedFileContentsTest):
</span><span class="cx"> def test_receiver_implementation(self):
</span><ins>+ legacy_file_contents = messages.generate_message_handler(StringIO(_legacy_messages_file_contents))
+ self.assertGeneratedFileContentsEqual(legacy_file_contents, _expected_legacy_receiver_implementation)
+
</ins><span class="cx"> file_contents = messages.generate_message_handler(StringIO(_messages_file_contents))
</span><span class="cx"> self.assertGeneratedFileContentsEqual(file_contents, _expected_receiver_implementation)
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2Scriptswebkit2testlegacymessagesinfromrev161472trunkSourceWebKit2Scriptswebkit2testmessagesin"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebKit2/Scripts/webkit2/test-legacy-messages.in (from rev 161472, trunk/Source/WebKit2/Scripts/webkit2/test-messages.in) (0 => 161473)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Scripts/webkit2/test-legacy-messages.in         (rev 0)
+++ trunk/Source/WebKit2/Scripts/webkit2/test-legacy-messages.in        2014-01-08 01:03:46 UTC (rev 161473)
</span><span class="lines">@@ -0,0 +1,75 @@
</span><ins>+# Copyright (C) 2010 Apple Inc. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+#if ENABLE(WEBKIT2)
+#if NESTED_MASTER_CONDITION || MASTER_OR && MASTER_AND
+
+messages -> WebPage LegacyReceiver {
+ LoadURL(String url)
+#if ENABLE(TOUCH_EVENTS)
+ LoadSomething(String url)
+#if NESTED_MESSAGE_CONDITION || SOME_OTHER_MESSAGE_CONDITION
+ TouchEvent(WebKit::WebTouchEvent event)
+#endif
+#if NESTED_MESSAGE_CONDITION && SOME_OTHER_MESSAGE_CONDITION
+ AddEvent(WebKit::WebTouchEvent event)
+#endif
+ LoadSomethingElse(String url)
+#endif
+ DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, uint32_t policyAction)
+ Close()
+
+ PreferencesDidChange(WebKit::WebPreferencesStore store)
+ SendDoubleAndFloat(double d, float f)
+ SendInts(Vector<uint64_t> ints, Vector<Vector<uint64_t>> intVectors)
+
+ CreatePlugin(uint64_t pluginInstanceID, WebKit::Plugin::Parameters parameters) -> (bool result)
+ RunJavaScriptAlert(uint64_t frameID, String message) -> ()
+ GetPlugins(bool refresh) -> (Vector<WebCore::PluginInfo> plugins)
+ GetPluginProcessConnection(String pluginPath) -> (IPC::Connection::Handle connectionHandle) Delayed
+
+ TestMultipleAttributes() -> () WantsConnection Delayed
+
+ TestParameterAttributes([AttributeOne AttributeTwo] uint64_t foo, double bar, [AttributeThree] double baz)
+
+ TemplateTest(HashMap<String, std::pair<String, uint64_t>> a)
+
+#if PLATFORM(MAC)
+ DidCreateWebProcessConnection(IPC::MachPort connectionIdentifier)
+#endif
+
+#if PLATFORM(MAC)
+ # Keyboard support
+ InterpretKeyEvent(uint32_t type) -> (Vector<WebCore::KeypressCommand> commandName)
+#endif
+
+#if ENABLE(DEPRECATED_FEATURE)
+ DeprecatedOperation(IPC::DummyType dummy)
+#endif
+
+#if ENABLE(EXPERIMENTAL_FEATURE)
+ ExperimentalOperation(IPC::DummyType dummy)
+#endif
+}
+
+#endif
+#endif
</ins></span></pre></div>
<a id="trunkSourceWebKit2Scriptswebkit2testmessagesin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Scripts/webkit2/test-messages.in (161472 => 161473)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Scripts/webkit2/test-messages.in        2014-01-08 01:03:44 UTC (rev 161472)
+++ trunk/Source/WebKit2/Scripts/webkit2/test-messages.in        2014-01-08 01:03:46 UTC (rev 161473)
</span><span class="lines">@@ -23,7 +23,7 @@
</span><span class="cx"> #if ENABLE(WEBKIT2)
</span><span class="cx"> #if NESTED_MASTER_CONDITION || MASTER_OR && MASTER_AND
</span><span class="cx">
</span><del>-messages -> WebPage LegacyReceiver {
</del><ins>+messages -> WebPage {
</ins><span class="cx"> LoadURL(String url)
</span><span class="cx"> #if ENABLE(TOUCH_EVENTS)
</span><span class="cx"> LoadSomething(String url)
</span></span></pre>
</div>
</div>
</body>
</html>