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

Side by Side Diff: chrome/utility/printing_handler.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 unified diff | Download patch
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | chrome/utility/printing_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_UTILITY_PRINTING_HANDLER_H_ 5 #ifndef CHROME_UTILITY_PRINTING_HANDLER_H_
6 #define CHROME_UTILITY_PRINTING_HANDLER_H_ 6 #define CHROME_UTILITY_PRINTING_HANDLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/utility/utility_message_handler.h" 10 #include "chrome/utility/utility_message_handler.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 IPC::PlatformFileForTransit pdf_transit, 47 IPC::PlatformFileForTransit pdf_transit,
48 const printing::PdfRenderSettings& settings, 48 const printing::PdfRenderSettings& settings,
49 const printing::PwgRasterSettings& bitmap_settings, 49 const printing::PwgRasterSettings& bitmap_settings,
50 IPC::PlatformFileForTransit bitmap_transit); 50 IPC::PlatformFileForTransit bitmap_transit);
51 #endif // ENABLE_FULL_PRINTING 51 #endif // ENABLE_FULL_PRINTING
52 52
53 #if defined(OS_WIN) 53 #if defined(OS_WIN)
54 int LoadPDF(base::File pdf_file); 54 int LoadPDF(base::File pdf_file);
55 bool RenderPdfPageToMetafile(int page_number, 55 bool RenderPdfPageToMetafile(int page_number,
56 base::File output_file, 56 base::File output_file,
57 double* scale_factor); 57 float* scale_factor);
58 #endif // OS_WIN 58 #endif // OS_WIN
59 #if defined(ENABLE_FULL_PRINTING) 59 #if defined(ENABLE_FULL_PRINTING)
60 bool RenderPDFPagesToPWGRaster( 60 bool RenderPDFPagesToPWGRaster(
61 base::File pdf_file, 61 base::File pdf_file,
62 const printing::PdfRenderSettings& settings, 62 const printing::PdfRenderSettings& settings,
63 const printing::PwgRasterSettings& bitmap_settings, 63 const printing::PwgRasterSettings& bitmap_settings,
64 base::File bitmap_file); 64 base::File bitmap_file);
65 65
66 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); 66 void OnGetPrinterCapsAndDefaults(const std::string& printer_name);
67 void OnGetPrinterSemanticCapsAndDefaults(const std::string& printer_name); 67 void OnGetPrinterSemanticCapsAndDefaults(const std::string& printer_name);
68 #endif // ENABLE_FULL_PRINTING 68 #endif // ENABLE_FULL_PRINTING
69 69
70 #if defined(OS_WIN) 70 #if defined(OS_WIN)
71 std::vector<char> pdf_data_; 71 std::vector<char> pdf_data_;
72 printing::PdfRenderSettings pdf_rendering_settings_; 72 printing::PdfRenderSettings pdf_rendering_settings_;
73 #endif 73 #endif
74 74
75 DISALLOW_COPY_AND_ASSIGN(PrintingHandler); 75 DISALLOW_COPY_AND_ASSIGN(PrintingHandler);
76 }; 76 };
77 77
78 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_ 78 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | chrome/utility/printing_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698