| 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 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "content/public/common/common_param_traits.h" | 10 #include "content/public/common/common_param_traits.h" |
| 11 #include "content/public/common/page_state.h" | 11 #include "content/public/common/page_state.h" |
| 12 #include "content/shell/common/leak_detection_result.h" | 12 #include "content/shell/common/leak_detection_result.h" |
| 13 #include "content/shell/common/shell_test_configuration.h" | 13 #include "content/shell/common/shell_test_configuration.h" |
| 14 #include "ipc/ipc_message_macros.h" | 14 #include "ipc/ipc_message_macros.h" |
| 15 #include "ipc/ipc_platform_file.h" | 15 #include "ipc/ipc_platform_file.h" |
| 16 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
| 17 #include "ui/gfx/ipc/gfx_param_traits.h" | 17 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 18 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" | 18 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" |
| 19 | 19 |
| 20 #define IPC_MESSAGE_START ShellMsgStart | 20 #define IPC_MESSAGE_START ShellMsgStart |
| 21 | 21 |
| 22 IPC_STRUCT_TRAITS_BEGIN(content::ShellTestConfiguration) | |
| 23 IPC_STRUCT_TRAITS_MEMBER(current_working_directory) | |
| 24 IPC_STRUCT_TRAITS_MEMBER(temp_path) | |
| 25 IPC_STRUCT_TRAITS_MEMBER(test_url) | |
| 26 IPC_STRUCT_TRAITS_MEMBER(enable_pixel_dumping) | |
| 27 IPC_STRUCT_TRAITS_MEMBER(allow_external_pages) | |
| 28 IPC_STRUCT_TRAITS_MEMBER(expected_pixel_hash) | |
| 29 IPC_STRUCT_TRAITS_MEMBER(initial_size) | |
| 30 IPC_STRUCT_TRAITS_END() | |
| 31 | |
| 32 // Tells the renderer to reset all test runners. | 22 // Tells the renderer to reset all test runners. |
| 33 IPC_MESSAGE_ROUTED0(ShellViewMsg_Reset) | 23 IPC_MESSAGE_ROUTED0(ShellViewMsg_Reset) |
| 34 | 24 |
| 35 // Sets the path to the WebKit checkout. | 25 // Sets the path to the WebKit checkout. |
| 36 IPC_MESSAGE_CONTROL1(ShellViewMsg_SetWebKitSourceDir, | 26 IPC_MESSAGE_CONTROL1(ShellViewMsg_SetWebKitSourceDir, |
| 37 base::FilePath /* webkit source dir */) | 27 base::FilePath /* webkit source dir */) |
| 38 | 28 |
| 39 // Sets the test config for a layout test that is being started. This message | |
| 40 // is sent only to a renderer that hosts parts of the main test window. | |
| 41 IPC_MESSAGE_ROUTED1(ShellViewMsg_SetTestConfiguration, | |
| 42 content::ShellTestConfiguration) | |
| 43 | |
| 44 // Replicates test config (for an already started test) to a new renderer | |
| 45 // that hosts parts of the main test window. | |
| 46 IPC_MESSAGE_ROUTED1(ShellViewMsg_ReplicateTestConfiguration, | |
| 47 content::ShellTestConfiguration) | |
| 48 | |
| 49 // Sets up a secondary renderer (renderer that doesn't [yet] host parts of the | |
| 50 // main test window) for a layout test. | |
| 51 IPC_MESSAGE_ROUTED0(ShellViewMsg_SetupSecondaryRenderer) | |
| 52 | |
| 53 // Tells the main window that a secondary renderer in a different process asked | 29 // Tells the main window that a secondary renderer in a different process asked |
| 54 // to finish the test. | 30 // to finish the test. |
| 55 IPC_MESSAGE_ROUTED0(ShellViewMsg_TestFinishedInSecondaryRenderer) | 31 IPC_MESSAGE_ROUTED0(ShellViewMsg_TestFinishedInSecondaryRenderer) |
| 56 | 32 |
| 57 // Pushes a snapshot of the current session history from the browser process. | 33 // Pushes a snapshot of the current session history from the browser process. |
| 58 // This includes only information about those RenderViews that are in the | 34 // This includes only information about those RenderViews that are in the |
| 59 // same process as the main window of the layout test and that are the current | 35 // same process as the main window of the layout test and that are the current |
| 60 // active RenderView of their WebContents. | 36 // active RenderView of their WebContents. |
| 61 IPC_MESSAGE_ROUTED3( | 37 IPC_MESSAGE_ROUTED3( |
| 62 ShellViewMsg_SessionHistory, | 38 ShellViewMsg_SessionHistory, |
| 63 std::vector<int> /* routing_ids */, | 39 std::vector<int> /* routing_ids */, |
| 64 std::vector<std::vector<content::PageState> > /* session_histories */, | 40 std::vector<std::vector<content::PageState> > /* session_histories */, |
| 65 std::vector<unsigned> /* current_entry_indexes */) | 41 std::vector<unsigned> /* current_entry_indexes */) |
| 66 | 42 |
| 67 IPC_MESSAGE_ROUTED0(ShellViewMsg_TryLeakDetection) | 43 IPC_MESSAGE_ROUTED0(ShellViewMsg_TryLeakDetection) |
| 68 | 44 |
| 69 // Asks a frame to dump its contents into a string and send them back over IPC. | |
| 70 IPC_MESSAGE_ROUTED0(ShellViewMsg_LayoutDumpRequest) | |
| 71 | |
| 72 // Notifies BlinkTestRunner that the layout dump has completed | 45 // Notifies BlinkTestRunner that the layout dump has completed |
| 73 // (and that it can proceed with finishing up the test). | 46 // (and that it can proceed with finishing up the test). |
| 74 IPC_MESSAGE_ROUTED1(ShellViewMsg_LayoutDumpCompleted, | 47 IPC_MESSAGE_ROUTED1(ShellViewMsg_LayoutDumpCompleted, |
| 75 std::string /* completed/stitched layout dump */) | 48 std::string /* completed/stitched layout dump */) |
| 76 | 49 |
| 77 // Send a text dump of the WebContents to the render host. | 50 // Send a text dump of the WebContents to the render host. |
| 78 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump, | 51 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump, |
| 79 std::string /* dump */) | 52 std::string /* dump */) |
| 80 | 53 |
| 81 // Asks the browser process to perform a layout dump spanning all the | 54 // Asks the browser process to perform a layout dump spanning all the |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 content::LeakDetectionResult /* result */) | 104 content::LeakDetectionResult /* result */) |
| 132 | 105 |
| 133 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetBluetoothManualChooser, | 106 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetBluetoothManualChooser, |
| 134 bool /* enable */) | 107 bool /* enable */) |
| 135 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_GetBluetoothManualChooserEvents) | 108 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_GetBluetoothManualChooserEvents) |
| 136 IPC_MESSAGE_ROUTED1(ShellViewMsg_ReplyBluetoothManualChooserEvents, | 109 IPC_MESSAGE_ROUTED1(ShellViewMsg_ReplyBluetoothManualChooserEvents, |
| 137 std::vector<std::string> /* events */) | 110 std::vector<std::string> /* events */) |
| 138 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_SendBluetoothManualChooserEvent, | 111 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_SendBluetoothManualChooserEvent, |
| 139 std::string /* event */, | 112 std::string /* event */, |
| 140 std::string /* argument */) | 113 std::string /* argument */) |
| OLD | NEW |