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

Unified Diff: chrome/browser/printing/pdf_to_emf_converter.cc

Issue 641923002: Change PDF scaling factor from double to float. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 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
« no previous file with comments | « chrome/browser/printing/pdf_to_emf_converter.h ('k') | chrome/browser/printing/print_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/pdf_to_emf_converter.cc
diff --git a/chrome/browser/printing/pdf_to_emf_converter.cc b/chrome/browser/printing/pdf_to_emf_converter.cc
index d4fa00c9ed80bc08e78bbde71cc7db4721ad7a8d..48a3845730551460d99ae2dfcf4417a4ba1d2907 100644
--- a/chrome/browser/printing/pdf_to_emf_converter.cc
+++ b/chrome/browser/printing/pdf_to_emf_converter.cc
@@ -147,7 +147,7 @@ class PdfToEmfUtilityProcessHostClient
// Message handlers.
void OnProcessStarted();
void OnPageCount(int page_count);
- void OnPageDone(bool success, double scale_factor);
+ void OnPageDone(bool success, float scale_factor);
void OnFailed();
void OnTempPdfReady(ScopedTempFile pdf);
@@ -386,7 +386,7 @@ void PdfToEmfUtilityProcessHostClient::OnTempEmfReady(
}
void PdfToEmfUtilityProcessHostClient::OnPageDone(bool success,
- double scale_factor) {
+ float scale_factor) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (get_page_callbacks_.empty())
return OnFailed();
@@ -450,7 +450,7 @@ void PdfToEmfUtilityProcessHostClient::OnFailed() {
if (!start_callback_.is_null())
OnPageCount(0);
while (!get_page_callbacks_.empty())
- OnPageDone(false, 0.0);
+ OnPageDone(false, 0.0f);
utility_process_host_.reset();
}
« no previous file with comments | « chrome/browser/printing/pdf_to_emf_converter.h ('k') | chrome/browser/printing/print_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698