| OLD | NEW |
| 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 // Multiply-included message file, so no include guard. | 5 // Multiply-included message file, so no include guard. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterSemanticCapsAndDefaults, | 92 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterSemanticCapsAndDefaults, |
| 93 std::string /* printer name */) | 93 std::string /* printer name */) |
| 94 #endif // ENABLE_PRINT_PREVIEW | 94 #endif // ENABLE_PRINT_PREVIEW |
| 95 | 95 |
| 96 // Windows uses messages for printing even without preview. crbug.com/170859 | 96 // Windows uses messages for printing even without preview. crbug.com/170859 |
| 97 // Primary user of Windows without preview is CEF. crbug.com/417967 | 97 // Primary user of Windows without preview is CEF. crbug.com/417967 |
| 98 #if BUILDFLAG(ENABLE_PRINTING) && defined(OS_WIN) | 98 #if BUILDFLAG(ENABLE_PRINTING) && defined(OS_WIN) |
| 99 // Tell the utility process to start rendering the given PDF into a metafile. | 99 // Tell the utility process to start rendering the given PDF into a metafile. |
| 100 // Utility process would be alive until | 100 // Utility process would be alive until |
| 101 // ChromeUtilityMsg_RenderPDFPagesToMetafiles_Stop message. | 101 // ChromeUtilityMsg_RenderPDFPagesToMetafiles_Stop message. |
| 102 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_RenderPDFPagesToMetafiles, | 102 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToMetafiles, |
| 103 IPC::PlatformFileForTransit /* input_file */, | 103 IPC::PlatformFileForTransit /* input_file */, |
| 104 printing::PdfRenderSettings /* settings */, | 104 printing::PdfRenderSettings /* settings */) |
| 105 bool /* print_text_with_gdi */) | |
| 106 | 105 |
| 107 // Requests conversion of the next page. | 106 // Requests conversion of the next page. |
| 108 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToMetafiles_GetPage, | 107 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToMetafiles_GetPage, |
| 109 int /* page_number */, | 108 int /* page_number */, |
| 110 IPC::PlatformFileForTransit /* output_file */) | 109 IPC::PlatformFileForTransit /* output_file */) |
| 111 | 110 |
| 112 // Requests utility process to stop conversion and exit. | 111 // Requests utility process to stop conversion and exit. |
| 113 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_RenderPDFPagesToMetafiles_Stop) | 112 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_RenderPDFPagesToMetafiles_Stop) |
| 114 #endif // ENABLE_PRINTING && OS_WIN | 113 #endif // ENABLE_PRINTING && OS_WIN |
| 115 | 114 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 float /* scale_factor */) | 160 float /* scale_factor */) |
| 162 | 161 |
| 163 // Request that the given font characters be loaded by the browser so it's | 162 // Request that the given font characters be loaded by the browser so it's |
| 164 // cached by the OS. Please see | 163 // cached by the OS. Please see |
| 165 // PdfToEmfUtilityProcessHostClient::OnPreCacheFontCharacters for details. | 164 // PdfToEmfUtilityProcessHostClient::OnPreCacheFontCharacters for details. |
| 166 IPC_SYNC_MESSAGE_CONTROL2_0(ChromeUtilityHostMsg_PreCacheFontCharacters, | 165 IPC_SYNC_MESSAGE_CONTROL2_0(ChromeUtilityHostMsg_PreCacheFontCharacters, |
| 167 LOGFONT /* font_data */, | 166 LOGFONT /* font_data */, |
| 168 base::string16 /* characters */) | 167 base::string16 /* characters */) |
| 169 | 168 |
| 170 #endif // ENABLE_PRINTING && OS_WIN | 169 #endif // ENABLE_PRINTING && OS_WIN |
| OLD | NEW |