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

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: Addressed review comments. 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 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1704 // Sends back to the browser the rendered "printed page" that was requested by 1705 // Sends back to the browser the rendered "printed page" that was requested by
1705 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in 1706 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in
1706 // this message is already valid in the browser process. 1707 // this message is already valid in the browser process.
1707 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidPrintPage, 1708 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidPrintPage,
1708 ViewHostMsg_DidPrintPage_Params /* page content */) 1709 ViewHostMsg_DidPrintPage_Params /* page content */)
1709 1710
1710 // The renderer wants to know the default print settings. 1711 // The renderer wants to know the default print settings.
1711 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDefaultPrintSettings, 1712 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDefaultPrintSettings,
1712 ViewMsg_Print_Params /* default_settings */) 1713 ViewMsg_Print_Params /* default_settings */)
1713 1714
1715 // The renderer wants to know the current print settings.
1716 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetCurrentPrintSettings,
1717 int /* document_cookie */,
1718 ViewMsg_Print_Params /* current_settings */)
1719
1720 // The renderer wants to update the current print settings with new
1721 // |job_settings|.
1722 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_UpdatePrintSettings,
1723 int /* document_cookie */,
1724 std::string /* job_settings */,
1725 ViewMsg_Print_Params /* current_settings */)
1726
1714 // It's the renderer that controls the printing process when it is generated 1727 // It's the renderer that controls the printing process when it is generated
1715 // by javascript. This step is about showing UI to the user to select the 1728 // by javascript. This step is about showing UI to the user to select the
1716 // final print settings. The output parameter is the same as 1729 // final print settings. The output parameter is the same as
1717 // ViewMsg_PrintPages which is executed implicitly. 1730 // ViewMsg_PrintPages which is executed implicitly.
1718 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_ScriptedPrint, 1731 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_ScriptedPrint,
1719 ViewHostMsg_ScriptedPrint_Params, 1732 ViewHostMsg_ScriptedPrint_Params,
1720 ViewMsg_PrintPages_Params 1733 ViewMsg_PrintPages_Params
1721 /* settings chosen by the user*/) 1734 /* settings chosen by the user*/)
1722 1735
1723 // WebKit and JavaScript error messages to log to the console 1736 // WebKit and JavaScript error messages to log to the console
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
2546 // while performing stress testing. 2559 // while performing stress testing.
2547 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, 2560 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl,
2548 int /* cmd */, 2561 int /* cmd */,
2549 int /* param */) 2562 int /* param */)
2550 2563
2551 // Register a new handler for URL requests with the given scheme. 2564 // Register a new handler for URL requests with the given scheme.
2552 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, 2565 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler,
2553 std::string /* scheme */, 2566 std::string /* scheme */,
2554 GURL /* url */, 2567 GURL /* url */,
2555 string16 /* title */) 2568 string16 /* title */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698