summaryrefslogtreecommitdiffstats
path: root/chrome/service/service_utility_process_host.h
diff options
context:
space:
mode:
authorpkasting <pkasting@chromium.org>2014-10-09 14:30:00 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-09 21:30:15 +0000
commit46a6291e7b4e7c7367daf4e5fb1a33537f776813 (patch)
tree308d85c00a1076c0c12fcf8d306630ef39e47929 /chrome/service/service_utility_process_host.h
parent7cc29ce343a235f9067545ddd19ba2d982c4595f (diff)
downloadchromium_src-46a6291e7b4e7c7367daf4e5fb1a33537f776813.zip
chromium_src-46a6291e7b4e7c7367daf4e5fb1a33537f776813.tar.gz
chromium_src-46a6291e7b4e7c7367daf4e5fb1a33537f776813.tar.bz2
Change PDF scaling factor from double to float.
This ultimate consumers of this want a float anyway, so changing to be a float all the way through is less misleading. This also avoids some "value possibly truncated" warnings (currently disabled) on MSVC. This also removes a couple of scale-related functions in metafile_skia_wrapper.* that seem to be entirely unused. BUG=none TEST=none Review URL: https://codereview.chromium.org/641923002 Cr-Commit-Position: refs/heads/master@{#298980}
Diffstat (limited to 'chrome/service/service_utility_process_host.h')
-rw-r--r--chrome/service/service_utility_process_host.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/service/service_utility_process_host.h b/chrome/service/service_utility_process_host.h
index f15bb01..6b320aa 100644
--- a/chrome/service/service_utility_process_host.h
+++ b/chrome/service/service_utility_process_host.h
@@ -49,7 +49,7 @@ class ServiceUtilityProcessHost : public content::ChildProcessHostDelegate {
virtual void OnChildDied() {}
virtual void OnRenderPDFPagesToMetafilePageDone(
- double scale_factor,
+ float scale_factor,
const printing::MetafilePlayer& emf) {}
// Called when at all pages in the PDF has been rendered.
@@ -78,7 +78,7 @@ class ServiceUtilityProcessHost : public content::ChildProcessHostDelegate {
// Invoked when a metafile file is ready.
// Returns true if metafile successfully loaded from |file|.
- bool MetafileAvailable(double scale_factor, base::File file);
+ bool MetafileAvailable(float scale_factor, base::File file);
DISALLOW_COPY_AND_ASSIGN(Client);
};
@@ -131,7 +131,7 @@ class ServiceUtilityProcessHost : public content::ChildProcessHostDelegate {
// Messages handlers:
void OnRenderPDFPagesToMetafilesPageCount(int page_count);
- void OnRenderPDFPagesToMetafilesPageDone(bool success, double scale_factor);
+ void OnRenderPDFPagesToMetafilesPageDone(bool success, float scale_factor);
void OnGetPrinterCapsAndDefaultsSucceeded(
const std::string& printer_name,
const printing::PrinterCapsAndDefaults& caps_and_defaults);