| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome_frame/chrome_frame_delegate.h" | 5 #include "chrome_frame/chrome_frame_delegate.h" |
| 6 | 6 |
| 7 #include "chrome/common/automation_messages.h" | 7 #include "chrome/common/automation_messages.h" |
| 8 | 8 |
| 9 #define NO_CODE ((void)0) | 9 #define NO_CODE ((void)0) |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_TabLoaded, NO_CODE) | 21 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_TabLoaded, NO_CODE) |
| 22 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_MoveWindow, NO_CODE) | 22 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_MoveWindow, NO_CODE) |
| 23 IPC_MESSAGE_HANDLER_GENERIC( | 23 IPC_MESSAGE_HANDLER_GENERIC( |
| 24 AutomationMsg_ForwardMessageToExternalHost, NO_CODE) | 24 AutomationMsg_ForwardMessageToExternalHost, NO_CODE) |
| 25 IPC_MESSAGE_HANDLER_GENERIC( | 25 IPC_MESSAGE_HANDLER_GENERIC( |
| 26 AutomationMsg_ForwardContextMenuToExternalHost, NO_CODE) | 26 AutomationMsg_ForwardContextMenuToExternalHost, NO_CODE) |
| 27 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_RequestStart, NO_CODE) | 27 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_RequestStart, NO_CODE) |
| 28 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_RequestRead, NO_CODE) | 28 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_RequestRead, NO_CODE) |
| 29 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_RequestEnd, NO_CODE) | 29 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_RequestEnd, NO_CODE) |
| 30 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_DownloadRequestInHost, NO_CODE) | 30 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_DownloadRequestInHost, NO_CODE) |
| 31 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_SetCookieAsync, NO_CODE) | |
| 32 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_AttachExternalTab, NO_CODE) | 31 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_AttachExternalTab, NO_CODE) |
| 33 IPC_MESSAGE_HANDLER_GENERIC( | 32 IPC_MESSAGE_HANDLER_GENERIC( |
| 34 AutomationMsg_RequestGoToHistoryEntryOffset, NO_CODE) | 33 AutomationMsg_RequestGoToHistoryEntryOffset, NO_CODE) |
| 35 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_GetCookiesFromHost, NO_CODE) | |
| 36 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_CloseExternalTab, NO_CODE) | 34 IPC_MESSAGE_HANDLER_GENERIC(AutomationMsg_CloseExternalTab, NO_CODE) |
| 37 IPC_MESSAGE_UNHANDLED(is_tab_message = false); | 35 IPC_MESSAGE_UNHANDLED(is_tab_message = false); |
| 38 IPC_END_MESSAGE_MAP() | 36 IPC_END_MESSAGE_MAP() |
| 39 | 37 |
| 40 return is_tab_message; | 38 return is_tab_message; |
| 41 } | 39 } |
| 42 | 40 |
| 43 #undef NO_CODE | 41 #undef NO_CODE |
| 44 | 42 |
| 45 bool ChromeFrameDelegateImpl::OnMessageReceived(const IPC::Message& msg) { | 43 bool ChromeFrameDelegateImpl::OnMessageReceived(const IPC::Message& msg) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 64 IPC_MESSAGE_HANDLER(AutomationMsg_MoveWindow, OnMoveWindow) | 62 IPC_MESSAGE_HANDLER(AutomationMsg_MoveWindow, OnMoveWindow) |
| 65 IPC_MESSAGE_HANDLER(AutomationMsg_ForwardMessageToExternalHost, | 63 IPC_MESSAGE_HANDLER(AutomationMsg_ForwardMessageToExternalHost, |
| 66 OnMessageFromChromeFrame) | 64 OnMessageFromChromeFrame) |
| 67 IPC_MESSAGE_HANDLER(AutomationMsg_ForwardContextMenuToExternalHost, | 65 IPC_MESSAGE_HANDLER(AutomationMsg_ForwardContextMenuToExternalHost, |
| 68 OnHandleContextMenu) | 66 OnHandleContextMenu) |
| 69 IPC_MESSAGE_HANDLER(AutomationMsg_RequestStart, OnRequestStart) | 67 IPC_MESSAGE_HANDLER(AutomationMsg_RequestStart, OnRequestStart) |
| 70 IPC_MESSAGE_HANDLER(AutomationMsg_RequestRead, OnRequestRead) | 68 IPC_MESSAGE_HANDLER(AutomationMsg_RequestRead, OnRequestRead) |
| 71 IPC_MESSAGE_HANDLER(AutomationMsg_RequestEnd, OnRequestEnd) | 69 IPC_MESSAGE_HANDLER(AutomationMsg_RequestEnd, OnRequestEnd) |
| 72 IPC_MESSAGE_HANDLER(AutomationMsg_DownloadRequestInHost, | 70 IPC_MESSAGE_HANDLER(AutomationMsg_DownloadRequestInHost, |
| 73 OnDownloadRequestInHost) | 71 OnDownloadRequestInHost) |
| 74 IPC_MESSAGE_HANDLER(AutomationMsg_SetCookieAsync, OnSetCookieAsync) | |
| 75 IPC_MESSAGE_HANDLER(AutomationMsg_AttachExternalTab, OnAttachExternalTab) | 72 IPC_MESSAGE_HANDLER(AutomationMsg_AttachExternalTab, OnAttachExternalTab) |
| 76 IPC_MESSAGE_HANDLER(AutomationMsg_RequestGoToHistoryEntryOffset, | 73 IPC_MESSAGE_HANDLER(AutomationMsg_RequestGoToHistoryEntryOffset, |
| 77 OnGoToHistoryEntryOffset) | 74 OnGoToHistoryEntryOffset) |
| 78 IPC_MESSAGE_HANDLER(AutomationMsg_GetCookiesFromHost, OnGetCookiesFromHost) | |
| 79 IPC_MESSAGE_HANDLER(AutomationMsg_CloseExternalTab, OnCloseTab) | 75 IPC_MESSAGE_HANDLER(AutomationMsg_CloseExternalTab, OnCloseTab) |
| 80 IPC_MESSAGE_UNHANDLED(handled = false) | 76 IPC_MESSAGE_UNHANDLED(handled = false) |
| 81 IPC_END_MESSAGE_MAP() | 77 IPC_END_MESSAGE_MAP() |
| 82 | 78 |
| 83 return handled; | 79 return handled; |
| 84 } | 80 } |
| OLD | NEW |