OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 // called multiple times as the user updates settings. | 277 // called multiple times as the user updates settings. |
278 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview, | 278 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview, |
279 DictionaryValue /* settings */) | 279 DictionaryValue /* settings */) |
280 | 280 |
281 // Like PrintMsg_PrintPages, but using the print preview document's frame/node. | 281 // Like PrintMsg_PrintPages, but using the print preview document's frame/node. |
282 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog) | 282 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog) |
283 | 283 |
284 // Tells a renderer to stop blocking script initiated printing. | 284 // Tells a renderer to stop blocking script initiated printing. |
285 IPC_MESSAGE_ROUTED0(PrintMsg_ResetScriptedPrintCount) | 285 IPC_MESSAGE_ROUTED0(PrintMsg_ResetScriptedPrintCount) |
286 | 286 |
| 287 // Tells a renderer print preview has finished so it can exit its nested loop. |
| 288 IPC_MESSAGE_ROUTED0(PrintMsg_PrintPreviewDone) |
| 289 |
287 // Messages sent from the renderer to the browser. | 290 // Messages sent from the renderer to the browser. |
288 | 291 |
289 #if defined(OS_WIN) | 292 #if defined(OS_WIN) |
290 // Duplicates a shared memory handle from the renderer to the browser. Then | 293 // Duplicates a shared memory handle from the renderer to the browser. Then |
291 // the renderer can flush the handle. | 294 // the renderer can flush the handle. |
292 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DuplicateSection, | 295 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DuplicateSection, |
293 base::SharedMemoryHandle /* renderer handle */, | 296 base::SharedMemoryHandle /* renderer handle */, |
294 base::SharedMemoryHandle /* browser handle */) | 297 base::SharedMemoryHandle /* browser handle */) |
295 #endif | 298 #endif |
296 | 299 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 | 384 |
382 // Tell the browser print preview was cancelled. | 385 // Tell the browser print preview was cancelled. |
383 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, | 386 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, |
384 int /* document cookie */) | 387 int /* document cookie */) |
385 | 388 |
386 // Tell the browser print preview found the selected printer has invalid | 389 // Tell the browser print preview found the selected printer has invalid |
387 // settings (which typically caused by disconnected network printer or printer | 390 // settings (which typically caused by disconnected network printer or printer |
388 // driver is bogus). | 391 // driver is bogus). |
389 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings, | 392 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings, |
390 int /* document cookie */) | 393 int /* document cookie */) |
OLD | NEW |