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

Unified Diff: content/shell/shell_messages.h

Issue 10656044: Add basic support to dump pixel results (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/shell_messages.h
diff --git a/content/shell/shell_messages.h b/content/shell/shell_messages.h
index 50ce12249860960dc8983b47427ac98733ee01a2..3b483aebe33a3aee654248fb9a9c1eb76e06d51d 100644
--- a/content/shell/shell_messages.h
+++ b/content/shell/shell_messages.h
@@ -5,7 +5,9 @@
// Multiply-included file, no traditional include guard.
#include <string>
+#include "content/public/common/common_param_traits.h"
#include "ipc/ipc_message_macros.h"
+#include "third_party/skia/include/core/SkBitmap.h"
#define IPC_MESSAGE_START ShellMsgStart
@@ -16,10 +18,18 @@ IPC_MESSAGE_ROUTED3(ShellViewMsg_CaptureTextDump,
bool /* printing */,
bool /* recursive */)
+// Tells the render view to capture an image of the page. The render view
+// responds with a ShelLViewHostMsg_ImageDump.
jam 2012/06/26 15:03:10 nit ShelL
+IPC_MESSAGE_ROUTED0(ShellViewMsg_CaptureImageDump)
+
// Send a text dump of the WebContents to the render host.
IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump,
std::string /* dump */)
+// Send an image dump of the WebContents to the render host.
+IPC_MESSAGE_ROUTED1(ShellViewHostMsg_ImageDump,
+ SkBitmap /* image */)
+
// The main frame of the render view finished loading.
IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DidFinishLoad)
« content/shell/layout_test_controller_host.cc ('K') | « content/shell/shell_browser_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698