summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-16 20:32:14 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-16 20:32:14 +0000
commit7a3439b3d169047c1c07f28a6f9cda341328980b (patch)
tree7589ad8ea788020fdc8e1bd1a1b00d4717bd3a32 /chrome/common
parent5d7e3c449d8c0ec806ef03187983f7c49889a9aa (diff)
downloadchromium_src-7a3439b3d169047c1c07f28a6f9cda341328980b.zip
chromium_src-7a3439b3d169047c1c07f28a6f9cda341328980b.tar.gz
chromium_src-7a3439b3d169047c1c07f28a6f9cda341328980b.tar.bz2
[Print Preview]: Added code to support pdf fit to page functionality.
BUG=85132 TEST=none Review URL: https://chromiumcodereview.appspot.com/10083060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137498 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/print_messages.cc4
-rw-r--r--chrome/common/print_messages.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/chrome/common/print_messages.cc b/chrome/common/print_messages.cc
index 5ec17d2..4e225f4 100644
--- a/chrome/common/print_messages.cc
+++ b/chrome/common/print_messages.cc
@@ -24,7 +24,7 @@ PrintMsg_Print_Params::PrintMsg_Print_Params()
preview_ui_addr(),
preview_request_id(0),
is_first_request(false),
- fit_to_paper_size(true),
+ fit_to_paper_size(false),
print_to_pdf(false),
display_header_footer(false),
date(),
@@ -50,7 +50,7 @@ void PrintMsg_Print_Params::Reset() {
preview_ui_addr = std::string();
preview_request_id = 0;
is_first_request = false;
- fit_to_paper_size = true;
+ fit_to_paper_size = false;
print_to_pdf = false;
display_header_footer = false;
date = string16();
diff --git a/chrome/common/print_messages.h b/chrome/common/print_messages.h
index 126e3f6..0b14260 100644
--- a/chrome/common/print_messages.h
+++ b/chrome/common/print_messages.h
@@ -416,3 +416,7 @@ IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings,
// window.print() finishes.
IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview,
bool /* is_modifiable */)
+
+// Notify the browser that the PDF in the initiator renderer has disabled print
+// scaling option.
+IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled)