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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 // in resulting PdfMetafileSkia in printing. | 400 // in resulting PdfMetafileSkia in printing. |
401 IPC_SYNC_MESSAGE_CONTROL1_2(PrintHostMsg_AllocateTempFileForPrinting, | 401 IPC_SYNC_MESSAGE_CONTROL1_2(PrintHostMsg_AllocateTempFileForPrinting, |
402 int /* render_view_id */, | 402 int /* render_view_id */, |
403 base::FileDescriptor /* temp file fd */, | 403 base::FileDescriptor /* temp file fd */, |
404 int /* fd in browser*/) // Used only by Chrome OS. | 404 int /* fd in browser*/) // Used only by Chrome OS. |
405 IPC_MESSAGE_CONTROL2(PrintHostMsg_TempFileForPrintingWritten, | 405 IPC_MESSAGE_CONTROL2(PrintHostMsg_TempFileForPrintingWritten, |
406 int /* render_view_id */, | 406 int /* render_view_id */, |
407 int /* fd in browser */) // Used only by Chrome OS. | 407 int /* fd in browser */) // Used only by Chrome OS. |
408 #endif | 408 #endif |
409 | 409 |
| 410 #if defined(OS_ANDROID) |
| 411 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_InitiateAndroidPrint, |
| 412 int /* cookie */ ) |
| 413 #endif |
| 414 |
410 // Asks the browser to do print preview. | 415 // Asks the browser to do print preview. |
411 IPC_MESSAGE_ROUTED1(PrintHostMsg_RequestPrintPreview, | 416 IPC_MESSAGE_ROUTED1(PrintHostMsg_RequestPrintPreview, |
412 PrintHostMsg_RequestPrintPreview_Params /* params */) | 417 PrintHostMsg_RequestPrintPreview_Params /* params */) |
413 | 418 |
414 // Notify the browser the number of pages in the print preview document. | 419 // Notify the browser the number of pages in the print preview document. |
415 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidGetPreviewPageCount, | 420 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidGetPreviewPageCount, |
416 PrintHostMsg_DidGetPreviewPageCount_Params /* params */) | 421 PrintHostMsg_DidGetPreviewPageCount_Params /* params */) |
417 | 422 |
418 // Notify the browser of the default page layout according to the currently | 423 // Notify the browser of the default page layout according to the currently |
419 // selected printer and page size. | 424 // selected printer and page size. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 472 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
468 | 473 |
469 // Tell the browser to show the print preview, when the document is sufficiently | 474 // 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. | 475 // loaded such that the renderer can determine whether it is modifiable or not. |
471 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 476 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
472 bool /* is_modifiable */) | 477 bool /* is_modifiable */) |
473 | 478 |
474 // Notify the browser to set print presets based on source PDF document. | 479 // Notify the browser to set print presets based on source PDF document. |
475 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 480 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
476 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 481 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
OLD | NEW |