| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PRINTING_UNITS_H_ | 5 #ifndef PRINTING_UNITS_H_ |
| 6 #define PRINTING_UNITS_H_ | 6 #define PRINTING_UNITS_H_ |
| 7 | 7 |
| 8 #include "printing/printing_export.h" | 8 #include "printing/printing_export.h" |
| 9 | 9 |
| 10 namespace printing { | 10 namespace printing { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // Converts from 1 pixel to 1 point using integers. | 36 // Converts from 1 pixel to 1 point using integers. |
| 37 PRINTING_EXPORT int ConvertPixelsToPoint(int pixels); | 37 PRINTING_EXPORT int ConvertPixelsToPoint(int pixels); |
| 38 | 38 |
| 39 // Converts from 1 pixel to 1 point using doubles. | 39 // Converts from 1 pixel to 1 point using doubles. |
| 40 PRINTING_EXPORT double ConvertPixelsToPointDouble(double pixels); | 40 PRINTING_EXPORT double ConvertPixelsToPointDouble(double pixels); |
| 41 | 41 |
| 42 // Converts from 1 point to 1 pixel using doubles. | 42 // Converts from 1 point to 1 pixel using doubles. |
| 43 double ConvertPointsToPixelDouble(double points); | 43 double ConvertPointsToPixelDouble(double points); |
| 44 | 44 |
| 45 // Splits the horizontal width equally into segments with an interstice | |
| 46 // between each segment. Returns the width of a segment. | |
| 47 PRINTING_EXPORT double GetHeaderFooterSegmentWidth(double page_width); | |
| 48 | |
| 49 } // namespace printing | 45 } // namespace printing |
| 50 | 46 |
| 51 #endif // PRINTING_UNITS_H_ | 47 #endif // PRINTING_UNITS_H_ |
| OLD | NEW |