| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Multiply-included file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "content/public/common/common_param_traits.h" |
| 8 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
| 10 #include "third_party/skia/include/core/SkBitmap.h" |
| 9 | 11 |
| 10 #define IPC_MESSAGE_START ShellMsgStart | 12 #define IPC_MESSAGE_START ShellMsgStart |
| 11 | 13 |
| 12 // Tells the render view to capture a text dump of the page. The render view | 14 // Tells the render view to capture a text dump of the page. The render view |
| 13 // responds with a ShellViewHostMsg_TextDump. | 15 // responds with a ShellViewHostMsg_TextDump. |
| 14 IPC_MESSAGE_ROUTED3(ShellViewMsg_CaptureTextDump, | 16 IPC_MESSAGE_ROUTED3(ShellViewMsg_CaptureTextDump, |
| 15 bool /* as_text */, | 17 bool /* as_text */, |
| 16 bool /* printing */, | 18 bool /* printing */, |
| 17 bool /* recursive */) | 19 bool /* recursive */) |
| 18 | 20 |
| 21 // Tells the render view to capture an image of the page. The render view |
| 22 // responds with a ShelLViewHostMsg_ImageDump. |
| 23 IPC_MESSAGE_ROUTED0(ShellViewMsg_CaptureImageDump) |
| 24 |
| 19 // Send a text dump of the WebContents to the render host. | 25 // Send a text dump of the WebContents to the render host. |
| 20 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump, | 26 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump, |
| 21 std::string /* dump */) | 27 std::string /* dump */) |
| 22 | 28 |
| 29 // Send an image dump of the WebContents to the render host. |
| 30 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_ImageDump, |
| 31 SkBitmap /* image */) |
| 32 |
| 23 // The main frame of the render view finished loading. | 33 // The main frame of the render view finished loading. |
| 24 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DidFinishLoad) | 34 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DidFinishLoad) |
| 25 | 35 |
| 26 // The following messages correspond to methods of the layoutTestController. | 36 // The following messages correspond to methods of the layoutTestController. |
| 27 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_NotifyDone) | 37 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_NotifyDone) |
| 28 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpAsText) | 38 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpAsText) |
| 29 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpChildFramesAsText) | 39 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpChildFramesAsText) |
| 30 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_SetPrinting) | 40 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_SetPrinting) |
| 31 IPC_MESSAGE_ROUTED1( | 41 IPC_MESSAGE_ROUTED1( |
| 32 ShellViewHostMsg_SetShouldStayOnPageAfterHandlingBeforeUnload, | 42 ShellViewHostMsg_SetShouldStayOnPageAfterHandlingBeforeUnload, |
| 33 bool /* should_stay_on_page */) | 43 bool /* should_stay_on_page */) |
| 34 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_WaitUntilDone) | 44 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_WaitUntilDone) |
| OLD | NEW |