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

Unified Diff: printing/metafile.h

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
Index: printing/metafile.h
===================================================================
--- printing/metafile.h (revision 142466)
+++ printing/metafile.h (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.
@@ -130,13 +130,16 @@
// |center_vertically| specifies whether the final image (after any scaling
// is done) should be centered vertically within the given |rect|.
// Note that all scaling preserves the original aspect ratio of the page.
+ // |autorotate| specifies whether the final image should be autorotated to
+ // fit on |rect|.
virtual bool RenderPage(unsigned int page_number,
gfx::NativeDrawingContext context,
const CGRect rect,
bool shrink_to_fit,
bool stretch_to_fit,
bool center_horizontally,
- bool center_vertically) const = 0;
+ bool center_vertically,
+ bool autorotate) const = 0;
kmadhusu 2012/06/16 00:44:11 Looks like we are adding more fit to page params t
Lei Zhang 2012/06/16 01:47:20 Done.
#elif defined(OS_CHROMEOS)
// Saves the underlying data to the file associated with fd. This function
// should ONLY be called after the metafile is closed.

Powered by Google App Engine
This is Rietveld 408576698