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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 PrintHostMsg_ScriptedPrint_Params, | 397 PrintHostMsg_ScriptedPrint_Params, |
398 PrintMsg_PrintPages_Params | 398 PrintMsg_PrintPages_Params |
399 /* settings chosen by the user*/) | 399 /* settings chosen by the user*/) |
400 | 400 |
401 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) | 401 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) |
402 // Asks the browser to create a temporary file for the renderer to fill | 402 // Asks the browser to create a temporary file for the renderer to fill |
403 // in resulting PdfMetafileSkia in printing. | 403 // in resulting PdfMetafileSkia in printing. |
404 IPC_SYNC_MESSAGE_CONTROL1_2(PrintHostMsg_AllocateTempFileForPrinting, | 404 IPC_SYNC_MESSAGE_CONTROL1_2(PrintHostMsg_AllocateTempFileForPrinting, |
405 int /* render_view_id */, | 405 int /* render_view_id */, |
406 base::FileDescriptor /* temp file fd */, | 406 base::FileDescriptor /* temp file fd */, |
407 int /* fd in browser*/) // Used only by Chrome OS. | 407 int /* fd in browser*/) // Used by Chrome OS |
| 408 // and WebView. |
408 IPC_MESSAGE_CONTROL2(PrintHostMsg_TempFileForPrintingWritten, | 409 IPC_MESSAGE_CONTROL2(PrintHostMsg_TempFileForPrintingWritten, |
409 int /* render_view_id */, | 410 int /* render_view_id */, |
410 int /* fd in browser */) // Used only by Chrome OS. | 411 int /* fd in browser */) // Used by Chrome OS and WebView. |
411 #endif | 412 #endif |
412 | 413 |
413 // Asks the browser to do print preview. | 414 // Asks the browser to do print preview. |
414 IPC_MESSAGE_ROUTED1(PrintHostMsg_RequestPrintPreview, | 415 IPC_MESSAGE_ROUTED1(PrintHostMsg_RequestPrintPreview, |
415 PrintHostMsg_RequestPrintPreview_Params /* params */) | 416 PrintHostMsg_RequestPrintPreview_Params /* params */) |
416 | 417 |
417 // Notify the browser the number of pages in the print preview document. | 418 // Notify the browser the number of pages in the print preview document. |
418 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidGetPreviewPageCount, | 419 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidGetPreviewPageCount, |
419 PrintHostMsg_DidGetPreviewPageCount_Params /* params */) | 420 PrintHostMsg_DidGetPreviewPageCount_Params /* params */) |
420 | 421 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 471 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
471 | 472 |
472 // Tell the browser to show the print preview, when the document is sufficiently | 473 // Tell the browser to show the print preview, when the document is sufficiently |
473 // loaded such that the renderer can determine whether it is modifiable or not. | 474 // loaded such that the renderer can determine whether it is modifiable or not. |
474 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 475 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
475 bool /* is_modifiable */) | 476 bool /* is_modifiable */) |
476 | 477 |
477 // Notify the browser to set print presets based on source PDF document. | 478 // Notify the browser to set print presets based on source PDF document. |
478 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 479 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
479 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 480 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
OLD | NEW |