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

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

Issue 11245004: [content shell] link against the TestRunner library (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/DEPS ('k') | content/shell/shell_render_process_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7
8 #include "content/public/common/common_param_traits.h" 8 #include "content/public/common/common_param_traits.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
11 11
12 #define IPC_MESSAGE_START ShellMsgStart 12 #define IPC_MESSAGE_START ShellMsgStart
13 13
14 // Tells the render view to capture a text dump of the page. The render view 14 // Tells the render view to capture a text dump of the page. The render view
15 // responds with a ShellViewHostMsg_TextDump. 15 // responds with a ShellViewHostMsg_TextDump.
16 IPC_MESSAGE_ROUTED3(ShellViewMsg_CaptureTextDump, 16 IPC_MESSAGE_ROUTED3(ShellViewMsg_CaptureTextDump,
17 bool /* as_text */, 17 bool /* as_text */,
18 bool /* printing */, 18 bool /* printing */,
19 bool /* recursive */) 19 bool /* recursive */)
20 20
21 // Tells the render view to capture an image of the page. The render view 21 // Tells the render view to capture an image of the page. The render view
22 // responds with a ShellViewHostMsg_ImageDump. 22 // responds with a ShellViewHostMsg_ImageDump.
23 IPC_MESSAGE_ROUTED1(ShellViewMsg_CaptureImageDump, 23 IPC_MESSAGE_ROUTED1(ShellViewMsg_CaptureImageDump,
24 std::string /* expected pixel hash */) 24 std::string /* expected pixel hash */)
25 25
26 // Tells the render view that it should register itself as main window for the
27 // layout test.
28 IPC_MESSAGE_ROUTED0(ShellViewMsg_SetIsMainWindow)
29
30 // Tells the renderer to reset all test runners.
31 IPC_MESSAGE_CONTROL0(ShellViewMsg_ResetAll)
32
26 // Send a text dump of the WebContents to the render host. 33 // Send a text dump of the WebContents to the render host.
27 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump, 34 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump,
28 std::string /* dump */) 35 std::string /* dump */)
29 36
30 // Send an image dump of the WebContents to the render host. 37 // Send an image dump of the WebContents to the render host.
31 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_ImageDump, 38 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_ImageDump,
32 std::string /* actual pixel hash */, 39 std::string /* actual pixel hash */,
33 SkBitmap /* image */) 40 SkBitmap /* image */)
34 41
35 // The main frame of the render view finished loading. 42 // The main frame of the render view finished loading.
36 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DidFinishLoad) 43 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DidFinishLoad)
37 44
45 // Print a message from a layout test runner.
46 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_PrintMessage,
47 std::string /* message */)
48
38 // The following messages correspond to methods of the testRunner. 49 // The following messages correspond to methods of the testRunner.
39 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_NotifyDone) 50 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_NotifyDone)
40 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpAsText) 51 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpAsText)
41 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpChildFramesAsText) 52 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpChildFramesAsText)
42 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_SetPrinting) 53 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_SetPrinting)
43 IPC_MESSAGE_ROUTED1( 54 IPC_MESSAGE_ROUTED1(
44 ShellViewHostMsg_SetShouldStayOnPageAfterHandlingBeforeUnload, 55 ShellViewHostMsg_SetShouldStayOnPageAfterHandlingBeforeUnload,
45 bool /* should_stay_on_page */) 56 bool /* should_stay_on_page */)
46 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_WaitUntilDone) 57 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_WaitUntilDone)
47 58
48 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_NotImplemented, 59 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_NotImplemented,
49 std::string /* object_name */, 60 std::string /* object_name */,
50 std::string /* property_name */) 61 std::string /* property_name */)
OLDNEW
« no previous file with comments | « content/shell/DEPS ('k') | content/shell/shell_render_process_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698