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

Unified Diff: printing/units.cc

Issue 7670045: Revert 97219 - Added Header and Footer support in Linux, Windows and Mac for Skia (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
« no previous file with comments | « printing/units.h ('k') | skia/ext/vector_platform_device_skia.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/units.cc
===================================================================
--- printing/units.cc (revision 97225)
+++ printing/units.cc (working copy)
@@ -5,7 +5,6 @@
#include "printing/units.h"
#include "base/logging.h"
-#include "printing/print_job_constants.h"
namespace printing {
@@ -48,18 +47,4 @@
return ConvertUnitDouble(pixels, kPixelsPerInch, kPointsPerInch);
}
-double ConvertPointsToPixelDouble(double points) {
- return ConvertUnitDouble(points, kPointsPerInch, kPixelsPerInch);
-}
-
-double GetHeaderFooterSegmentWidth(double page_width) {
- // Interstice is left at both ends of the page as well as between
- // each region, so 1 is added.
- double total_interstice_width =
- (printing::kSettingHeaderFooterHorizontalRegions + 1) *
- printing::kSettingHeaderFooterInterstice;
- return (page_width - total_interstice_width) /
- printing::kSettingHeaderFooterHorizontalRegions;
-}
-
} // namespace printing
« no previous file with comments | « printing/units.h ('k') | skia/ext/vector_platform_device_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698