OLD | NEW |
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 // IPC messages for printing. | 5 // IPC messages for printing. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
| 8 #include <string> |
| 9 |
8 #include "base/values.h" | 10 #include "base/values.h" |
9 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
10 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
11 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
12 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/rect.h" |
13 | 15 |
14 #define IPC_MESSAGE_START PrintMsgStart | 16 #define IPC_MESSAGE_START PrintMsgStart |
15 | 17 |
16 // Parameters for a render request. | 18 // Parameters for a render request. |
17 IPC_STRUCT_BEGIN(PrintMsg_Print_Params) | 19 IPC_STRUCT_BEGIN(PrintMsg_Print_Params) |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 IPC_STRUCT_MEMBER(gfx::NativeViewId, host_window_id) | 123 IPC_STRUCT_MEMBER(gfx::NativeViewId, host_window_id) |
122 IPC_STRUCT_MEMBER(int, cookie) | 124 IPC_STRUCT_MEMBER(int, cookie) |
123 IPC_STRUCT_MEMBER(int, expected_pages_count) | 125 IPC_STRUCT_MEMBER(int, expected_pages_count) |
124 IPC_STRUCT_MEMBER(bool, has_selection) | 126 IPC_STRUCT_MEMBER(bool, has_selection) |
125 IPC_STRUCT_MEMBER(bool, use_overlays) | 127 IPC_STRUCT_MEMBER(bool, use_overlays) |
126 IPC_STRUCT_END() | 128 IPC_STRUCT_END() |
127 | 129 |
128 | 130 |
129 // Messages sent from the browser to the renderer. | 131 // Messages sent from the browser to the renderer. |
130 | 132 |
| 133 // Tells the renderer to setup or teardown a whitelist allowing the |
| 134 // print preview page to communicate with cloud print. |
| 135 IPC_MESSAGE_ROUTED1(PrintMsg_PrintSetupWhitelist, |
| 136 std::string /* host */) |
| 137 |
| 138 IPC_MESSAGE_ROUTED1(PrintMsg_PrintTeardownWhitelist, |
| 139 std::string /* host */) |
| 140 |
131 // Tells the render view to initiate print preview for the entire document. | 141 // Tells the render view to initiate print preview for the entire document. |
132 IPC_MESSAGE_ROUTED0(PrintMsg_InitiatePrintPreview) | 142 IPC_MESSAGE_ROUTED0(PrintMsg_InitiatePrintPreview) |
133 | 143 |
134 // Tells the render view to initiate printing or print preview for a particular | 144 // Tells the render view to initiate printing or print preview for a particular |
135 // node, depending on which mode the render view is in. | 145 // node, depending on which mode the render view is in. |
136 IPC_MESSAGE_ROUTED0(PrintMsg_PrintNodeUnderContextMenu) | 146 IPC_MESSAGE_ROUTED0(PrintMsg_PrintNodeUnderContextMenu) |
137 | 147 |
138 // Tells the renderer to print the print preview tab's PDF plugin without | 148 // Tells the renderer to print the print preview tab's PDF plugin without |
139 // showing the print dialog. (This is the final step in the print preview | 149 // showing the print dialog. (This is the final step in the print preview |
140 // workflow.) | 150 // workflow.) |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, | 230 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, |
221 PrintHostMsg_DidPreviewDocument_Params /* params */) | 231 PrintHostMsg_DidPreviewDocument_Params /* params */) |
222 | 232 |
223 // Tell the browser printing failed. | 233 // Tell the browser printing failed. |
224 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, | 234 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, |
225 int /* document cookie */) | 235 int /* document cookie */) |
226 | 236 |
227 // Tell the browser print preview failed. | 237 // Tell the browser print preview failed. |
228 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, | 238 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, |
229 int /* document cookie */) | 239 int /* document cookie */) |
OLD | NEW |