Chromium Code Reviews| 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, DictionaryValue /* settings*/) |
|
Lei Zhang
2011/03/02 23:28:54
nit: put the DictionaryValue on a new line to be c
kmadhusu
2011/03/04 19:39:02
Done.
| |
| 135 | 135 |
| 136 // Tells the render view to close. | 136 // Tells the render view to close. |
| 137 IPC_MESSAGE_ROUTED0(ViewMsg_Close) | 137 IPC_MESSAGE_ROUTED0(ViewMsg_Close) |
| 138 | 138 |
| 139 // Tells the render view to change its size. A ViewHostMsg_PaintRect message | 139 // 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 | 140 // 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 | 141 // 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 | 142 // 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. | 143 // we don't have to fetch it every time WebKit asks for it. |
| 144 IPC_MESSAGE_ROUTED2(ViewMsg_Resize, | 144 IPC_MESSAGE_ROUTED2(ViewMsg_Resize, |
| (...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1705 // 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 |
| 1706 // 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 |
| 1707 // this message is already valid in the browser process. | 1707 // this message is already valid in the browser process. |
| 1708 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidPrintPage, | 1708 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidPrintPage, |
| 1709 ViewHostMsg_DidPrintPage_Params /* page content */) | 1709 ViewHostMsg_DidPrintPage_Params /* page content */) |
| 1710 | 1710 |
| 1711 // The renderer wants to know the default print settings. | 1711 // The renderer wants to know the default print settings. |
| 1712 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDefaultPrintSettings, | 1712 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDefaultPrintSettings, |
| 1713 ViewMsg_Print_Params /* default_settings */) | 1713 ViewMsg_Print_Params /* default_settings */) |
| 1714 | 1714 |
| 1715 // The renderer wants to know the current print settings. | |
| 1716 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetCurrentPrintSettings, | |
| 1717 int /* document_cookie */, | |
|
Lei Zhang
2011/03/02 23:28:54
ViewMsg_Print_Params already has a document cookie
kmadhusu
2011/03/04 19:39:02
Removed ViewHostMsg_GetCurrentPrintSettings Info.
| |
| 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 DictionaryValue /* job_settings */, | |
| 1725 ViewMsg_Print_Params /* current_settings */) | |
| 1726 | |
| 1715 // 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 |
| 1716 // 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 |
| 1717 // final print settings. The output parameter is the same as | 1729 // final print settings. The output parameter is the same as |
| 1718 // ViewMsg_PrintPages which is executed implicitly. | 1730 // ViewMsg_PrintPages which is executed implicitly. |
| 1719 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_ScriptedPrint, | 1731 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_ScriptedPrint, |
| 1720 ViewHostMsg_ScriptedPrint_Params, | 1732 ViewHostMsg_ScriptedPrint_Params, |
| 1721 ViewMsg_PrintPages_Params | 1733 ViewMsg_PrintPages_Params |
| 1722 /* settings chosen by the user*/) | 1734 /* settings chosen by the user*/) |
| 1723 | 1735 |
| 1724 // WebKit and JavaScript error messages to log to the console | 1736 // WebKit and JavaScript error messages to log to the console |
| (...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2545 // while performing stress testing. | 2557 // while performing stress testing. |
| 2546 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, | 2558 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, |
| 2547 int /* cmd */, | 2559 int /* cmd */, |
| 2548 int /* param */) | 2560 int /* param */) |
| 2549 | 2561 |
| 2550 // Register a new handler for URL requests with the given scheme. | 2562 // Register a new handler for URL requests with the given scheme. |
| 2551 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, | 2563 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, |
| 2552 std::string /* scheme */, | 2564 std::string /* scheme */, |
| 2553 GURL /* url */, | 2565 GURL /* url */, |
| 2554 string16 /* title */) | 2566 string16 /* title */) |
| OLD | NEW |