OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // TODO(sgurun) copied from chrome/common. Remove after crbug.com/322276 | 8 // TODO(sgurun) copied from chrome/common. Remove after crbug.com/322276 |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 // by javascript. This step is about showing UI to the user to select the | 364 // by javascript. This step is about showing UI to the user to select the |
365 // final print settings. The output parameter is the same as | 365 // final print settings. The output parameter is the same as |
366 // ViewMsg_PrintPages which is executed implicitly. | 366 // ViewMsg_PrintPages which is executed implicitly. |
367 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint, | 367 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint, |
368 PrintHostMsg_ScriptedPrint_Params, | 368 PrintHostMsg_ScriptedPrint_Params, |
369 PrintMsg_PrintPages_Params | 369 PrintMsg_PrintPages_Params |
370 /* settings chosen by the user*/) | 370 /* settings chosen by the user*/) |
371 | 371 |
372 #if defined(OS_ANDROID) | 372 #if defined(OS_ANDROID) |
373 // Asks the browser to create a temporary file for the renderer to fill | 373 // Asks the browser to create a temporary file for the renderer to fill |
374 // in resulting NativeMetafile in printing. | 374 // in resulting PdfMetafileSkia in printing. |
375 IPC_SYNC_MESSAGE_ROUTED0_2(PrintHostMsg_AllocateTempFileForPrinting, | 375 IPC_SYNC_MESSAGE_ROUTED0_2(PrintHostMsg_AllocateTempFileForPrinting, |
376 base::FileDescriptor /* temp file fd */, | 376 base::FileDescriptor /* temp file fd */, |
377 int /* fd in browser*/) | 377 int /* fd in browser*/) |
378 IPC_MESSAGE_ROUTED1(PrintHostMsg_TempFileForPrintingWritten, | 378 IPC_MESSAGE_ROUTED1(PrintHostMsg_TempFileForPrintingWritten, |
379 int /* fd in browser */) | 379 int /* fd in browser */) |
380 #endif | 380 #endif |
381 // Asks the browser to do print preview. | 381 // Asks the browser to do print preview. |
382 IPC_MESSAGE_ROUTED1(PrintHostMsg_RequestPrintPreview, | 382 IPC_MESSAGE_ROUTED1(PrintHostMsg_RequestPrintPreview, |
383 PrintHostMsg_RequestPrintPreview_Params /* params */) | 383 PrintHostMsg_RequestPrintPreview_Params /* params */) |
384 | 384 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 435 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
436 | 436 |
437 // Tell the browser to show the print preview, when the document is sufficiently | 437 // Tell the browser to show the print preview, when the document is sufficiently |
438 // loaded such that the renderer can determine whether it is modifiable or not. | 438 // loaded such that the renderer can determine whether it is modifiable or not. |
439 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 439 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
440 bool /* is_modifiable */) | 440 bool /* is_modifiable */) |
441 | 441 |
442 // Notify the browser that the PDF in the initiator renderer has disabled print | 442 // Notify the browser that the PDF in the initiator renderer has disabled print |
443 // scaling option. | 443 // scaling option. |
444 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) | 444 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) |
OLD | NEW |