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 // 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 |
322 // requested pages and switch back the CSS to display media type. | 323 // requested pages and switch back the CSS to display media type. |
323 IPC_MESSAGE_ROUTED0(PrintMsg_PrintPages) | 324 IPC_MESSAGE_ROUTED0(PrintMsg_PrintPages) |
324 | 325 |
| 326 // Like PrintMsg_PrintPages, but using the print preview document's frame/node. |
| 327 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog) |
| 328 #endif // !DISABLE_BASIC_PRINTING |
| 329 |
325 // 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. |
326 IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone, | 331 IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone, |
327 bool /* success */) | 332 bool /* success */) |
328 | 333 |
329 // Tells the render view whether scripted printing is blocked or not. | 334 // Tells the render view whether scripted printing is blocked or not. |
330 IPC_MESSAGE_ROUTED1(PrintMsg_SetScriptedPrintingBlocked, | 335 IPC_MESSAGE_ROUTED1(PrintMsg_SetScriptedPrintingBlocked, |
331 bool /* blocked */) | 336 bool /* blocked */) |
332 | 337 |
333 // 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 |
334 // requested pages for print preview using the given |settings|. This gets | 339 // requested pages for print preview using the given |settings|. This gets |
335 // called multiple times as the user updates settings. | 340 // called multiple times as the user updates settings. |
336 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview, | 341 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview, |
337 base::DictionaryValue /* settings */) | 342 base::DictionaryValue /* settings */) |
338 | 343 |
339 // Like PrintMsg_PrintPages, but using the print preview document's frame/node. | |
340 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog) | |
341 | |
342 // Messages sent from the renderer to the browser. | 344 // Messages sent from the renderer to the browser. |
343 | 345 |
344 #if defined(OS_WIN) | 346 #if defined(OS_WIN) |
345 // Duplicates a shared memory handle from the renderer to the browser. Then | 347 // Duplicates a shared memory handle from the renderer to the browser. Then |
346 // the renderer can flush the handle. | 348 // the renderer can flush the handle. |
347 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DuplicateSection, | 349 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DuplicateSection, |
348 base::SharedMemoryHandle /* renderer handle */, | 350 base::SharedMemoryHandle /* renderer handle */, |
349 base::SharedMemoryHandle /* browser handle */) | 351 base::SharedMemoryHandle /* browser handle */) |
350 #endif | 352 #endif |
351 | 353 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 467 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
466 | 468 |
467 // 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 |
468 // 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. |
469 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 471 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
470 bool /* is_modifiable */) | 472 bool /* is_modifiable */) |
471 | 473 |
472 // 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. |
473 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 475 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
474 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 476 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
OLD | NEW |