| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 RendererPreferences) | 122 RendererPreferences) |
| 123 | 123 |
| 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 |
| 133 // showing the print dialog. |
| 134 IPC_MESSAGE_ROUTED1(ViewMsg_PrintForPrintPreview, |
| 135 std::string /* job_settings*/) |
| 136 |
| 132 // Tells the render view to close. | 137 // Tells the render view to close. |
| 133 IPC_MESSAGE_ROUTED0(ViewMsg_Close) | 138 IPC_MESSAGE_ROUTED0(ViewMsg_Close) |
| 134 | 139 |
| 135 // 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 |
| 136 // 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 |
| 137 // the view's current size. The generated ViewHostMsg_PaintRect message will | 142 // the view's current size. The generated ViewHostMsg_PaintRect message will |
| 138 // 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 |
| 139 // 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. |
| 140 IPC_MESSAGE_ROUTED2(ViewMsg_Resize, | 145 IPC_MESSAGE_ROUTED2(ViewMsg_Resize, |
| 141 gfx::Size /* new_size */, | 146 gfx::Size /* new_size */, |
| (...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1695 // Sends back to the browser the rendered "printed page" that was requested by | 1700 // Sends back to the browser the rendered "printed page" that was requested by |
| 1696 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in | 1701 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in |
| 1697 // this message is already valid in the browser process. | 1702 // this message is already valid in the browser process. |
| 1698 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidPrintPage, | 1703 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidPrintPage, |
| 1699 ViewHostMsg_DidPrintPage_Params /* page content */) | 1704 ViewHostMsg_DidPrintPage_Params /* page content */) |
| 1700 | 1705 |
| 1701 // The renderer wants to know the default print settings. | 1706 // The renderer wants to know the default print settings. |
| 1702 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDefaultPrintSettings, | 1707 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDefaultPrintSettings, |
| 1703 ViewMsg_Print_Params /* default_settings */) | 1708 ViewMsg_Print_Params /* default_settings */) |
| 1704 | 1709 |
| 1710 // The renderer wants to know the current print settings. |
| 1711 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetCurrentPrintSettings, |
| 1712 int /* document_cookie */, |
| 1713 ViewMsg_Print_Params /* current_settings */) |
| 1714 |
| 1715 // The renderer wants to update the current print settings with new |
| 1716 // |job_settings|. |
| 1717 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_UpdatePrintSettings, |
| 1718 int /* document_cookie */, |
| 1719 std::string /* job_settings */, |
| 1720 ViewMsg_Print_Params /* current_settings */) |
| 1721 |
| 1705 // It's the renderer that controls the printing process when it is generated | 1722 // It's the renderer that controls the printing process when it is generated |
| 1706 // by javascript. This step is about showing UI to the user to select the | 1723 // by javascript. This step is about showing UI to the user to select the |
| 1707 // final print settings. The output parameter is the same as | 1724 // final print settings. The output parameter is the same as |
| 1708 // ViewMsg_PrintPages which is executed implicitly. | 1725 // ViewMsg_PrintPages which is executed implicitly. |
| 1709 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_ScriptedPrint, | 1726 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_ScriptedPrint, |
| 1710 ViewHostMsg_ScriptedPrint_Params, | 1727 ViewHostMsg_ScriptedPrint_Params, |
| 1711 ViewMsg_PrintPages_Params | 1728 ViewMsg_PrintPages_Params |
| 1712 /* settings chosen by the user*/) | 1729 /* settings chosen by the user*/) |
| 1713 | 1730 |
| 1714 // WebKit and JavaScript error messages to log to the console | 1731 // WebKit and JavaScript error messages to log to the console |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2524 // The currently displayed PDF has an unsupported feature. | 2541 // The currently displayed PDF has an unsupported feature. |
| 2525 IPC_MESSAGE_ROUTED0(ViewHostMsg_PDFHasUnsupportedFeature) | 2542 IPC_MESSAGE_ROUTED0(ViewHostMsg_PDFHasUnsupportedFeature) |
| 2526 | 2543 |
| 2527 // JavaScript related messages ----------------------------------------------- | 2544 // JavaScript related messages ----------------------------------------------- |
| 2528 | 2545 |
| 2529 // Notify the JavaScript engine in the render to change its parameters | 2546 // Notify the JavaScript engine in the render to change its parameters |
| 2530 // while performing stress testing. | 2547 // while performing stress testing. |
| 2531 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, | 2548 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, |
| 2532 int /* cmd */, | 2549 int /* cmd */, |
| 2533 int /* param */) | 2550 int /* param */) |
| OLD | NEW |