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

Unified Diff: printing/image_mac.cc

Issue 10560021: Mac printing: Autorotate printed pages so their orientation is the same as the destination page. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | printing/metafile.h » ('j') | printing/metafile.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/image_mac.cc
===================================================================
--- printing/image_mac.cc (revision 142466)
+++ printing/image_mac.cc (working copy)
@@ -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.
@@ -33,9 +33,14 @@
kCGImageAlphaPremultipliedLast));
DCHECK(bitmap_context.get());
+ struct Metafile::MacRenderPageParams params;
+ params.shrink_to_fit = true;
+ params.stretch_to_fit = false;
+ params.center_horizontally = false;
+ params.center_vertically = false;
+ params.autorotate = false;
metafile.RenderPage(page_number, bitmap_context,
- CGRectMake(0, 0, size_.width(), size_.height()),
- true, false, false, false);
+ CGRectMake(0, 0, size_.width(), size_.height()), params);
return true;
}
« no previous file with comments | « no previous file | printing/metafile.h » ('j') | printing/metafile.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698