Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3015)

Unified Diff: chrome_frame/chrome_frame_delegate.cc

Issue 8511083: Add arguments in macros where required (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_delegate.cc
===================================================================
--- chrome_frame/chrome_frame_delegate.cc (revision 109037)
+++ chrome_frame/chrome_frame_delegate.cc (working copy)
@@ -6,36 +6,42 @@
#include "chrome/common/automation_messages.h"
+#define NO_CODE ((void)0)
+
bool ChromeFrameDelegateImpl::IsTabMessage(const IPC::Message& message) {
bool is_tab_message = true;
IPC_BEGIN_MESSAGE_MAP(ChromeFrameDelegateImpl, message)
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_NavigationStateChanged, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_UpdateTargetUrl, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_HandleAccelerator, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_TabbedOut, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_OpenURL, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_NavigationFailed, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_DidNavigate, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_TabLoaded, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_MoveWindow, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_ForwardMessageToExternalHost, )
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_NavigationStateChanged, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_UpdateTargetUrl, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_HandleAccelerator, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_TabbedOut, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_OpenURL, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_NavigationFailed, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_DidNavigate, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_TabLoaded, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_MoveWindow, NO_CODE)
IPC_MESSAGE_HANDLER_GENERIC(
- AutomationMsg_ForwardContextMenuToExternalHost, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_RequestStart, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_RequestRead, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_RequestEnd, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_DownloadRequestInHost, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_SetCookieAsync, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_AttachExternalTab, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_RequestGoToHistoryEntryOffset, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_GetCookiesFromHost, )
- IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_CloseExternalTab, )
+ AutomationMsg_ForwardMessageToExternalHost, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(
+ AutomationMsg_ForwardContextMenuToExternalHost, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_RequestStart, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_RequestRead, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_RequestEnd, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_DownloadRequestInHost, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_SetCookieAsync, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_AttachExternalTab, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(
+ AutomationMsg_RequestGoToHistoryEntryOffset, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_GetCookiesFromHost, NO_CODE)
+ IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_CloseExternalTab, NO_CODE)
IPC_MESSAGE_UNHANDLED(is_tab_message = false);
IPC_END_MESSAGE_MAP()
return is_tab_message;
}
+#undef NO_CODE
+
bool ChromeFrameDelegateImpl::OnMessageReceived(const IPC::Message& msg) {
if (!IsValid()) {
DLOG(WARNING) << __FUNCTION__
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698