diff options
author | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-10 23:17:32 +0000 |
---|---|---|
committer | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-10 23:17:32 +0000 |
commit | 732b813ab60ebaad3cd2a60e19154e2c29b5a144 (patch) | |
tree | 9ed80f722ccf2e478ec771614193e88f9126e419 /chrome/renderer/mock_printer.h | |
parent | 66122f44aec56f163aed88a673f062f035619bc2 (diff) | |
download | chromium_src-732b813ab60ebaad3cd2a60e19154e2c29b5a144.zip chromium_src-732b813ab60ebaad3cd2a60e19154e2c29b5a144.tar.gz chromium_src-732b813ab60ebaad3cd2a60e19154e2c29b5a144.tar.bz2 |
PrintPreview: Honor the print media page size and margin values.
BUG=104210, 100819
TEST=Added PrintWebViewHelperPreviewTests.
Review URL: http://codereview.chromium.org/8585017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117102 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/mock_printer.h')
-rw-r--r-- | chrome/renderer/mock_printer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/renderer/mock_printer.h b/chrome/renderer/mock_printer.h index c73ac87..75e151f 100644 --- a/chrome/renderer/mock_printer.h +++ b/chrome/renderer/mock_printer.h @@ -14,6 +14,7 @@ #include "base/memory/scoped_ptr.h" #include "base/string16.h" #include "printing/image.h" +#include "ui/gfx/rect.h" #include "ui/gfx/size.h" struct PrintMsg_Print_Params; @@ -78,7 +79,8 @@ class MockPrinter { bool has_selection, PrintMsg_PrintPages_Params* settings); void UpdateSettings(int cookie, PrintMsg_PrintPages_Params* params, - const std::vector<int>& page_range_array); + const std::vector<int>& page_range_array, + int margins_type); void SetPrintedPagesCount(int cookie, int number_pages); void PrintPage(const PrintHostMsg_DidPrintPage_Params& params); @@ -110,6 +112,7 @@ class MockPrinter { gfx::Size content_size_; int margin_left_; int margin_top_; + gfx::Rect printable_area_; // Specifies dots per inch. double dpi_; @@ -135,6 +138,7 @@ class MockPrinter { // Used only in the preview sequence. bool is_first_request_; + bool print_to_pdf_; int preview_request_id_; // Used for displaying headers and footers. |