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

Unified Diff: printing/printed_page.h

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 | « printing/printed_document_win.cc ('k') | ui/gfx/gdi_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printed_page.h
diff --git a/printing/printed_page.h b/printing/printed_page.h
index 08595021832c97049caaade1a9cc42459934cc56..de0395b0f9b641a57bd8897446911414bd82ff8a 100644
--- a/printing/printed_page.h
+++ b/printing/printed_page.h
@@ -33,10 +33,10 @@ class PRINTING_EXPORT PrintedPage
const gfx::Size& page_size() const { return page_size_; }
const gfx::Rect& page_content_rect() const { return page_content_rect_; }
#if defined(OS_WIN)
- void set_shrink_factor(double shrink_factor) {
+ void set_shrink_factor(float shrink_factor) {
shrink_factor_ = shrink_factor;
}
- double shrink_factor() const { return shrink_factor_; }
+ float shrink_factor() const { return shrink_factor_; }
#endif // OS_WIN
// Get page content rect adjusted based on
@@ -57,7 +57,7 @@ class PRINTING_EXPORT PrintedPage
#if defined(OS_WIN)
// Shrink done in comparison to desired_dpi.
- double shrink_factor_;
+ float shrink_factor_;
#endif // OS_WIN
// The physical page size. To support multiple page formats inside on print
« no previous file with comments | « printing/printed_document_win.cc ('k') | ui/gfx/gdi_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698