OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 // Multiply-included file, no traditional include guard. | |
6 #include <string> | |
7 #include <vector> | |
8 | |
9 #include "content/public/common/common_param_traits.h" | |
10 #include "content/shell/shell_test_configuration.h" | |
11 #include "ipc/ipc_message_macros.h" | |
12 #include "ipc/ipc_platform_file.h" | |
13 #include "third_party/skia/include/core/SkBitmap.h" | |
14 | |
15 #define IPC_MESSAGE_START ShellMsgStart | |
16 | |
17 IPC_STRUCT_TRAITS_BEGIN(content::ShellTestConfiguration) | |
18 IPC_STRUCT_TRAITS_MEMBER(current_working_directory) | |
19 IPC_STRUCT_TRAITS_MEMBER(temp_path) | |
20 IPC_STRUCT_TRAITS_MEMBER(test_url) | |
21 IPC_STRUCT_TRAITS_MEMBER(enable_pixel_dumping) | |
22 IPC_STRUCT_TRAITS_MEMBER(layout_test_timeout) | |
23 IPC_STRUCT_TRAITS_MEMBER(allow_external_pages) | |
24 IPC_STRUCT_TRAITS_MEMBER(expected_pixel_hash) | |
25 IPC_STRUCT_TRAITS_END() | |
26 | |
27 // Tells the renderer to reset all test runners. | |
28 IPC_MESSAGE_ROUTED0(ShellViewMsg_Reset) | |
29 | |
30 // Sets the path to the WebKit checkout. | |
31 IPC_MESSAGE_CONTROL1(ShellViewMsg_SetWebKitSourceDir, | |
32 base::FilePath /* webkit source dir */) | |
33 | |
34 // Loads the hyphen dictionary used for layout tests. | |
35 IPC_MESSAGE_CONTROL1(ShellViewMsg_LoadHyphenDictionary, | |
36 IPC::PlatformFileForTransit /* dict_file */) | |
37 | |
38 // Sets the initial configuration to use for layout tests. | |
39 IPC_MESSAGE_ROUTED1(ShellViewMsg_SetTestConfiguration, | |
40 content::ShellTestConfiguration) | |
41 | |
42 // Tells the main window that a secondary window in a different process invoked | |
43 // notifyDone(). | |
44 IPC_MESSAGE_ROUTED0(ShellViewMsg_NotifyDone) | |
45 | |
46 // Pushes a snapshot of the current session history from the browser process. | |
47 // This includes only information about those RenderViews that are in the | |
48 // same process as the main window of the layout test and that are the current | |
49 // active RenderView of their WebContents. | |
50 IPC_MESSAGE_ROUTED3( | |
51 ShellViewMsg_SessionHistory, | |
52 std::vector<int> /* routing_ids */, | |
53 std::vector<std::vector<std::string> > /* session_histories */, | |
54 std::vector<unsigned> /* current_entry_indexes */) | |
55 | |
56 // Send a text dump of the WebContents to the render host. | |
57 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump, | |
58 std::string /* dump */) | |
59 | |
60 // Send an image dump of the WebContents to the render host. | |
61 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_ImageDump, | |
62 std::string /* actual pixel hash */, | |
63 SkBitmap /* image */) | |
64 | |
65 // Send an audio dump to the render host. | |
66 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_AudioDump, | |
67 std::vector<unsigned char> /* audio data */) | |
68 | |
69 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TestFinished, | |
70 bool /* did_timeout */) | |
71 | |
72 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_ResetDone) | |
73 | |
74 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_TestFinishedInSecondaryWindow) | |
75 | |
76 // WebTestDelegate related. | |
77 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_OverridePreferences, | |
78 WebPreferences /* preferences */) | |
79 IPC_SYNC_MESSAGE_ROUTED1_1(ShellViewHostMsg_RegisterIsolatedFileSystem, | |
80 std::vector<base::FilePath> /* absolute_filenames */, | |
81 std::string /* filesystem_id */) | |
82 IPC_SYNC_MESSAGE_ROUTED1_1(ShellViewHostMsg_ReadFileToString, | |
83 base::FilePath /* local path */, | |
84 std::string /* contents */) | |
85 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_PrintMessage, | |
86 std::string /* message */) | |
87 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_ShowDevTools) | |
88 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_CloseDevTools) | |
89 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_GoToOffset, | |
90 int /* offset */) | |
91 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_Reload) | |
92 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_LoadURLForFrame, | |
93 GURL /* url */, | |
94 std::string /* frame_name */) | |
95 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_ClearAllDatabases) | |
96 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetDatabaseQuota, | |
97 int /* quota */) | |
98 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_AcceptAllCookies, | |
99 bool /* accept */) | |
100 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetDeviceScaleFactor, | |
101 float /* factor */) | |
102 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_CaptureSessionHistory) | |
103 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_CloseRemainingWindows) | |
OLD | NEW |