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

Unified Diff: chrome/browser/ui/libgtkui/printing_gtk_util.cc

Issue 2453243002: Gtk3 UI: Rename files in libgtkui containing gtk2 in their name (Closed)
Patch Set: Fix git cl format mistake Created 4 years, 2 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
Index: chrome/browser/ui/libgtkui/printing_gtk_util.cc
diff --git a/chrome/browser/ui/libgtkui/printing_gtk2_util.cc b/chrome/browser/ui/libgtkui/printing_gtk_util.cc
similarity index 87%
rename from chrome/browser/ui/libgtkui/printing_gtk2_util.cc
rename to chrome/browser/ui/libgtkui/printing_gtk_util.cc
index b8fab184dc4035cd84831c287b8dac95026c3d9d..7baba3c622e20c923355fe9dd754073f99d48ac1 100644
--- a/chrome/browser/ui/libgtkui/printing_gtk2_util.cc
+++ b/chrome/browser/ui/libgtkui/printing_gtk_util.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/libgtkui/printing_gtk2_util.h"
+#include "chrome/browser/ui/libgtkui/printing_gtk_util.h"
#include <gtk/gtk.h>
#include <gtk/gtkunixprint.h>
@@ -36,9 +36,8 @@ gfx::Size GetPdfPaperSizeDeviceUnitsGtk(
const printing::PrintSettings& settings = context->settings();
- return gfx::Size(
- paper_size.width() * settings.device_units_per_inch(),
- paper_size.height() * settings.device_units_per_inch());
+ return gfx::Size(paper_size.width() * settings.device_units_per_inch(),
+ paper_size.height() * settings.device_units_per_inch());
}
void InitPrintSettingsGtk(GtkPrintSettings* settings,
@@ -48,8 +47,8 @@ void InitPrintSettingsGtk(GtkPrintSettings* settings,
DCHECK(page_setup);
DCHECK(print_settings);
- base::string16 name(base::UTF8ToUTF16(static_cast<const char*>(
- gtk_print_settings_get_printer(settings))));
+ base::string16 name(base::UTF8ToUTF16(
+ static_cast<const char*>(gtk_print_settings_get_printer(settings))));
print_settings->set_device_name(name);
gfx::Size physical_size_device_units;
@@ -70,9 +69,8 @@ void InitPrintSettingsGtk(GtkPrintSettings* settings,
dpi = printing::kPixelsPerInch;
double page_width_in_pixel = printing::kLetterWidthInch * dpi;
double page_height_in_pixel = printing::kLetterHeightInch * dpi;
- physical_size_device_units.SetSize(
- static_cast<int>(page_width_in_pixel),
- static_cast<int>(page_height_in_pixel));
+ physical_size_device_units.SetSize(static_cast<int>(page_width_in_pixel),
+ static_cast<int>(page_height_in_pixel));
printable_area_device_units.SetRect(
static_cast<int>(kLeftMarginInInch * dpi),
static_cast<int>(kTopMarginInInch * dpi),
@@ -94,6 +92,5 @@ void InitPrintSettingsGtk(GtkPrintSettings* settings,
print_settings->SetOrientation(orientation == GTK_PAGE_ORIENTATION_LANDSCAPE);
DCHECK_EQ(print_settings->device_units_per_inch(), dpi);
print_settings->SetPrinterPrintableArea(physical_size_device_units,
- printable_area_device_units,
- true);
+ printable_area_device_units, true);
}
« no previous file with comments | « chrome/browser/ui/libgtkui/printing_gtk_util.h ('k') | chrome/browser/ui/libgtkui/select_file_dialog_impl_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698