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

Unified Diff: chrome/common/print_messages.h

Issue 10168013: [Print Preview] Modified PrepareFrameAndViewPrint class to call the new printBegin function to supp… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 8 years, 7 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 | « no previous file | chrome/common/print_messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/print_messages.h
diff --git a/chrome/common/print_messages.h b/chrome/common/print_messages.h
index 0b14260e2cc37f01ac1f650bef6d620b50be79af..4dcaa803dcd39135eb8bd48af3bf789078a823e6 100644
--- a/chrome/common/print_messages.h
+++ b/chrome/common/print_messages.h
@@ -13,6 +13,7 @@
#include "ipc/ipc_message_macros.h"
#include "printing/page_size_margins.h"
#include "printing/print_job_constants.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebPrintScalingOption.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/rect.h"
@@ -41,7 +42,7 @@ struct PrintMsg_Print_Params {
std::string preview_ui_addr;
int preview_request_id;
bool is_first_request;
- bool fit_to_paper_size;
+ WebKit::WebPrintScalingOption print_scaling_option;
bool print_to_pdf;
bool display_header_footer;
string16 date;
@@ -65,6 +66,7 @@ struct PrintMsg_PrintPages_Params {
#define IPC_MESSAGE_START PrintMsgStart
IPC_ENUM_TRAITS(printing::MarginType)
+IPC_ENUM_TRAITS(WebKit::WebPrintScalingOption)
// Parameters for a render request.
IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params)
@@ -116,6 +118,9 @@ IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params)
// True if this is the first preview request.
IPC_STRUCT_TRAITS_MEMBER(is_first_request)
+ // Specifies the page scaling option for preview printing.
+ IPC_STRUCT_TRAITS_MEMBER(print_scaling_option)
+
// True if print to pdf is requested.
IPC_STRUCT_TRAITS_MEMBER(print_to_pdf)
« no previous file with comments | « no previous file | chrome/common/print_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698