Index: printing/units.h |
diff --git a/printing/units.h b/printing/units.h |
index cc6124101c6c134f0acdd57764a0cdbe1d9e5d0c..4f9d70d867f96f40d26bd04bfd94d544a5eefe94 100644 |
--- a/printing/units.h |
+++ b/printing/units.h |
@@ -5,6 +5,8 @@ |
#ifndef PRINTING_UNITS_H_ |
#define PRINTING_UNITS_H_ |
+struct PrintMsg_Print_Params; |
+ |
namespace printing { |
// Length of a thousanth of inches in 0.01mm unit. |
@@ -36,6 +38,15 @@ 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); |
+ |
+int GetDPI(const PrintMsg_Print_Params* print_params); |
vandebo (ex-Chrome)
2011/08/11 23:32:13
const ref?
Aayush Kumar
2011/08/12 08:35:40
I have restored this change since I no longer need
|
+ |
} // namespace printing |
#endif // PRINTING_UNITS_H_ |