summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_view_manager.h
diff options
context:
space:
mode:
authorsverrir@google.com <sverrir@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-19 15:58:01 +0000
committersverrir@google.com <sverrir@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-19 15:58:01 +0000
commit8227045e458705c27ca116a02fd7b9b9a75237ae (patch)
tree2e694fc454663eedc62b27e99aeef67d476a09ab /chrome/browser/printing/print_view_manager.h
parentb0fd9c1c6b3ccf0b436d38d181ab26100b3135a6 (diff)
downloadchromium_src-8227045e458705c27ca116a02fd7b9b9a75237ae.zip
chromium_src-8227045e458705c27ca116a02fd7b9b9a75237ae.tar.gz
chromium_src-8227045e458705c27ca116a02fd7b9b9a75237ae.tar.bz2
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
Diffstat (limited to 'chrome/browser/printing/print_view_manager.h')
-rw-r--r--chrome/browser/printing/print_view_manager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/printing/print_view_manager.h b/chrome/browser/printing/print_view_manager.h
index 2562885..cd95f06 100644
--- a/chrome/browser/printing/print_view_manager.h
+++ b/chrome/browser/printing/print_view_manager.h
@@ -77,6 +77,9 @@ class PrintViewManager : public NotificationObserver,
// disconnect from it.
void DisconnectFromCurrentPrintJob();
+ // Notify that the printing is done.
+ void PrintingDone(bool success);
+
// Terminates the print job. Noop if no print job has been created. If
// |cancel| is true, cancel it instead of waiting for the job to finish. Will
// call ReleasePrintJob().
@@ -113,6 +116,9 @@ class PrintViewManager : public NotificationObserver,
// called.
bool waiting_to_print_;
+ // Indication of success of the print job.
+ bool printing_succeeded_;
+
// Running an inner message loop inside RenderAllMissingPagesNow(). This means
// we are _blocking_ until all the necessary pages have been rendered or the
// print settings are being loaded.