Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9018)

Unified Diff: chrome/renderer/mock_printer.h

Issue 8585017: PrintPreview: Honor the print media page size and margin values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added one more test Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/chrome_mock_render_thread.cc ('k') | chrome/renderer/mock_printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/mock_printer.h
diff --git a/chrome/renderer/mock_printer.h b/chrome/renderer/mock_printer.h
index c73ac878dc69e367efbdd90cf7e6b2be0ceb5cd0..75e151f2dbeac63b0febcd1a8ddc2974e51c0fb0 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.
« no previous file with comments | « chrome/renderer/chrome_mock_render_thread.cc ('k') | chrome/renderer/mock_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698