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

Unified Diff: printing/printing_context_cairo.cc

Issue 6594121: Revert 76553 - Applying factory pattern (through NativeMetafileFactory class)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/printing.gyp ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_cairo.cc
===================================================================
--- printing/printing_context_cairo.cc (revision 76554)
+++ printing/printing_context_cairo.cc (working copy)
@@ -9,9 +9,7 @@
#if defined(OS_CHROMEOS)
#include <unicode/ulocdata.h>
-
-#include "printing/native_metafile.h"
-#include "printing/pdf_ps_metafile_cairo.h"
+#include <printing/native_metafile.h>
#else
#include <gtk/gtk.h>
#include <gtk/gtkprintunixdialog.h>
@@ -121,12 +119,12 @@
physical_size_device_units.SetSize(width, height);
printable_area_device_units.SetRect(
- static_cast<int>(PdfPsMetafile::kLeftMarginInInch * dpi),
- static_cast<int>(PdfPsMetafile::kTopMarginInInch * dpi),
- width - (PdfPsMetafile::kLeftMarginInInch +
- PdfPsMetafile::kRightMarginInInch) * dpi,
- height - (PdfPsMetafile::kTopMarginInInch +
- PdfPsMetafile::kBottomMarginInInch) * dpi);
+ static_cast<int>(NativeMetafile::kLeftMarginInInch * dpi),
+ static_cast<int>(NativeMetafile::kTopMarginInInch * dpi),
+ width - (NativeMetafile::kLeftMarginInInch +
+ NativeMetafile::kRightMarginInInch) * dpi,
+ height - (NativeMetafile::kTopMarginInInch +
+ NativeMetafile::kBottomMarginInInch) * dpi);
settings_.set_dpi(dpi);
settings_.SetPrinterPrintableArea(physical_size_device_units,
« no previous file with comments | « printing/printing.gyp ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698