Commit f0560502 authored by andersca@apple.com's avatar andersca@apple.com

Try to fix Windows build.

* Scripts/webkit2/messages.py:
* Scripts/webkit2/messages_unittest.py:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85571 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 91cacbfc
2011-05-02 Anders Carlsson <andersca@apple.com>
Try to fix Windows build.
* Scripts/webkit2/messages.py:
* Scripts/webkit2/messages_unittest.py:
2011-05-02 Anders Carlsson <andersca@apple.com>
Reviewed by Oliver Hunt.
......
......@@ -593,11 +593,18 @@ def generate_message_handler(file):
if async_dispatch_on_connection_queue_messages:
result.append('bool %s::willProcess%sMessageOnClientRunLoop(CoreIPC::Connection*, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder* arguments)\n' % (receiver.name, receiver.name))
result.append('{\n')
result.append('#if COMPILER(MSVC)\n')
result.append('#pragma warning(push)\n')
result.append('#pragma warning(disable: 4065)\n')
result.append('#endif\n')
result.append(' switch (messageID.get<Messages::%s::Kind>()) {\n' % receiver.name)
result += [async_case_statement(receiver, message, 'false') for message in async_dispatch_on_connection_queue_messages]
result.append(' default:\n')
result.append(' return true;\n')
result.append(' }\n')
result.append('#if COMPILER(MSVC)\n')
result.append('#pragma warning(pop)\n')
result.append('#endif\n')
result.append('}\n\n')
if async_messages:
......
......@@ -602,6 +602,10 @@ namespace WebKit {
bool WebPage::willProcessWebPageMessageOnClientRunLoop(CoreIPC::Connection*, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder* arguments)
{
#if COMPILER(MSVC)
#pragma warning(push)
#pragma warning(disable: 4065)
#endif
switch (messageID.get<Messages::WebPage::Kind>()) {
case Messages::WebPage::TestConnectionQueueID:
CoreIPC::handleMessage<Messages::WebPage::TestConnectionQueue>(arguments, this, &WebPage::testConnectionQueue);
......@@ -609,6 +613,9 @@ bool WebPage::willProcessWebPageMessageOnClientRunLoop(CoreIPC::Connection*, Cor
default:
return true;
}
#if COMPILER(MSVC)
#pragma warning(pop)
#endif
}
void WebPage::didReceiveWebPageMessage(CoreIPC::Connection*, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder* arguments)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment