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

Unified Diff: printing/printing_context.cc

Issue 7348010: Added Header and Footer support using Skia (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added SK_API to vector platform device skia 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/printing_context.cc
diff --git a/printing/printing_context.cc b/printing/printing_context.cc
index fb554e77f9175b27780642879c8a70b9b6f3cbd4..4e9d03a8469418ead6a83561434bfcb1a3e8db11 100644
--- a/printing/printing_context.cc
+++ b/printing/printing_context.cc
@@ -5,6 +5,7 @@
#include "printing/printing_context.h"
#include "base/values.h"
+#include "printing/print_settings_initializer.h"
namespace printing {
@@ -33,4 +34,13 @@ PrintingContext::Result PrintingContext::OnError() {
return abort_printing_ ? CANCEL : FAILED;
}
+PrintingContext::Result PrintingContext::UpdatePrintSettings(
+ const base::DictionaryValue& job_settings,
+ const PageRanges& ranges) {
+ PrintingContext::Result result = UpdatePrinterSettings(job_settings, ranges);
+ printing::PrintSettingsInitializer::InitHeaderFooterStrings(job_settings,
+ &settings_);
+ return result;
+}
+
} // namespace printing

Powered by Google App Engine
This is Rietveld 408576698