summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_view_manager.h
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-27 19:16:23 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-27 19:16:23 +0000
commit8980e0d9463d59c0cc7e0cb74b83913f423090a4 (patch)
treef0107fc21e54f6f662617b42cd319a2b27fea3ba /chrome/browser/printing/print_view_manager.h
parentafe3634a3f0aa92fb0c81166a6123d1c9cb4b4ac (diff)
downloadchromium_src-8980e0d9463d59c0cc7e0cb74b83913f423090a4.zip
chromium_src-8980e0d9463d59c0cc7e0cb74b83913f423090a4.tar.gz
chromium_src-8980e0d9463d59c0cc7e0cb74b83913f423090a4.tar.bz2
Print Preview: Print the right WebFrame/WebNode.
BUG=77840 TEST=see bug. Review URL: http://codereview.chromium.org/7012030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87062 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 729f8c6..3cad0f8 100644
--- a/chrome/browser/printing/print_view_manager.h
+++ b/chrome/browser/printing/print_view_manager.h
@@ -41,6 +41,12 @@ class PrintViewManager : public NotificationObserver,
// this function. Returns false if printing is impossible at the moment.
bool PrintNow();
+ // Initiate print preview of the current document by first notifying the
+ // renderer. Since this happens asynchronous, the print preview tab creation
+ // will not be completed on the return of this function. Returns false if
+ // print preview is impossible at the moment.
+ bool PrintPreviewNow();
+
// PrintedPagesSource implementation.
virtual string16 RenderSourceName();
virtual GURL RenderSourceUrl();