| 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 "content/public/common/common_param_traits.h" |
| 9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
| 10 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.h" |
| 11 | 11 |
| 12 #define IPC_MESSAGE_START ShellMsgStart | 12 #define IPC_MESSAGE_START ShellMsgStart |
| 13 | 13 |
| 14 // Sets the current working directory to use for layout tests. | 14 // Sets the current working directory to use for layout tests. |
| 15 IPC_MESSAGE_ROUTED1(ShellViewMsg_SetCurrentWorkingDirectory, | 15 IPC_MESSAGE_ROUTED1(ShellViewMsg_SetCurrentWorkingDirectory, |
| 16 FilePath /* current_working_directory */) | 16 FilePath /* current_working_directory */) |
| 17 | 17 |
| 18 // Tells the render view to capture a text dump of the page. The render view | 18 // Tells the render view to capture a text dump of the page. The render view |
| 19 // responds with a ShellViewHostMsg_TextDump. | 19 // responds with a ShellViewHostMsg_TextDump. |
| 20 IPC_MESSAGE_ROUTED3(ShellViewMsg_CaptureTextDump, | 20 IPC_MESSAGE_ROUTED3(ShellViewMsg_CaptureTextDump, |
| 21 bool /* as_text */, | 21 bool /* as_text */, |
| 22 bool /* printing */, | 22 bool /* printing */, |
| 23 bool /* recursive */) | 23 bool /* recursive */) |
| 24 | 24 |
| 25 // Tells the render view to capture an image of the page. The render view | 25 // Tells the render view to capture an image of the page. The render view |
| 26 // responds with a ShellViewHostMsg_ImageDump. | 26 // responds with a ShellViewHostMsg_ImageDump. |
| 27 IPC_MESSAGE_ROUTED1(ShellViewMsg_CaptureImageDump, | 27 IPC_MESSAGE_ROUTED1(ShellViewMsg_CaptureImageDump, |
| 28 std::string /* expected pixel hash */) | 28 std::string /* expected pixel hash */) |
| 29 | 29 |
| 30 // Tells the render view that it should register itself as main window for the | |
| 31 // layout test. | |
| 32 IPC_MESSAGE_ROUTED0(ShellViewMsg_SetIsMainWindow) | |
| 33 | |
| 34 // Tells the renderer to reset all test runners. | 30 // Tells the renderer to reset all test runners. |
| 35 IPC_MESSAGE_CONTROL0(ShellViewMsg_ResetAll) | 31 IPC_MESSAGE_CONTROL0(ShellViewMsg_ResetAll) |
| 36 | 32 |
| 37 // Send a text dump of the WebContents to the render host. | 33 // Send a text dump of the WebContents to the render host. |
| 38 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump, | 34 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump, |
| 39 std::string /* dump */) | 35 std::string /* dump */) |
| 40 | 36 |
| 41 // Send an image dump of the WebContents to the render host. | 37 // Send an image dump of the WebContents to the render host. |
| 42 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_ImageDump, | 38 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_ImageDump, |
| 43 std::string /* actual pixel hash */, | 39 std::string /* actual pixel hash */, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 56 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpChildFramesAsText) | 52 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpChildFramesAsText) |
| 57 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_SetPrinting) | 53 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_SetPrinting) |
| 58 IPC_MESSAGE_ROUTED1( | 54 IPC_MESSAGE_ROUTED1( |
| 59 ShellViewHostMsg_SetShouldStayOnPageAfterHandlingBeforeUnload, | 55 ShellViewHostMsg_SetShouldStayOnPageAfterHandlingBeforeUnload, |
| 60 bool /* should_stay_on_page */) | 56 bool /* should_stay_on_page */) |
| 61 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_WaitUntilDone) | 57 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_WaitUntilDone) |
| 62 | 58 |
| 63 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_NotImplemented, | 59 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_NotImplemented, |
| 64 std::string /* object_name */, | 60 std::string /* object_name */, |
| 65 std::string /* property_name */) | 61 std::string /* property_name */) |
| OLD | NEW |