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

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: Moved ElideText to browser process 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..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_

Powered by Google App Engine
This is Rietveld 408576698