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