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

Side by Side Diff: printing/units.h

Issue 21475: Move units to new module printing. (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 unified diff | Download patch
Property Changes:
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/chrome/browser/printing/units.h:r69-2775
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PRINTING_UNITS_H__ 5 #ifndef PRINTING_UNITS_H_
6 #define CHROME_BROWSER_PRINTING_UNITS_H__ 6 #define PRINTING_UNITS_H_
7 7
8 namespace printing { 8 namespace printing {
9 9
10 // Length of a thousanth of inches in 0.01mm unit. 10 // Length of a thousanth of inches in 0.01mm unit.
11 const int kHundrethsMMPerInch = 2540; 11 const int kHundrethsMMPerInch = 2540;
12 12
13 // Converts from one unit system to another using integer arithmetics. 13 // Converts from one unit system to another using integer arithmetics.
14 int ConvertUnit(int value, int old_unit, int new_unit); 14 int ConvertUnit(int value, int old_unit, int new_unit);
15 15
16 // Converts from one unit system to another using doubles. 16 // Converts from one unit system to another using doubles.
17 double ConvertUnitDouble(double value, double old_unit, double new_unit); 17 double ConvertUnitDouble(double value, double old_unit, double new_unit);
18 18
19 // Converts from 0.001 inch unit to 0.00001 meter. 19 // Converts from 0.001 inch unit to 0.00001 meter.
20 int ConvertMilliInchToHundredThousanthMeter(int milli_inch); 20 int ConvertMilliInchToHundredThousanthMeter(int milli_inch);
21 21
22 // Converts from 0.00001 meter unit to 0.001 inch. 22 // Converts from 0.00001 meter unit to 0.001 inch.
23 int ConvertHundredThousanthMeterToMilliInch(int cmm); 23 int ConvertHundredThousanthMeterToMilliInch(int cmm);
24 24
25 } // namespace printing 25 } // namespace printing
26 26
27 #endif // CHROME_BROWSER_PRINTING_UNITS_H__ 27 #endif // PRINTING_UNITS_H_
28
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698