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.
5 // Multiply-included file, no traditional include guard.
9 #include "content/public/common/common_param_traits.h"
10 #include "ipc/ipc_message_macros.h"
11 #include "third_party/skia/include/core/SkBitmap.h"
13 #define IPC_MESSAGE_START ShellMsgStart
15 // Sets the current working directory to use for layout tests.
16 IPC_MESSAGE_ROUTED1(ShellViewMsg_SetCurrentWorkingDirectory
,
17 FilePath
/* current_working_directory */)
19 // Tells the render view to capture a text dump of the page. The render view
20 // responds with a ShellViewHostMsg_TextDump.
21 IPC_MESSAGE_ROUTED3(ShellViewMsg_CaptureTextDump
,
26 // Tells the render view to capture an image of the page. The render view
27 // responds with a ShellViewHostMsg_ImageDump.
28 IPC_MESSAGE_ROUTED1(ShellViewMsg_CaptureImageDump
,
29 std::string
/* expected pixel hash */)
31 // Tells the renderer to reset all test runners.
32 IPC_MESSAGE_CONTROL0(ShellViewMsg_ResetAll
)
34 // Sets the path to the WebKit checkout.
35 IPC_MESSAGE_CONTROL1(ShellViewMsg_SetWebKitSourceDir
,
36 FilePath
/* webkit source dir */)
38 // Send a text dump of the WebContents to the render host.
39 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump
,
40 std::string
/* dump */)
42 // Send an image dump of the WebContents to the render host.
43 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_ImageDump
,
44 std::string
/* actual pixel hash */,
47 // The main frame of the render view finished loading.
48 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DidFinishLoad
)
50 // Print a message from a layout test runner.
51 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_PrintMessage
,
52 std::string
/* message */)
54 // Read a file and returns its contents.
55 IPC_SYNC_MESSAGE_ROUTED1_1(ShellViewHostMsg_ReadFileToString
,
56 FilePath
/* local path */,
57 std::string
/* contents */)
59 // The following messages correspond to methods of the testRunner.
60 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_NotifyDone
)
61 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpAsText
)
62 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpChildFramesAsText
)
63 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_SetPrinting
)
65 ShellViewHostMsg_SetShouldStayOnPageAfterHandlingBeforeUnload
,
66 bool /* should_stay_on_page */)
67 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_WaitUntilDone
)
68 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_OverridePreferences
,
69 webkit_glue::WebPreferences
/* preferences */)
70 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_CanOpenWindows
)
71 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_ShowWebInspector
)
72 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_CloseWebInspector
)
73 IPC_SYNC_MESSAGE_ROUTED1_1(ShellViewHostMsg_RegisterIsolatedFileSystem
,
74 std::vector
<FilePath
> /* absolute_filenames */,
75 std::string
/* filesystem_id */)
77 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_NotImplemented
,
78 std::string
/* object_name */,
79 std::string
/* property_name */)