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

Unified Diff: printing/print_settings_initializer_gtk.cc

Issue 7348010: Added Header and Footer support using Skia (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Moved elide text to print_settings_initializer 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
Index: printing/print_settings_initializer_gtk.cc
diff --git a/printing/print_settings_initializer_gtk.cc b/printing/print_settings_initializer_gtk.cc
index 9b8915ca0d081d419649d2286cb0fb0df9b51d83..bb9c91e42858b456c9ade47a8d7408a3e4929d69 100644
--- a/printing/print_settings_initializer_gtk.cc
+++ b/printing/print_settings_initializer_gtk.cc
@@ -9,6 +9,7 @@
#include "base/string_piece.h"
#include "base/utf_string_conversions.h"
+#include "printing/header_footer_initializer.h"
#include "printing/print_settings.h"
#include "printing/units.h"
@@ -20,6 +21,7 @@ void PrintSettingsInitializerGtk::InitPrintSettings(
GtkPageSetup* page_setup,
const PageRanges& new_ranges,
bool print_selection_only,
+ const DictionaryValue& header_footer_info,
PrintSettings* print_settings) {
DCHECK(settings);
DCHECK(page_setup);
@@ -75,6 +77,8 @@ void PrintSettingsInitializerGtk::InitPrintSettings(
// orientation and change the paper size ourselves.
GtkPageOrientation orientation = gtk_print_settings_get_orientation(settings);
print_settings->SetOrientation(orientation == GTK_PAGE_ORIENTATION_LANDSCAPE);
+ printing::HeaderFooterInitializer::InitHeaderFooterStrings(
+ header_footer_info, print_settings);
}
const double PrintSettingsInitializerGtk::kTopMarginInInch = 0.25;

Powered by Google App Engine
This is Rietveld 408576698