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