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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 337 |
338 // Tells the render view to switch the CSS to print media type, renders every | 338 // Tells the render view to switch the CSS to print media type, renders every |
339 // requested pages for print preview using the given |settings|. This gets | 339 // requested pages for print preview using the given |settings|. This gets |
340 // called multiple times as the user updates settings. | 340 // called multiple times as the user updates settings. |
341 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview, | 341 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview, |
342 base::DictionaryValue /* settings */) | 342 base::DictionaryValue /* settings */) |
343 | 343 |
344 // Like PrintMsg_PrintPages, but using the print preview document's frame/node. | 344 // Like PrintMsg_PrintPages, but using the print preview document's frame/node. |
345 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog) | 345 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog) |
346 | 346 |
347 // Tells a renderer to stop blocking script initiated printing. | |
348 IPC_MESSAGE_ROUTED0(PrintMsg_ResetScriptedPrintCount) | |
349 | |
350 // Messages sent from the renderer to the browser. | 347 // Messages sent from the renderer to the browser. |
351 | 348 |
352 #if defined(OS_WIN) | 349 #if defined(OS_WIN) |
353 // Duplicates a shared memory handle from the renderer to the browser. Then | 350 // Duplicates a shared memory handle from the renderer to the browser. Then |
354 // the renderer can flush the handle. | 351 // the renderer can flush the handle. |
355 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DuplicateSection, | 352 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DuplicateSection, |
356 base::SharedMemoryHandle /* renderer handle */, | 353 base::SharedMemoryHandle /* renderer handle */, |
357 base::SharedMemoryHandle /* browser handle */) | 354 base::SharedMemoryHandle /* browser handle */) |
358 #endif | 355 #endif |
359 | 356 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 469 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
473 | 470 |
474 // Tell the browser to show the print preview, when the document is sufficiently | 471 // Tell the browser to show the print preview, when the document is sufficiently |
475 // loaded such that the renderer can determine whether it is modifiable or not. | 472 // loaded such that the renderer can determine whether it is modifiable or not. |
476 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 473 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
477 bool /* is_modifiable */) | 474 bool /* is_modifiable */) |
478 | 475 |
479 // Notify the browser to set print presets based on source PDF document. | 476 // Notify the browser to set print presets based on source PDF document. |
480 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 477 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
481 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 478 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
OLD | NEW |