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

Unified Diff: printing/units.h

Issue 7799003: Add printing.dll to the component build. (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 side-by-side diff with in-line comments
Download patch
« printing/printing.gyp ('K') | « printing/printing_export.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/units.h
===================================================================
--- printing/units.h (revision 98598)
+++ printing/units.h (working copy)
@@ -5,6 +5,8 @@
#ifndef PRINTING_UNITS_H_
#define PRINTING_UNITS_H_
+#include "printing/printing_export.h"
+
namespace printing {
// Length of a thousanth of inches in 0.01mm unit.
@@ -19,29 +21,30 @@
const int kPixelsPerInch = 96;
// Converts from one unit system to another using integer arithmetics.
-int ConvertUnit(int value, int old_unit, int new_unit);
+PRINTING_EXPORT int ConvertUnit(int value, int old_unit, int new_unit);
// Converts from one unit system to another using doubles.
-double ConvertUnitDouble(double value, double old_unit, double new_unit);
+PRINTING_EXPORT double ConvertUnitDouble(double value, double old_unit,
+ double new_unit);
// Converts from 0.001 inch unit to 0.00001 meter.
-int ConvertMilliInchToHundredThousanthMeter(int milli_inch);
+PRINTING_EXPORT int ConvertMilliInchToHundredThousanthMeter(int milli_inch);
// Converts from 0.00001 meter unit to 0.001 inch.
-int ConvertHundredThousanthMeterToMilliInch(int cmm);
+PRINTING_EXPORT int ConvertHundredThousanthMeterToMilliInch(int cmm);
// Converts from 1 pixel to 1 point using integers.
-int ConvertPixelsToPoint(int pixels);
+PRINTING_EXPORT int ConvertPixelsToPoint(int pixels);
// Converts from 1 pixel to 1 point using doubles.
-double ConvertPixelsToPointDouble(double pixels);
+PRINTING_EXPORT 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 GetHeaderFooterSegmentWidth(double page_width);
+PRINTING_EXPORT double GetHeaderFooterSegmentWidth(double page_width);
} // namespace printing
« printing/printing.gyp ('K') | « printing/printing_export.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698