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

Unified Diff: chrome/renderer/chrome_mock_render_thread.cc

Issue 12087005: Async frame preparation for Preview with support if selection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « no previous file | chrome/renderer/mock_printer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_mock_render_thread.cc
diff --git a/chrome/renderer/chrome_mock_render_thread.cc b/chrome/renderer/chrome_mock_render_thread.cc
index 79b1f733a9f5b70d3f8ce8d174f3a1bdef4ca37f..d80d4c8a3f5f794d9aca074f6a15d43d4935dfe7 100644
--- a/chrome/renderer/chrome_mock_render_thread.cc
+++ b/chrome/renderer/chrome_mock_render_thread.cc
@@ -184,6 +184,11 @@ void ChromeMockRenderThread::OnUpdatePrintSettings(
}
std::vector<int> pages(printing::PageRange::GetPages(new_ranges));
printer_->UpdateSettings(document_cookie, params, pages, margins_type);
+
+ job_settings.GetBoolean(printing::kSettingShouldPrintSelectionOnly,
+ &params->params.selection_only);
+ job_settings.GetBoolean(printing::kSettingShouldPrintBackgrounds,
+ &params->params.should_print_backgrounds);
}
MockPrinter* ChromeMockRenderThread::printer() {
« no previous file with comments | « no previous file | chrome/renderer/mock_printer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698