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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 // by javascript. This step is about showing UI to the user to select the | 388 // by javascript. This step is about showing UI to the user to select the |
389 // final print settings. The output parameter is the same as | 389 // final print settings. The output parameter is the same as |
390 // ViewMsg_PrintPages which is executed implicitly. | 390 // ViewMsg_PrintPages which is executed implicitly. |
391 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint, | 391 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint, |
392 PrintHostMsg_ScriptedPrint_Params, | 392 PrintHostMsg_ScriptedPrint_Params, |
393 PrintMsg_PrintPages_Params | 393 PrintMsg_PrintPages_Params |
394 /* settings chosen by the user*/) | 394 /* settings chosen by the user*/) |
395 | 395 |
396 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) | 396 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) |
397 // Asks the browser to create a temporary file for the renderer to fill | 397 // Asks the browser to create a temporary file for the renderer to fill |
398 // in resulting NativeMetafile in printing. | 398 // in resulting PdfMetafileSkia in printing. |
399 IPC_SYNC_MESSAGE_CONTROL1_2(PrintHostMsg_AllocateTempFileForPrinting, | 399 IPC_SYNC_MESSAGE_CONTROL1_2(PrintHostMsg_AllocateTempFileForPrinting, |
400 int /* render_view_id */, | 400 int /* render_view_id */, |
401 base::FileDescriptor /* temp file fd */, | 401 base::FileDescriptor /* temp file fd */, |
402 int /* fd in browser*/) // Used only by Chrome OS. | 402 int /* fd in browser*/) // Used only by Chrome OS. |
403 IPC_MESSAGE_CONTROL2(PrintHostMsg_TempFileForPrintingWritten, | 403 IPC_MESSAGE_CONTROL2(PrintHostMsg_TempFileForPrintingWritten, |
404 int /* render_view_id */, | 404 int /* render_view_id */, |
405 int /* fd in browser */) // Used only by Chrome OS. | 405 int /* fd in browser */) // Used only by Chrome OS. |
406 #endif | 406 #endif |
407 | 407 |
408 // Asks the browser to do print preview. | 408 // Asks the browser to do print preview. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 465 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
466 | 466 |
467 // Tell the browser to show the print preview, when the document is sufficiently | 467 // 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. | 468 // loaded such that the renderer can determine whether it is modifiable or not. |
469 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 469 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
470 bool /* is_modifiable */) | 470 bool /* is_modifiable */) |
471 | 471 |
472 // Notify the browser to set print presets based on source PDF document. | 472 // Notify the browser to set print presets based on source PDF document. |
473 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 473 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
474 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 474 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
OLD | NEW |