Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: content/shell/common/shell_messages.h

Issue 1589643003: OOPIF support for testRunner.dumpAsText and similar layout dumps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ready for review. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "components/test_runner/layout_dump_flags.h"
9 #include "content/public/common/common_param_traits.h" 10 #include "content/public/common/common_param_traits.h"
10 #include "content/public/common/page_state.h" 11 #include "content/public/common/page_state.h"
11 #include "content/shell/common/leak_detection_result.h" 12 #include "content/shell/common/leak_detection_result.h"
12 #include "content/shell/common/shell_test_configuration.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 18
18 #define IPC_MESSAGE_START ShellMsgStart 19 #define IPC_MESSAGE_START ShellMsgStart
19 20
20 IPC_STRUCT_TRAITS_BEGIN(content::ShellTestConfiguration) 21 IPC_STRUCT_TRAITS_BEGIN(content::ShellTestConfiguration)
21 IPC_STRUCT_TRAITS_MEMBER(current_working_directory) 22 IPC_STRUCT_TRAITS_MEMBER(current_working_directory)
22 IPC_STRUCT_TRAITS_MEMBER(temp_path) 23 IPC_STRUCT_TRAITS_MEMBER(temp_path)
23 IPC_STRUCT_TRAITS_MEMBER(test_url) 24 IPC_STRUCT_TRAITS_MEMBER(test_url)
24 IPC_STRUCT_TRAITS_MEMBER(enable_pixel_dumping) 25 IPC_STRUCT_TRAITS_MEMBER(enable_pixel_dumping)
25 IPC_STRUCT_TRAITS_MEMBER(allow_external_pages) 26 IPC_STRUCT_TRAITS_MEMBER(allow_external_pages)
26 IPC_STRUCT_TRAITS_MEMBER(expected_pixel_hash) 27 IPC_STRUCT_TRAITS_MEMBER(expected_pixel_hash)
27 IPC_STRUCT_TRAITS_MEMBER(initial_size) 28 IPC_STRUCT_TRAITS_MEMBER(initial_size)
28 IPC_STRUCT_TRAITS_END() 29 IPC_STRUCT_TRAITS_END()
29 30
31 IPC_STRUCT_TRAITS_BEGIN(test_runner::LayoutDumpFlags)
32 IPC_STRUCT_TRAITS_MEMBER(dump_as_text)
33 IPC_STRUCT_TRAITS_MEMBER(dump_as_markup)
34 IPC_STRUCT_TRAITS_MEMBER(dump_scroll_positions)
35 IPC_STRUCT_TRAITS_MEMBER(dump_as_printed)
36 IPC_STRUCT_TRAITS_MEMBER(dump_child_frames)
37 IPC_STRUCT_TRAITS_MEMBER(dump_line_box_trees)
38 IPC_STRUCT_TRAITS_MEMBER(debug_render_tree)
39 IPC_STRUCT_TRAITS_END()
40
30 // Tells the renderer to reset all test runners. 41 // Tells the renderer to reset all test runners.
31 IPC_MESSAGE_ROUTED0(ShellViewMsg_Reset) 42 IPC_MESSAGE_ROUTED0(ShellViewMsg_Reset)
32 43
33 // Sets the path to the WebKit checkout. 44 // Sets the path to the WebKit checkout.
34 IPC_MESSAGE_CONTROL1(ShellViewMsg_SetWebKitSourceDir, 45 IPC_MESSAGE_CONTROL1(ShellViewMsg_SetWebKitSourceDir,
35 base::FilePath /* webkit source dir */) 46 base::FilePath /* webkit source dir */)
36 47
37 // Sets the initial configuration to use for layout tests. 48 // Sets the initial configuration to use for layout tests.
38 IPC_MESSAGE_ROUTED1(ShellViewMsg_SetTestConfiguration, 49 IPC_MESSAGE_ROUTED1(ShellViewMsg_SetTestConfiguration,
39 content::ShellTestConfiguration) 50 content::ShellTestConfiguration)
40 51
41 // Tells the main window that a secondary window in a different process invoked 52 // Tells the main window that a secondary window in a different process invoked
42 // notifyDone(). 53 // notifyDone().
43 IPC_MESSAGE_ROUTED0(ShellViewMsg_NotifyDone) 54 IPC_MESSAGE_ROUTED0(ShellViewMsg_NotifyDone)
44 55
45 // Pushes a snapshot of the current session history from the browser process. 56 // Pushes a snapshot of the current session history from the browser process.
46 // This includes only information about those RenderViews that are in the 57 // This includes only information about those RenderViews that are in the
47 // same process as the main window of the layout test and that are the current 58 // same process as the main window of the layout test and that are the current
48 // active RenderView of their WebContents. 59 // active RenderView of their WebContents.
49 IPC_MESSAGE_ROUTED3( 60 IPC_MESSAGE_ROUTED3(
50 ShellViewMsg_SessionHistory, 61 ShellViewMsg_SessionHistory,
51 std::vector<int> /* routing_ids */, 62 std::vector<int> /* routing_ids */,
52 std::vector<std::vector<content::PageState> > /* session_histories */, 63 std::vector<std::vector<content::PageState> > /* session_histories */,
53 std::vector<unsigned> /* current_entry_indexes */) 64 std::vector<unsigned> /* current_entry_indexes */)
54 65
55 IPC_MESSAGE_ROUTED0(ShellViewMsg_TryLeakDetection) 66 IPC_MESSAGE_ROUTED0(ShellViewMsg_TryLeakDetection)
56 67
68 // Asks a frame to dump its contents into a string and send them back over IPC.
69 IPC_MESSAGE_ROUTED1(ShellViewMsg_LayoutDumpRequest,
70 test_runner::LayoutDumpFlags)
71
72 // Notifies BlinkTestRunner that the layout dump has completed
73 // (and that it can proceed with finishing up the test).
74 IPC_MESSAGE_ROUTED1(ShellViewMsg_LayoutDumpCompleted,
75 std::string /* completed/stitched layout dump */)
76
57 // Send a text dump of the WebContents to the render host. 77 // Send a text dump of the WebContents to the render host.
58 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump, 78 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump,
59 std::string /* dump */) 79 std::string /* dump */)
60 80
81 // Asks the browser process to perform a layout dump (potentially spanning
82 // multiple cross-process frames) using the given flags. This triggers
83 // multiple ShellViewMsg_LayoutDumpRequest / ShellViewHostMsg_LayoutDumpResponse
84 // messages and ends with sending of ShellViewMsg_LayoutDumpCompleted.
85 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_InitiateLayoutDump,
86 test_runner::LayoutDumpFlags)
87
88 // Sends a layout dump of a frame (response to ShellViewMsg_LayoutDumpRequest).
89 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_LayoutDumpResponse, std::string /* dump */)
90
61 // Send an image dump of the WebContents to the render host. 91 // Send an image dump of the WebContents to the render host.
62 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_ImageDump, 92 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_ImageDump,
63 std::string /* actual pixel hash */, 93 std::string /* actual pixel hash */,
64 SkBitmap /* image */) 94 SkBitmap /* image */)
65 95
66 // Send an audio dump to the render host. 96 // Send an audio dump to the render host.
67 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_AudioDump, 97 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_AudioDump,
68 std::vector<unsigned char> /* audio data */) 98 std::vector<unsigned char> /* audio data */)
69 99
70 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_TestFinished) 100 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_TestFinished)
(...skipping 30 matching lines...) Expand all
101 content::LeakDetectionResult /* result */) 131 content::LeakDetectionResult /* result */)
102 132
103 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetBluetoothManualChooser, 133 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetBluetoothManualChooser,
104 bool /* enable */) 134 bool /* enable */)
105 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_GetBluetoothManualChooserEvents) 135 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_GetBluetoothManualChooserEvents)
106 IPC_MESSAGE_ROUTED1(ShellViewMsg_ReplyBluetoothManualChooserEvents, 136 IPC_MESSAGE_ROUTED1(ShellViewMsg_ReplyBluetoothManualChooserEvents,
107 std::vector<std::string> /* events */) 137 std::vector<std::string> /* events */)
108 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_SendBluetoothManualChooserEvent, 138 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_SendBluetoothManualChooserEvent,
109 std::string /* event */, 139 std::string /* event */,
110 std::string /* argument */) 140 std::string /* argument */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698