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

Side by Side Diff: printing/units.h

Issue 7670045: Revert 97219 - Added Header and Footer support in Linux, Windows and Mac for Skia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « printing/printing_context_win.cc ('k') | printing/units.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 namespace printing { 8 namespace printing {
9 9
10 // Length of a thousanth of inches in 0.01mm unit. 10 // Length of a thousanth of inches in 0.01mm unit.
(...skipping 18 matching lines...) Expand all
29 29
30 // Converts from 0.00001 meter unit to 0.001 inch. 30 // Converts from 0.00001 meter unit to 0.001 inch.
31 int ConvertHundredThousanthMeterToMilliInch(int cmm); 31 int ConvertHundredThousanthMeterToMilliInch(int cmm);
32 32
33 // Converts from 1 pixel to 1 point using integers. 33 // Converts from 1 pixel to 1 point using integers.
34 int ConvertPixelsToPoint(int pixels); 34 int ConvertPixelsToPoint(int pixels);
35 35
36 // Converts from 1 pixel to 1 point using doubles. 36 // Converts from 1 pixel to 1 point using doubles.
37 double ConvertPixelsToPointDouble(double pixels); 37 double ConvertPixelsToPointDouble(double pixels);
38 38
39 // Converts from 1 point to 1 pixel using doubles.
40 double ConvertPointsToPixelDouble(double points);
41
42 // Splits the horizontal width equally into segments with an interstice
43 // between each segment. Returns the width of a segment.
44 double GetHeaderFooterSegmentWidth(double page_width);
45
46 } // namespace printing 39 } // namespace printing
47 40
48 #endif // PRINTING_UNITS_H_ 41 #endif // PRINTING_UNITS_H_
OLDNEW
« no previous file with comments | « printing/printing_context_win.cc ('k') | printing/units.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698