summaryrefslogtreecommitdiffstats
path: root/printing/units.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-01 06:34:04 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-01 06:34:04 +0000
commit69f5b1e6690af4184fc5fdc8734ad4b7936123bd (patch)
tree1ce92b715b5bee418b6d3e88f96a72a2177e4890 /printing/units.h
parent0e3c7d88f2fd4070e0b373e97ce400e522d15245 (diff)
downloadchromium_src-69f5b1e6690af4184fc5fdc8734ad4b7936123bd.zip
chromium_src-69f5b1e6690af4184fc5fdc8734ad4b7936123bd.tar.gz
chromium_src-69f5b1e6690af4184fc5fdc8734ad4b7936123bd.tar.bz2
Add printing.dll to the component build.
R=rvargas,thestig Review URL: http://codereview.chromium.org/7799003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99144 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/units.h')
-rw-r--r--printing/units.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/printing/units.h b/printing/units.h
index bd6d67a..43f68ee 100644
--- a/printing/units.h
+++ b/printing/units.h
@@ -1,10 +1,12 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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 kPointsPerInch = 72;
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