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

Side by Side Diff: chrome/common/chrome_utility_messages.h

Issue 8146004: Added autorotate flag in PDF rendering and wiring it through service-utility channel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/service/cloud_print/print_system_win.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/platform_file.h" 12 #include "base/platform_file.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/common/extensions/update_manifest.h" 14 #include "chrome/common/extensions/update_manifest.h"
15 #include "content/common/common_param_traits.h" 15 #include "content/common/common_param_traits.h"
16 #include "content/common/serialized_script_value.h" 16 #include "content/common/serialized_script_value.h"
17 #include "ipc/ipc_message_macros.h" 17 #include "ipc/ipc_message_macros.h"
18 #include "printing/backend/print_backend.h" 18 #include "printing/backend/print_backend.h"
19 #include "printing/page_range.h" 19 #include "printing/page_range.h"
20 #include "printing/pdf_render_settings.h"
20 #include "third_party/skia/include/core/SkBitmap.h" 21 #include "third_party/skia/include/core/SkBitmap.h"
21 #include "ui/gfx/rect.h" 22 #include "ui/gfx/rect.h"
22 23
23 #define IPC_MESSAGE_START ChromeUtilityMsgStart 24 #define IPC_MESSAGE_START ChromeUtilityMsgStart
24 25
25 IPC_STRUCT_TRAITS_BEGIN(printing::PageRange) 26 IPC_STRUCT_TRAITS_BEGIN(printing::PageRange)
26 IPC_STRUCT_TRAITS_MEMBER(from) 27 IPC_STRUCT_TRAITS_MEMBER(from)
27 IPC_STRUCT_TRAITS_MEMBER(to) 28 IPC_STRUCT_TRAITS_MEMBER(to)
28 IPC_STRUCT_TRAITS_END() 29 IPC_STRUCT_TRAITS_END()
29 30
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Tell the utility process to decode the given image data. 68 // Tell the utility process to decode the given image data.
68 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImage, 69 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImage,
69 std::vector<unsigned char>) // encoded image contents 70 std::vector<unsigned char>) // encoded image contents
70 71
71 // Tell the utility process to decode the given image data, which is base64 72 // Tell the utility process to decode the given image data, which is base64
72 // encoded. 73 // encoded.
73 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64, 74 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64,
74 std::string) // base64 encoded image contents 75 std::string) // base64 encoded image contents
75 76
76 // Tell the utility process to render the given PDF into a metafile. 77 // Tell the utility process to render the given PDF into a metafile.
77 IPC_MESSAGE_CONTROL5(ChromeUtilityMsg_RenderPDFPagesToMetafile, 78 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafile,
78 base::PlatformFile, // PDF file 79 base::PlatformFile, // PDF file
79 FilePath, // Location for output metafile 80 FilePath, // Location for output metafile
80 gfx::Rect, // Render Area 81 printing::PdfRenderSettings, // PDF render settitngs
81 int, // DPI
82 std::vector<printing::PageRange>) 82 std::vector<printing::PageRange>)
83 83
84 // Tell the utility process to parse a JSON string into a Value object. 84 // Tell the utility process to parse a JSON string into a Value object.
85 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, 85 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON,
86 std::string /* JSON to parse */) 86 std::string /* JSON to parse */)
87 87
88 // Tells the utility process to get capabilities and defaults for the specified 88 // Tells the utility process to get capabilities and defaults for the specified
89 // printer. Used on Windows to isolate the service process from printer driver 89 // printer. Used on Windows to isolate the service process from printer driver
90 // crashes by executing this in a separate process. This does not run in a 90 // crashes by executing this in a separate process. This does not run in a
91 // sandbox. 91 // sandbox.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // Reply when the utility process has succeeded in obtaining the printer 159 // Reply when the utility process has succeeded in obtaining the printer
160 // capabilities and defaults. 160 // capabilities and defaults.
161 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, 161 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded,
162 std::string /* printer name */, 162 std::string /* printer name */,
163 printing::PrinterCapsAndDefaults) 163 printing::PrinterCapsAndDefaults)
164 164
165 // Reply when the utility process has failed to obtain the printer 165 // Reply when the utility process has failed to obtain the printer
166 // capabilities and defaults. 166 // capabilities and defaults.
167 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, 167 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed,
168 std::string /* printer name */) 168 std::string /* printer name */)
OLDNEW
« no previous file with comments | « no previous file | chrome/service/cloud_print/print_system_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698