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

Side by Side Diff: chrome/utility/printing_handler.h

Issue 516823002: Removed print_web_view_helper_win.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thu Aug 28 14:04:52 PDT 2014 Created 6 years, 3 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 15 matching lines...) Expand all
26 PrintingHandler(); 26 PrintingHandler();
27 virtual ~PrintingHandler(); 27 virtual ~PrintingHandler();
28 28
29 static void PreSandboxStartup(); 29 static void PreSandboxStartup();
30 30
31 // IPC::Listener: 31 // IPC::Listener:
32 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 32 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
33 33
34 private: 34 private:
35 // IPC message handlers. 35 // IPC message handlers.
36 #if defined(WIN_PDF_METAFILE_FOR_PRINTING) 36 #if defined(OS_WIN)
37 void OnRenderPDFPagesToMetafile( 37 void OnRenderPDFPagesToMetafile(
38 IPC::PlatformFileForTransit pdf_transit, 38 IPC::PlatformFileForTransit pdf_transit,
39 const base::FilePath& metafile_path, 39 const base::FilePath& metafile_path,
40 const printing::PdfRenderSettings& settings, 40 const printing::PdfRenderSettings& settings,
41 const std::vector<printing::PageRange>& page_ranges); 41 const std::vector<printing::PageRange>& page_ranges);
42 #endif 42 #endif // OS_WIN
43 void OnRenderPDFPagesToPWGRaster( 43 void OnRenderPDFPagesToPWGRaster(
44 IPC::PlatformFileForTransit pdf_transit, 44 IPC::PlatformFileForTransit pdf_transit,
45 const printing::PdfRenderSettings& settings, 45 const printing::PdfRenderSettings& settings,
46 const printing::PwgRasterSettings& bitmap_settings, 46 const printing::PwgRasterSettings& bitmap_settings,
47 IPC::PlatformFileForTransit bitmap_transit); 47 IPC::PlatformFileForTransit bitmap_transit);
48 48
49 #if defined(WIN_PDF_METAFILE_FOR_PRINTING) 49 #if defined(OS_WIN)
50 // Helper method for Windows. 50 // Helper method for Windows.
51 // |highest_rendered_page_number| is set to -1 on failure to render any page. 51 // |highest_rendered_page_number| is set to -1 on failure to render any page.
52 // |page_ranges| is both input and output. If supplied as input, only the 52 // |page_ranges| is both input and output. If supplied as input, only the
53 // specified pages will be rendered. If an empty vector is supplied it will 53 // specified pages will be rendered. If an empty vector is supplied it will
54 // be filled with a range of all pages that were rendered. 54 // be filled with a range of all pages that were rendered.
55 bool RenderPDFToWinMetafile( 55 bool RenderPDFToWinMetafile(
56 base::File pdf_file, 56 base::File pdf_file,
57 const base::FilePath& metafile_path, 57 const base::FilePath& metafile_path,
58 const printing::PdfRenderSettings& settings, 58 const printing::PdfRenderSettings& settings,
59 std::vector<printing::PageRange>* page_ranges, 59 std::vector<printing::PageRange>* page_ranges,
60 int* highest_rendered_page_number, 60 int* highest_rendered_page_number,
61 double* scale_factor); 61 double* scale_factor);
62 #endif 62 #endif // OS_WIN
63 63
64 bool RenderPDFPagesToPWGRaster( 64 bool RenderPDFPagesToPWGRaster(
65 base::File pdf_file, 65 base::File pdf_file,
66 const printing::PdfRenderSettings& settings, 66 const printing::PdfRenderSettings& settings,
67 const printing::PwgRasterSettings& bitmap_settings, 67 const printing::PwgRasterSettings& bitmap_settings,
68 base::File bitmap_file); 68 base::File bitmap_file);
69 69
70 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); 70 void OnGetPrinterCapsAndDefaults(const std::string& printer_name);
71 void OnGetPrinterSemanticCapsAndDefaults(const std::string& printer_name); 71 void OnGetPrinterSemanticCapsAndDefaults(const std::string& printer_name);
72 72
73 DISALLOW_COPY_AND_ASSIGN(PrintingHandler); 73 DISALLOW_COPY_AND_ASSIGN(PrintingHandler);
74 }; 74 };
75 75
76 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_ 76 #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