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

Side by Side Diff: chrome/common/print_messages.h

Issue 9705084: Block printing from blocked popup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix init order Created 8 years, 9 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 // Notify the browser a print preview page has been rendered. 374 // Notify the browser a print preview page has been rendered.
375 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage, 375 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage,
376 PrintHostMsg_DidPreviewPage_Params /* params */) 376 PrintHostMsg_DidPreviewPage_Params /* params */)
377 377
378 // Asks the browser whether the print preview has been cancelled. 378 // Asks the browser whether the print preview has been cancelled.
379 IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_CheckForCancel, 379 IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_CheckForCancel,
380 std::string /* print preview ui address */, 380 std::string /* print preview ui address */,
381 int /* request id */, 381 int /* request id */,
382 bool /* print preview cancelled */) 382 bool /* print preview cancelled */)
383 383
384 // Asks the browser whether scripted printing is allowed.
385 IPC_SYNC_MESSAGE_ROUTED0_1(PrintHostMsg_CheckScriptedPrintAllowed,
386 bool /* print allowed */)
387
384 // Sends back to the browser the complete rendered document (non-draft mode, 388 // Sends back to the browser the complete rendered document (non-draft mode,
385 // used for printing) that was requested by a PrintMsg_PrintPreview message. 389 // used for printing) that was requested by a PrintMsg_PrintPreview message.
386 // The memory handle in this message is already valid in the browser process. 390 // The memory handle in this message is already valid in the browser process.
387 IPC_MESSAGE_ROUTED1(PrintHostMsg_MetafileReadyForPrinting, 391 IPC_MESSAGE_ROUTED1(PrintHostMsg_MetafileReadyForPrinting,
388 PrintHostMsg_DidPreviewDocument_Params /* params */) 392 PrintHostMsg_DidPreviewDocument_Params /* params */)
389 393
390 // Tell the browser printing failed. 394 // Tell the browser printing failed.
391 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, 395 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed,
392 int /* document cookie */) 396 int /* document cookie */)
393 397
394 // Tell the browser print preview failed. 398 // Tell the browser print preview failed.
395 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, 399 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed,
396 int /* document cookie */) 400 int /* document cookie */)
397 401
398 // Tell the browser print preview was cancelled. 402 // Tell the browser print preview was cancelled.
399 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, 403 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled,
400 int /* document cookie */) 404 int /* document cookie */)
401 405
402 // Tell the browser print preview found the selected printer has invalid 406 // Tell the browser print preview found the selected printer has invalid
403 // settings (which typically caused by disconnected network printer or printer 407 // settings (which typically caused by disconnected network printer or printer
404 // driver is bogus). 408 // driver is bogus).
405 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings, 409 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings,
406 int /* document cookie */) 410 int /* document cookie */)
407 411
408 // Run a nested message loop in the renderer until print preview for 412 // Run a nested message loop in the renderer until print preview for
409 // window.print() finishes. 413 // window.print() finishes.
410 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview, 414 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview,
411 bool /* is_modifiable */) 415 bool /* is_modifiable */)
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_view_manager.cc ('k') | chrome/renderer/chrome_mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698