OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 // Tells the render frame to initiate printing or print preview for a particular | 311 // Tells the render frame to initiate printing or print preview for a particular |
312 // node, depending on which mode the render frame is in. | 312 // node, depending on which mode the render frame is in. |
313 IPC_MESSAGE_ROUTED0(PrintMsg_PrintNodeUnderContextMenu) | 313 IPC_MESSAGE_ROUTED0(PrintMsg_PrintNodeUnderContextMenu) |
314 | 314 |
315 // Tells the renderer to print the print preview tab's PDF plugin without | 315 // Tells the renderer to print the print preview tab's PDF plugin without |
316 // showing the print dialog. (This is the final step in the print preview | 316 // showing the print dialog. (This is the final step in the print preview |
317 // workflow.) | 317 // workflow.) |
318 IPC_MESSAGE_ROUTED1(PrintMsg_PrintForPrintPreview, | 318 IPC_MESSAGE_ROUTED1(PrintMsg_PrintForPrintPreview, |
319 base::DictionaryValue /* settings */) | 319 base::DictionaryValue /* settings */) |
320 | 320 |
321 #if !defined(DISABLE_BASIC_PRINTING) | 321 #if defined(ENABLE_BASIC_PRINTING) |
322 // Tells the render view to switch the CSS to print media type, renders every | 322 // Tells the render view to switch the CSS to print media type, renders every |
323 // requested pages and switch back the CSS to display media type. | 323 // requested pages and switch back the CSS to display media type. |
324 IPC_MESSAGE_ROUTED0(PrintMsg_PrintPages) | 324 IPC_MESSAGE_ROUTED0(PrintMsg_PrintPages) |
325 | 325 |
326 // Like PrintMsg_PrintPages, but using the print preview document's frame/node. | 326 // Like PrintMsg_PrintPages, but using the print preview document's frame/node. |
327 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog) | 327 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog) |
328 #endif // !DISABLE_BASIC_PRINTING | 328 #endif // ENABLE_BASIC_PRINTING |
329 | 329 |
330 // Tells the render view that printing is done so it can clean up. | 330 // Tells the render view that printing is done so it can clean up. |
331 IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone, | 331 IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone, |
332 bool /* success */) | 332 bool /* success */) |
333 | 333 |
334 // Tells the render view whether scripted printing is blocked or not. | 334 // Tells the render view whether scripted printing is blocked or not. |
335 IPC_MESSAGE_ROUTED1(PrintMsg_SetScriptedPrintingBlocked, | 335 IPC_MESSAGE_ROUTED1(PrintMsg_SetScriptedPrintingBlocked, |
336 bool /* blocked */) | 336 bool /* blocked */) |
337 | 337 |
338 // Tells the render view to switch the CSS to print media type, renders every | 338 // Tells the render view to switch the CSS to print media type, renders every |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 467 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
468 | 468 |
469 // Tell the browser to show the print preview, when the document is sufficiently | 469 // Tell the browser to show the print preview, when the document is sufficiently |
470 // loaded such that the renderer can determine whether it is modifiable or not. | 470 // loaded such that the renderer can determine whether it is modifiable or not. |
471 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 471 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
472 bool /* is_modifiable */) | 472 bool /* is_modifiable */) |
473 | 473 |
474 // Notify the browser to set print presets based on source PDF document. | 474 // Notify the browser to set print presets based on source PDF document. |
475 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 475 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
476 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 476 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
OLD | NEW |