Chromium Code Reviews| 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. |