Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: components/printing/common/print_messages.h

Issue 2962983002: Print Preview: change getPreview to cr.sendWithPromise (Closed)
Patch Set: Re-comment test Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 // This is sent when there are invalid printer settings. 442 // This is sent when there are invalid printer settings.
443 IPC_MESSAGE_ROUTED0(PrintHostMsg_ShowInvalidPrinterSettingsError) 443 IPC_MESSAGE_ROUTED0(PrintHostMsg_ShowInvalidPrinterSettingsError)
444 444
445 // Tell the browser printing failed. 445 // Tell the browser printing failed.
446 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, 446 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed,
447 int /* document cookie */) 447 int /* document cookie */)
448 448
449 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) 449 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
450 // Tell the browser print preview failed. 450 // Tell the browser print preview failed.
451 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, 451 IPC_MESSAGE_ROUTED2(PrintHostMsg_PrintPreviewFailed,
452 int /* document cookie */) 452 int /* document cookie */,
453 int /* request id */)
453 454
454 // Tell the browser print preview was cancelled. 455 // Tell the browser print preview was cancelled.
455 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, 456 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled,
456 int /* document cookie */) 457 int /* document cookie */)
457 458
458 // Tell the browser print preview found the selected printer has invalid 459 // Tell the browser print preview found the selected printer has invalid
459 // settings (which typically caused by disconnected network printer or printer 460 // settings (which typically caused by disconnected network printer or printer
460 // driver is bogus). 461 // driver is bogus).
461 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings, 462 IPC_MESSAGE_ROUTED2(PrintHostMsg_PrintPreviewInvalidPrinterSettings,
462 int /* document cookie */) 463 int /* document cookie */,
464 int /* request id */)
463 465
464 // Run a nested run loop in the renderer until print preview for 466 // Run a nested run loop in the renderer until print preview for
465 // window.print() finishes. 467 // window.print() finishes.
466 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) 468 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview)
467 469
468 // Tell the browser to show the print preview, when the document is sufficiently 470 // Tell the browser to show the print preview, when the document is sufficiently
469 // loaded such that the renderer can determine whether it is modifiable or not. 471 // loaded such that the renderer can determine whether it is modifiable or not.
470 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, 472 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview,
471 bool /* is_modifiable */) 473 bool /* is_modifiable */)
472 474
473 // Notify the browser to set print presets based on source PDF document. 475 // Notify the browser to set print presets based on source PDF document.
474 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, 476 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument,
475 PrintHostMsg_SetOptionsFromDocument_Params /* params */) 477 PrintHostMsg_SetOptionsFromDocument_Params /* params */)
476 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) 478 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698