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

Side by Side Diff: printing/units.h

Issue 11359020: Print headers and footers with WebKit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: linux Created 8 years, 1 month 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
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698