diff options
author | arthurhsu@chromium.org <arthurhsu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-22 05:31:00 +0000 |
---|---|---|
committer | arthurhsu@chromium.org <arthurhsu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-22 05:31:00 +0000 |
commit | c7a90019bf7054145b11d2577b851cf2779d3d79 (patch) | |
tree | 18ed5d8349b2e3d37767fd84e5f23fd162b3ede6 /chrome/renderer/print_web_view_helper.h | |
parent | 19cc5b468085104e660cc977987e1b78ad99db13 (diff) | |
download | chromium_src-c7a90019bf7054145b11d2577b851cf2779d3d79.zip chromium_src-c7a90019bf7054145b11d2577b851cf2779d3d79.tar.gz chromium_src-c7a90019bf7054145b11d2577b851cf2779d3d79.tar.bz2 |
Fix print preview workflow to reflect settings of selected printer.
BUG=95110
TEST=none
Review URL: http://codereview.chromium.org/7831041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102242 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 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h index 82d5e03..b1244f3 100644 --- a/chrome/renderer/print_web_view_helper.h +++ b/chrome/renderer/print_web_view_helper.h @@ -172,13 +172,13 @@ class PrintWebViewHelper : public RenderViewObserver, // Print Settings ----------------------------------------------------------- // Initialize print page settings with default settings. - bool InitPrintSettings(WebKit::WebFrame* frame, - WebKit::WebNode* node, - bool is_preview); + // Used only for native printing workflow. + bool InitPrintSettings(WebKit::WebFrame* frame); // Initialize print page settings with default settings and prepare the frame // for print. A new PrepareFrameAndViewForPrint is created to fulfill the // request and is filled into the |prepare| argument. + // Used only for native printing workflow. bool InitPrintSettingsAndPrepareFrame( WebKit::WebFrame* frame, WebKit::WebNode* node, @@ -334,6 +334,7 @@ class PrintWebViewHelper : public RenderViewObserver, PREVIEW_ERROR_MAC_DRAFT_METAFILE_INIT_FAILED, PREVIEW_ERROR_PAGE_RENDERED_WITHOUT_METAFILE, PREVIEW_ERROR_UPDATING_PRINT_SETTINGS, + PREVIEW_ERROR_INVALID_PRINTER_SETTINGS, PREVIEW_ERROR_LAST_ENUM // Always last. }; @@ -390,6 +391,7 @@ class PrintWebViewHelper : public RenderViewObserver, printing::PreviewMetafile* metafile() const; const PrintMsg_Print_Params& print_params() const; const gfx::Size& GetPrintCanvasSize() const; + int last_error() const; private: enum State { |