diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-15 07:34:00 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-15 07:34:00 +0000 |
commit | 80fec4fe34a965a74e5c37dbfc475b67c7ab36b4 (patch) | |
tree | f3fc5ae75e170414f8cab576c99552195273bfae /chrome/renderer/print_web_view_helper.h | |
parent | dbe865128851333df69695e2c57467804ab437be (diff) | |
download | chromium_src-80fec4fe34a965a74e5c37dbfc475b67c7ab36b4.zip chromium_src-80fec4fe34a965a74e5c37dbfc475b67c7ab36b4.tar.gz chromium_src-80fec4fe34a965a74e5c37dbfc475b67c7ab36b4.tar.bz2 |
Printing: Handle more error conditions and remove more cruft.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/9703013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126860 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/print_web_view_helper.h')
-rw-r--r-- | chrome/renderer/print_web_view_helper.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h index c90689b..86ba8d3 100644 --- a/chrome/renderer/print_web_view_helper.h +++ b/chrome/renderer/print_web_view_helper.h @@ -109,6 +109,7 @@ class PrintWebViewHelper enum PrintingResult { OK, + FAIL_PRINT_INIT, FAIL_PRINT, FAIL_PREVIEW, }; @@ -193,7 +194,7 @@ class PrintWebViewHelper // Initialize print page settings with default settings. // Used only for native printing workflow. - bool InitPrintSettings(WebKit::WebFrame* frame, const WebKit::WebNode& node); + bool InitPrintSettings(); // Initialize print page settings with default settings and prepare the frame // for print. A new PrepareFrameAndViewForPrint is created to fulfill the @@ -338,6 +339,7 @@ class PrintWebViewHelper // Returns true if print preview should continue, false on failure. bool PreviewPageRendered(int page_number, printing::Metafile* metafile); + // WebView used only to print the selection. WebKit::WebView* print_web_view_; scoped_ptr<PrintMsg_PrintPages_Params> print_pages_params_; |