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

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

Issue 546373002: Revert of More System Dialog printing code disabled on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@522493002
Patch Set: Mon Sep 8 00:14:11 PDT 2014 Created 6 years, 3 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // Tells the render frame to initiate printing or print preview for a particular 311 // Tells the render frame to initiate printing or print preview for a particular
312 // node, depending on which mode the render frame is in. 312 // node, depending on which mode the render frame is in.
313 IPC_MESSAGE_ROUTED0(PrintMsg_PrintNodeUnderContextMenu) 313 IPC_MESSAGE_ROUTED0(PrintMsg_PrintNodeUnderContextMenu)
314 314
315 // Tells the renderer to print the print preview tab's PDF plugin without 315 // Tells the renderer to print the print preview tab's PDF plugin without
316 // showing the print dialog. (This is the final step in the print preview 316 // showing the print dialog. (This is the final step in the print preview
317 // workflow.) 317 // workflow.)
318 IPC_MESSAGE_ROUTED1(PrintMsg_PrintForPrintPreview, 318 IPC_MESSAGE_ROUTED1(PrintMsg_PrintForPrintPreview,
319 base::DictionaryValue /* settings */) 319 base::DictionaryValue /* settings */)
320 320
321 #if !defined(OS_WIN)
322 // Tells the render view to switch the CSS to print media type, renders every 321 // Tells the render view to switch the CSS to print media type, renders every
323 // requested pages and switch back the CSS to display media type. 322 // requested pages and switch back the CSS to display media type.
324 IPC_MESSAGE_ROUTED0(PrintMsg_PrintPages) 323 IPC_MESSAGE_ROUTED0(PrintMsg_PrintPages)
325 324
326 // Like PrintMsg_PrintPages, but using the print preview document's frame/node.
327 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog)
328 #endif // !OS_WIN
329
330 // Tells the render view that printing is done so it can clean up. 325 // Tells the render view that printing is done so it can clean up.
331 IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone, 326 IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone,
332 bool /* success */) 327 bool /* success */)
333 328
334 // Tells the render view whether scripted printing is blocked or not. 329 // Tells the render view whether scripted printing is blocked or not.
335 IPC_MESSAGE_ROUTED1(PrintMsg_SetScriptedPrintingBlocked, 330 IPC_MESSAGE_ROUTED1(PrintMsg_SetScriptedPrintingBlocked,
336 bool /* blocked */) 331 bool /* blocked */)
337 332
338 // Tells the render view to switch the CSS to print media type, renders every 333 // 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 334 // requested pages for print preview using the given |settings|. This gets
340 // called multiple times as the user updates settings. 335 // called multiple times as the user updates settings.
341 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview, 336 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview,
342 base::DictionaryValue /* settings */) 337 base::DictionaryValue /* settings */)
343 338
339 // Like PrintMsg_PrintPages, but using the print preview document's frame/node.
340 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog)
341
344 // Messages sent from the renderer to the browser. 342 // Messages sent from the renderer to the browser.
345 343
346 #if defined(OS_WIN) 344 #if defined(OS_WIN)
347 // Duplicates a shared memory handle from the renderer to the browser. Then 345 // Duplicates a shared memory handle from the renderer to the browser. Then
348 // the renderer can flush the handle. 346 // the renderer can flush the handle.
349 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DuplicateSection, 347 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DuplicateSection,
350 base::SharedMemoryHandle /* renderer handle */, 348 base::SharedMemoryHandle /* renderer handle */,
351 base::SharedMemoryHandle /* browser handle */) 349 base::SharedMemoryHandle /* browser handle */)
352 #endif 350 #endif
353 351
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) 465 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview)
468 466
469 // Tell the browser to show the print preview, when the document is sufficiently 467 // Tell the browser to show the print preview, when the document is sufficiently
470 // loaded such that the renderer can determine whether it is modifiable or not. 468 // loaded such that the renderer can determine whether it is modifiable or not.
471 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, 469 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview,
472 bool /* is_modifiable */) 470 bool /* is_modifiable */)
473 471
474 // Notify the browser to set print presets based on source PDF document. 472 // Notify the browser to set print presets based on source PDF document.
475 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, 473 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument,
476 PrintHostMsg_SetOptionsFromDocument_Params /* params */) 474 PrintHostMsg_SetOptionsFromDocument_Params /* params */)
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_ui.cc ('k') | chrome/renderer/printing/print_web_view_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698