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

Unified Diff: printing/units.h

Issue 7348010: Added Header and Footer support using Skia (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Refactored JS code 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 side-by-side diff with in-line comments
Download patch
Index: printing/units.h
diff --git a/printing/units.h b/printing/units.h
index cc6124101c6c134f0acdd57764a0cdbe1d9e5d0c..450b4c87755a97e97090a8d0ca6e34f7c21ea869 100644
--- a/printing/units.h
+++ b/printing/units.h
@@ -36,6 +36,13 @@ int ConvertPixelsToPoint(int pixels);
// Converts from 1 pixel to 1 point using doubles.
double ConvertPixelsToPointDouble(double pixels);
+// Converts from 1 point to 1 pixel using doubles.
+double ConvertPointsToPixelDouble(double points);
+
+// Splits the horizontal width equally into segments with an interstice
+// between each segment. Returns the width of a segment.
+double GetSegmentWidth(double page_width);
vandebo (ex-Chrome) 2011/08/15 19:35:49 The name of this could be improved in this file...
Aayush Kumar 2011/08/15 21:37:37 Done.
+
} // namespace printing
#endif // PRINTING_UNITS_H_

Powered by Google App Engine
This is Rietveld 408576698