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

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: Fix win and mac issues Created 8 years, 12 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
Index: chrome/renderer/mock_printer.h
diff --git a/chrome/renderer/mock_printer.h b/chrome/renderer/mock_printer.h
index c73ac878dc69e367efbdd90cf7e6b2be0ceb5cd0..5093913d9e6ff52cf77404d6bfdf1dd2247d6fee 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;
@@ -110,6 +111,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 +137,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.

Powered by Google App Engine
This is Rietveld 408576698