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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 // this message is already valid in the browser process. | 376 // this message is already valid in the browser process. |
377 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPrintPage, | 377 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPrintPage, |
378 PrintHostMsg_DidPrintPage_Params /* page content */) | 378 PrintHostMsg_DidPrintPage_Params /* page content */) |
379 | 379 |
380 // The renderer wants to know the default print settings. | 380 // The renderer wants to know the default print settings. |
381 IPC_SYNC_MESSAGE_ROUTED0_1(PrintHostMsg_GetDefaultPrintSettings, | 381 IPC_SYNC_MESSAGE_ROUTED0_1(PrintHostMsg_GetDefaultPrintSettings, |
382 PrintMsg_Print_Params /* default_settings */) | 382 PrintMsg_Print_Params /* default_settings */) |
383 | 383 |
384 // The renderer wants to update the current print settings with new | 384 // The renderer wants to update the current print settings with new |
385 // |job_settings|. | 385 // |job_settings|. |
386 IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_UpdatePrintSettings, | 386 IPC_SYNC_MESSAGE_ROUTED2_2(PrintHostMsg_UpdatePrintSettings, |
387 int /* document_cookie */, | 387 int /* document_cookie */, |
388 base::DictionaryValue /* job_settings */, | 388 base::DictionaryValue /* job_settings */, |
389 PrintMsg_PrintPages_Params /* current_settings */) | 389 PrintMsg_PrintPages_Params /* current_settings */, |
| 390 bool /* canceled */) |
390 | 391 |
391 // It's the renderer that controls the printing process when it is generated | 392 // It's the renderer that controls the printing process when it is generated |
392 // by javascript. This step is about showing UI to the user to select the | 393 // by javascript. This step is about showing UI to the user to select the |
393 // final print settings. The output parameter is the same as | 394 // final print settings. The output parameter is the same as |
394 // ViewMsg_PrintPages which is executed implicitly. | 395 // ViewMsg_PrintPages which is executed implicitly. |
395 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint, | 396 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint, |
396 PrintHostMsg_ScriptedPrint_Params, | 397 PrintHostMsg_ScriptedPrint_Params, |
397 PrintMsg_PrintPages_Params | 398 PrintMsg_PrintPages_Params |
398 /* settings chosen by the user*/) | 399 /* settings chosen by the user*/) |
399 | 400 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 470 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
470 | 471 |
471 // Tell the browser to show the print preview, when the document is sufficiently | 472 // Tell the browser to show the print preview, when the document is sufficiently |
472 // loaded such that the renderer can determine whether it is modifiable or not. | 473 // loaded such that the renderer can determine whether it is modifiable or not. |
473 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 474 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
474 bool /* is_modifiable */) | 475 bool /* is_modifiable */) |
475 | 476 |
476 // Notify the browser to set print presets based on source PDF document. | 477 // Notify the browser to set print presets based on source PDF document. |
477 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 478 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
478 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 479 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
OLD | NEW |