summaryrefslogtreecommitdiffstats
path: root/printing/printing.gyp
diff options
context:
space:
mode:
authorgene@chromium.org <gene@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-03 23:53:27 +0000
committergene@chromium.org <gene@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-03 23:53:27 +0000
commit14d59480a248bc6181e1ed5044b59593b664278f (patch)
tree5ff319966d6df7127997b77eeb73c0f562492ef2 /printing/printing.gyp
parentf5473494ad70a6e3bbae1a2676bf979948847d1d (diff)
downloadchromium_src-14d59480a248bc6181e1ed5044b59593b664278f.zip
chromium_src-14d59480a248bc6181e1ed5044b59593b664278f.tar.gz
chromium_src-14d59480a248bc6181e1ed5044b59593b664278f.tar.bz2
ugrr... Fixing printing scaling again.
Not the nicest fix, but it should do the job. Now, we'll try to use default scaling (72dpi) whenever we can. If sceen resolution droped below the point where metafile can't accomodate whole PDF page anymore, we'll use this hack to pass custom scale in the TLS for the upper layer. BUG=125499 TEST=Print PDF using print preview and system print dialog. Same for webpage. Make screen resolution 800x600 and repeat. Review URL: http://codereview.chromium.org/10348002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135241 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printing.gyp')
-rw-r--r--printing/printing.gyp4
1 files changed, 3 insertions, 1 deletions
diff --git a/printing/printing.gyp b/printing/printing.gyp
index 41d7793..c9c9790 100644
--- a/printing/printing.gyp
+++ b/printing/printing.gyp
@@ -1,4 +1,4 @@
-# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -32,6 +32,8 @@
'backend/print_backend_consts.cc',
'backend/print_backend_consts.h',
'backend/print_backend_dummy.cc',
+ 'custom_scaling.cc',
+ 'custom_scaling.h',
'emf_win.cc',
'emf_win.h',
'image.cc',