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

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

Issue 6533006: Print Preview: Hook up the print button to initiate printing without displaying a print dialog. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: '' Created 9 years, 10 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) 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 #include <map> 5 #include <map>
6 #include <set> 6 #include <set>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // Tells the renderer to perform the given action on the media player 124 // Tells the renderer to perform the given action on the media player
125 // located at the given point. 125 // located at the given point.
126 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, 126 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt,
127 gfx::Point, /* location */ 127 gfx::Point, /* location */
128 WebKit::WebMediaPlayerAction) 128 WebKit::WebMediaPlayerAction)
129 129
130 IPC_MESSAGE_ROUTED0(ViewMsg_PrintNodeUnderContextMenu) 130 IPC_MESSAGE_ROUTED0(ViewMsg_PrintNodeUnderContextMenu)
131 131
132 // Tells the renderer to print the print preview tab's PDF plugin without 132 // Tells the renderer to print the print preview tab's PDF plugin without
133 // showing the print dialog. 133 // showing the print dialog.
134 IPC_MESSAGE_ROUTED0(ViewMsg_PrintForPrintPreview) 134 IPC_MESSAGE_ROUTED1(ViewMsg_PrintForPrintPreview,
135 std::string /* job_settings*/)
135 136
136 // Tells the render view to close. 137 // Tells the render view to close.
137 IPC_MESSAGE_ROUTED0(ViewMsg_Close) 138 IPC_MESSAGE_ROUTED0(ViewMsg_Close)
138 139
139 // Tells the render view to change its size. A ViewHostMsg_PaintRect message 140 // Tells the render view to change its size. A ViewHostMsg_PaintRect message
140 // is generated in response provided new_size is not empty and not equal to 141 // is generated in response provided new_size is not empty and not equal to
141 // the view's current size. The generated ViewHostMsg_PaintRect message will 142 // the view's current size. The generated ViewHostMsg_PaintRect message will
142 // have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that 143 // have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that
143 // we don't have to fetch it every time WebKit asks for it. 144 // we don't have to fetch it every time WebKit asks for it.
144 IPC_MESSAGE_ROUTED2(ViewMsg_Resize, 145 IPC_MESSAGE_ROUTED2(ViewMsg_Resize,
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 // Sends back to the browser the rendered "printed page" that was requested by 1701 // Sends back to the browser the rendered "printed page" that was requested by
1701 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in 1702 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in
1702 // this message is already valid in the browser process. 1703 // this message is already valid in the browser process.
1703 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidPrintPage, 1704 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidPrintPage,
1704 ViewHostMsg_DidPrintPage_Params /* page content */) 1705 ViewHostMsg_DidPrintPage_Params /* page content */)
1705 1706
1706 // The renderer wants to know the default print settings. 1707 // The renderer wants to know the default print settings.
1707 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDefaultPrintSettings, 1708 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDefaultPrintSettings,
1708 ViewMsg_Print_Params /* default_settings */) 1709 ViewMsg_Print_Params /* default_settings */)
1709 1710
1711 // The renderer wants to know the current print settings.
1712 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetCurrentPrintSettings,
1713 int /* document_cookie */,
1714 ViewMsg_Print_Params /* current_settings */)
1715
1716 // The renderer wants to update the current print settings with new
1717 // |job_settings|.
1718 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_UpdatePrintSettings,
1719 int /* document_cookie */,
1720 std::string /* job_settings */,
1721 ViewMsg_Print_Params /* current_settings */)
1722
1710 // It's the renderer that controls the printing process when it is generated 1723 // It's the renderer that controls the printing process when it is generated
1711 // by javascript. This step is about showing UI to the user to select the 1724 // by javascript. This step is about showing UI to the user to select the
1712 // final print settings. The output parameter is the same as 1725 // final print settings. The output parameter is the same as
1713 // ViewMsg_PrintPages which is executed implicitly. 1726 // ViewMsg_PrintPages which is executed implicitly.
1714 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_ScriptedPrint, 1727 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_ScriptedPrint,
1715 ViewHostMsg_ScriptedPrint_Params, 1728 ViewHostMsg_ScriptedPrint_Params,
1716 ViewMsg_PrintPages_Params 1729 ViewMsg_PrintPages_Params
1717 /* settings chosen by the user*/) 1730 /* settings chosen by the user*/)
1718 1731
1719 // WebKit and JavaScript error messages to log to the console 1732 // WebKit and JavaScript error messages to log to the console
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
2530 // The currently displayed PDF has an unsupported feature. 2543 // The currently displayed PDF has an unsupported feature.
2531 IPC_MESSAGE_ROUTED0(ViewHostMsg_PDFHasUnsupportedFeature) 2544 IPC_MESSAGE_ROUTED0(ViewHostMsg_PDFHasUnsupportedFeature)
2532 2545
2533 // JavaScript related messages ----------------------------------------------- 2546 // JavaScript related messages -----------------------------------------------
2534 2547
2535 // Notify the JavaScript engine in the render to change its parameters 2548 // Notify the JavaScript engine in the render to change its parameters
2536 // while performing stress testing. 2549 // while performing stress testing.
2537 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, 2550 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl,
2538 int /* cmd */, 2551 int /* cmd */,
2539 int /* param */) 2552 int /* param */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698