From 8227045e458705c27ca116a02fd7b9b9a75237ae Mon Sep 17 00:00:00 2001 From: "sverrir@google.com" Date: Fri, 19 Jun 2009 15:58:01 +0000 Subject: Add Print Selection support to Chrome. This change is fairly involved since this means that the printing is done async instead of the fully synchronous mode the normal full page printing is. This means we create an in memory copy of the selected text for printing. This is the next step to move to fully async printing with print frame support. This change also removes the print on demand functionality that was no longer used. BUG=http://crbug.com/1682 TEST=The print dialog on Windows now contains an option to print selection only. Test that with various pages and various selections. Review URL: http://codereview.chromium.org/125082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18815 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/render_messages_internal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/common') diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 9baf4c0..a5a89c4 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -100,6 +100,11 @@ IPC_BEGIN_MESSAGES(View) // requested pages and switch back the CSS to display media type. IPC_MESSAGE_ROUTED0(ViewMsg_PrintPages) + // Tells the render view that printing is done so it can clean up. + IPC_MESSAGE_ROUTED2(ViewMsg_PrintingDone, + int /* document_cookie */, + bool /* success */) + // Tells the render view that a ViewHostMsg_ScrollRect message was processed. // This signals the render view that it can send another ScrollRect message. IPC_MESSAGE_ROUTED0(ViewMsg_ScrollRect_ACK) -- cgit v1.1