OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // TODO(sgurun) copied from chrome/common. Remove after crbug.com/322276 | 8 // TODO(sgurun) copied from chrome/common. Remove after crbug.com/322276 |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 IPC_STRUCT_MEMBER(bool, has_selection) | 274 IPC_STRUCT_MEMBER(bool, has_selection) |
275 IPC_STRUCT_MEMBER(printing::MarginType, margin_type) | 275 IPC_STRUCT_MEMBER(printing::MarginType, margin_type) |
276 IPC_STRUCT_END() | 276 IPC_STRUCT_END() |
277 | 277 |
278 | 278 |
279 // Messages sent from the browser to the renderer. | 279 // Messages sent from the browser to the renderer. |
280 | 280 |
281 // Tells the render view to initiate print preview for the entire document. | 281 // Tells the render view to initiate print preview for the entire document. |
282 IPC_MESSAGE_ROUTED1(PrintMsg_InitiatePrintPreview, bool /* selection_only */) | 282 IPC_MESSAGE_ROUTED1(PrintMsg_InitiatePrintPreview, bool /* selection_only */) |
283 | 283 |
284 // Tells the render view to initiate printing or print preview for a particular | 284 // Tells the render frame to initiate printing or print preview for a particular |
285 // node, depending on which mode the render view is in. | 285 // node, depending on which mode the render frame is in. |
286 IPC_MESSAGE_ROUTED0(PrintMsg_PrintNodeUnderContextMenu) | 286 IPC_MESSAGE_ROUTED0(PrintMsg_PrintNodeUnderContextMenu) |
287 | 287 |
288 // Tells the renderer to print the print preview tab's PDF plugin without | 288 // Tells the renderer to print the print preview tab's PDF plugin without |
289 // showing the print dialog. (This is the final step in the print preview | 289 // showing the print dialog. (This is the final step in the print preview |
290 // workflow.) | 290 // workflow.) |
291 IPC_MESSAGE_ROUTED1(PrintMsg_PrintForPrintPreview, | 291 IPC_MESSAGE_ROUTED1(PrintMsg_PrintForPrintPreview, |
292 base::DictionaryValue /* settings */) | 292 base::DictionaryValue /* settings */) |
293 | 293 |
294 // Tells the render view to switch the CSS to print media type, renders every | 294 // Tells the render view to switch the CSS to print media type, renders every |
295 // requested pages and switch back the CSS to display media type. | 295 // requested pages and switch back the CSS to display media type. |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 434 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
435 | 435 |
436 // Tell the browser to show the print preview, when the document is sufficiently | 436 // Tell the browser to show the print preview, when the document is sufficiently |
437 // loaded such that the renderer can determine whether it is modifiable or not. | 437 // loaded such that the renderer can determine whether it is modifiable or not. |
438 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 438 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
439 bool /* is_modifiable */) | 439 bool /* is_modifiable */) |
440 | 440 |
441 // Notify the browser that the PDF in the initiator renderer has disabled print | 441 // Notify the browser that the PDF in the initiator renderer has disabled print |
442 // scaling option. | 442 // scaling option. |
443 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) | 443 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) |
OLD | NEW |