| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #define IPC_MESSAGE_START ChromeUtilityPrintingMsgStart | 26 #define IPC_MESSAGE_START ChromeUtilityPrintingMsgStart |
| 27 | 27 |
| 28 // Preview and Cloud Print messages. | 28 // Preview and Cloud Print messages. |
| 29 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) | 29 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
| 30 IPC_ENUM_TRAITS_MAX_VALUE(printing::PdfRenderSettings::Mode, | 30 IPC_ENUM_TRAITS_MAX_VALUE(printing::PdfRenderSettings::Mode, |
| 31 printing::PdfRenderSettings::Mode::LAST) | 31 printing::PdfRenderSettings::Mode::LAST) |
| 32 | 32 |
| 33 IPC_STRUCT_TRAITS_BEGIN(printing::PdfRenderSettings) | 33 IPC_STRUCT_TRAITS_BEGIN(printing::PdfRenderSettings) |
| 34 IPC_STRUCT_TRAITS_MEMBER(area) | 34 IPC_STRUCT_TRAITS_MEMBER(area) |
| 35 IPC_STRUCT_TRAITS_MEMBER(offsets) |
| 35 IPC_STRUCT_TRAITS_MEMBER(dpi) | 36 IPC_STRUCT_TRAITS_MEMBER(dpi) |
| 36 IPC_STRUCT_TRAITS_MEMBER(autorotate) | 37 IPC_STRUCT_TRAITS_MEMBER(autorotate) |
| 37 IPC_STRUCT_TRAITS_MEMBER(mode) | 38 IPC_STRUCT_TRAITS_MEMBER(mode) |
| 38 IPC_STRUCT_TRAITS_END() | 39 IPC_STRUCT_TRAITS_END() |
| 39 | 40 |
| 40 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterCapsAndDefaults) | 41 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterCapsAndDefaults) |
| 41 IPC_STRUCT_TRAITS_MEMBER(printer_capabilities) | 42 IPC_STRUCT_TRAITS_MEMBER(printer_capabilities) |
| 42 IPC_STRUCT_TRAITS_MEMBER(caps_mime_type) | 43 IPC_STRUCT_TRAITS_MEMBER(caps_mime_type) |
| 43 IPC_STRUCT_TRAITS_MEMBER(printer_defaults) | 44 IPC_STRUCT_TRAITS_MEMBER(printer_defaults) |
| 44 IPC_STRUCT_TRAITS_MEMBER(defaults_mime_type) | 45 IPC_STRUCT_TRAITS_MEMBER(defaults_mime_type) |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 IPC::PlatformFileForTransit /* input_file */, | 114 IPC::PlatformFileForTransit /* input_file */, |
| 114 printing::PdfRenderSettings /* settings */) | 115 printing::PdfRenderSettings /* settings */) |
| 115 | 116 |
| 116 // Requests conversion of the next page. | 117 // Requests conversion of the next page. |
| 117 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToMetafiles_GetPage, | 118 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToMetafiles_GetPage, |
| 118 int /* page_number */, | 119 int /* page_number */, |
| 119 IPC::PlatformFileForTransit /* output_file */) | 120 IPC::PlatformFileForTransit /* output_file */) |
| 120 | 121 |
| 121 // Requests utility process to stop conversion and exit. | 122 // Requests utility process to stop conversion and exit. |
| 122 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_RenderPDFPagesToMetafiles_Stop) | 123 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_RenderPDFPagesToMetafiles_Stop) |
| 123 #endif // ENABLE_PRINTING && OS_WIN | 124 #endif // BUILDFLAG(ENABLE_PRINTING) && defined(OS_WIN) |
| 124 | 125 |
| 125 //------------------------------------------------------------------------------ | 126 //------------------------------------------------------------------------------ |
| 126 // Utility process host messages: | 127 // Utility process host messages: |
| 127 // These are messages from the utility process to the browser. | 128 // These are messages from the utility process to the browser. |
| 128 | 129 |
| 129 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) | 130 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
| 130 // Reply when the utility process has succeeded in rendering the PDF to PWG. | 131 // Reply when the utility process has succeeded in rendering the PDF to PWG. |
| 131 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded) | 132 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded) |
| 132 | 133 |
| 133 // Reply when an error occurred rendering the PDF to PWG. | 134 // Reply when an error occurred rendering the PDF to PWG. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 float /* scale_factor */) | 171 float /* scale_factor */) |
| 171 | 172 |
| 172 // Request that the given font characters be loaded by the browser so it's | 173 // Request that the given font characters be loaded by the browser so it's |
| 173 // cached by the OS. Please see | 174 // cached by the OS. Please see |
| 174 // PdfToEmfUtilityProcessHostClient::OnPreCacheFontCharacters for details. | 175 // PdfToEmfUtilityProcessHostClient::OnPreCacheFontCharacters for details. |
| 175 IPC_SYNC_MESSAGE_CONTROL2_0(ChromeUtilityHostMsg_PreCacheFontCharacters, | 176 IPC_SYNC_MESSAGE_CONTROL2_0(ChromeUtilityHostMsg_PreCacheFontCharacters, |
| 176 LOGFONT /* font_data */, | 177 LOGFONT /* font_data */, |
| 177 base::string16 /* characters */) | 178 base::string16 /* characters */) |
| 178 | 179 |
| 179 #endif // ENABLE_PRINTING && OS_WIN | 180 #endif // ENABLE_PRINTING && OS_WIN |
| OLD | NEW |