From 5ea819f80c6840c492386bfafbffb059c7e2091f Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 23 Oct 2012 10:25:11 +0200 Subject: Imported WebKit commit 20434eb8eb95065803473139d8794e98a7672f75 (http://svn.webkit.org/repository/webkit/trunk@132191) New snapshot that should fix build with latest qtbase and the QPlastiqueStyle removal --- .../WebKit2/Scripts/webkit2/messages_unittest.py | 77 +++++++++++----------- 1 file changed, 39 insertions(+), 38 deletions(-) (limited to 'Source/WebKit2/Scripts/webkit2/messages_unittest.py') diff --git a/Source/WebKit2/Scripts/webkit2/messages_unittest.py b/Source/WebKit2/Scripts/webkit2/messages_unittest.py index e8d190d45..f4fa1eee8 100644 --- a/Source/WebKit2/Scripts/webkit2/messages_unittest.py +++ b/Source/WebKit2/Scripts/webkit2/messages_unittest.py @@ -318,6 +318,7 @@ _expected_header = """/* #include "MessageEncoder.h" #include "MessageID.h" #include "Plugin.h" +#include "StringReference.h" #include #include #include @@ -341,9 +342,9 @@ namespace WebKit { namespace Messages { namespace WebPage { -static inline const char* messageReceiverName() +static inline CoreIPC::StringReference messageReceiverName() { - return "WebPage"; + return CoreIPC::StringReference("WebPage"); } enum Kind { @@ -379,8 +380,8 @@ enum Kind { struct LoadURL : CoreIPC::Arguments1 { static const Kind messageID = LoadURLID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "LoadURL"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("LoadURL"); } typedef CoreIPC::Arguments1 DecodeType; explicit LoadURL(const WTF::String& url) @@ -392,8 +393,8 @@ struct LoadURL : CoreIPC::Arguments1 { #if ENABLE(TOUCH_EVENTS) struct TouchEvent : CoreIPC::Arguments1 { static const Kind messageID = TouchEventID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "TouchEvent"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("TouchEvent"); } typedef CoreIPC::Arguments1 DecodeType; explicit TouchEvent(const WebKit::WebTouchEvent& event) @@ -405,8 +406,8 @@ struct TouchEvent : CoreIPC::Arguments1 { struct DidReceivePolicyDecision : CoreIPC::Arguments3 { static const Kind messageID = DidReceivePolicyDecisionID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "DidReceivePolicyDecision"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("DidReceivePolicyDecision"); } typedef CoreIPC::Arguments3 DecodeType; DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, uint32_t policyAction) @@ -417,16 +418,16 @@ struct DidReceivePolicyDecision : CoreIPC::Arguments3 { static const Kind messageID = PreferencesDidChangeID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "PreferencesDidChange"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("PreferencesDidChange"); } typedef CoreIPC::Arguments1 DecodeType; explicit PreferencesDidChange(const WebKit::WebPreferencesStore& store) @@ -437,8 +438,8 @@ struct PreferencesDidChange : CoreIPC::Arguments1 { static const Kind messageID = SendDoubleAndFloatID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "SendDoubleAndFloat"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("SendDoubleAndFloat"); } typedef CoreIPC::Arguments2 DecodeType; SendDoubleAndFloat(double d, float f) @@ -449,8 +450,8 @@ struct SendDoubleAndFloat : CoreIPC::Arguments2 { struct SendInts : CoreIPC::Arguments2&, const Vector >&> { static const Kind messageID = SendIntsID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "SendInts"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("SendInts"); } typedef CoreIPC::Arguments2&, const Vector >&> DecodeType; SendInts(const Vector& ints, const Vector >& intVectors) @@ -461,8 +462,8 @@ struct SendInts : CoreIPC::Arguments2&, const Vector { static const Kind messageID = CreatePluginID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "CreatePlugin"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("CreatePlugin"); } typedef CoreIPC::Arguments1 Reply; typedef CoreIPC::Arguments2 DecodeType; @@ -474,8 +475,8 @@ struct CreatePlugin : CoreIPC::Arguments2 { static const Kind messageID = RunJavaScriptAlertID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "RunJavaScriptAlert"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("RunJavaScriptAlert"); } typedef CoreIPC::Arguments0 Reply; typedef CoreIPC::Arguments2 DecodeType; @@ -487,8 +488,8 @@ struct RunJavaScriptAlert : CoreIPC::Arguments2 { struct GetPlugins : CoreIPC::Arguments1 { static const Kind messageID = GetPluginsID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "GetPlugins"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("GetPlugins"); } typedef CoreIPC::Arguments1&> Reply; typedef CoreIPC::Arguments1 DecodeType; @@ -500,8 +501,8 @@ struct GetPlugins : CoreIPC::Arguments1 { struct GetPluginProcessConnection : CoreIPC::Arguments1 { static const Kind messageID = GetPluginProcessConnectionID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "GetPluginProcessConnection"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("GetPluginProcessConnection"); } struct DelayedReply : public ThreadSafeRefCounted { DelayedReply(PassRefPtr, PassOwnPtr); @@ -524,8 +525,8 @@ struct GetPluginProcessConnection : CoreIPC::Arguments1 { struct TestMultipleAttributes : CoreIPC::Arguments0 { static const Kind messageID = TestMultipleAttributesID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "TestMultipleAttributes"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("TestMultipleAttributes"); } struct DelayedReply : public ThreadSafeRefCounted { DelayedReply(PassRefPtr, PassOwnPtr); @@ -544,8 +545,8 @@ struct TestMultipleAttributes : CoreIPC::Arguments0 { struct TestConnectionQueue : CoreIPC::Arguments1 { static const Kind messageID = TestConnectionQueueID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "TestConnectionQueue"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("TestConnectionQueue"); } typedef CoreIPC::Arguments1 DecodeType; explicit TestConnectionQueue(uint64_t pluginID) @@ -556,8 +557,8 @@ struct TestConnectionQueue : CoreIPC::Arguments1 { struct TestParameterAttributes : CoreIPC::Arguments3 { static const Kind messageID = TestParameterAttributesID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "TestParameterAttributes"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("TestParameterAttributes"); } typedef CoreIPC::Arguments3 DecodeType; TestParameterAttributes(uint64_t foo, double bar, double baz) @@ -569,8 +570,8 @@ struct TestParameterAttributes : CoreIPC::Arguments3 { #if PLATFORM(MAC) struct DidCreateWebProcessConnection : CoreIPC::Arguments1 { static const Kind messageID = DidCreateWebProcessConnectionID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "DidCreateWebProcessConnection"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("DidCreateWebProcessConnection"); } typedef CoreIPC::Arguments1 DecodeType; explicit DidCreateWebProcessConnection(const CoreIPC::MachPort& connectionIdentifier) @@ -583,8 +584,8 @@ struct DidCreateWebProcessConnection : CoreIPC::Arguments1 { static const Kind messageID = InterpretKeyEventID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "InterpretKeyEvent"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("InterpretKeyEvent"); } typedef CoreIPC::Arguments1&> Reply; typedef CoreIPC::Arguments1 DecodeType; @@ -598,8 +599,8 @@ struct InterpretKeyEvent : CoreIPC::Arguments1 { #if ENABLE(DEPRECATED_FEATURE) struct DeprecatedOperation : CoreIPC::Arguments1 { static const Kind messageID = DeprecatedOperationID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "DeprecatedOperation"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("DeprecatedOperation"); } typedef CoreIPC::Arguments1 DecodeType; explicit DeprecatedOperation(const CoreIPC::DummyType& dummy) @@ -612,8 +613,8 @@ struct DeprecatedOperation : CoreIPC::Arguments1 { #if ENABLE(EXPERIMENTAL_FEATURE) struct ExperimentalOperation : CoreIPC::Arguments1 { static const Kind messageID = ExperimentalOperationID; - static const char* receiverName() { return messageReceiverName(); } - static const char* name() { return "ExperimentalOperation"; } + static CoreIPC::StringReference receiverName() { return messageReceiverName(); } + static CoreIPC::StringReference name() { return CoreIPC::StringReference("ExperimentalOperation"); } typedef CoreIPC::Arguments1 DecodeType; explicit ExperimentalOperation(const CoreIPC::DummyType& dummy) -- cgit v1.2.1