| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 | 666 |
| 667 // Requests that the RenderView's main frame sets its opener to null. | 667 // Requests that the RenderView's main frame sets its opener to null. |
| 668 IPC_MESSAGE_ROUTED0(ViewMsg_DisownOpener) | 668 IPC_MESSAGE_ROUTED0(ViewMsg_DisownOpener) |
| 669 | 669 |
| 670 // Change the zoom level for the current main frame. If the level actually | 670 // Change the zoom level for the current main frame. If the level actually |
| 671 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 671 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
| 672 // telling it what url got zoomed and what its current zoom level is. | 672 // telling it what url got zoomed and what its current zoom level is. |
| 673 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 673 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
| 674 content::PageZoom /* function */) | 674 content::PageZoom /* function */) |
| 675 | 675 |
| 676 // Set the zoom level for the current main frame. If the level actually | |
| 677 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | |
| 678 // telling it what url got zoomed and what its current zoom level is. | |
| 679 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel, | |
| 680 double /* zoom_level */) | |
| 681 | |
| 682 // Set the zoom level for a particular url that the renderer is in the | 676 // Set the zoom level for a particular url that the renderer is in the |
| 683 // process of loading. This will be stored, to be used if the load commits | 677 // process of loading. This will be stored, to be used if the load commits |
| 684 // and ignored otherwise. | 678 // and ignored otherwise. |
| 685 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, | 679 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, |
| 686 GURL /* url */, | 680 GURL /* url */, |
| 687 double /* zoom_level */) | 681 double /* zoom_level */) |
| 688 | 682 |
| 689 // Set the zoom level for a particular url, so all render views | 683 // Set the zoom level for a particular url, so all render views |
| 690 // displaying this url can update their zoom levels to match. | 684 // displaying this url can update their zoom levels to match. |
| 691 // If scheme is empty, then only host is used for matching. | 685 // If scheme is empty, then only host is used for matching. |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1124 | 1118 |
| 1125 // Notifies the browser that we want to show a destination url for a potential | 1119 // Notifies the browser that we want to show a destination url for a potential |
| 1126 // action (e.g. when the user is hovering over a link). | 1120 // action (e.g. when the user is hovering over a link). |
| 1127 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTargetURL, | 1121 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTargetURL, |
| 1128 int32, | 1122 int32, |
| 1129 GURL) | 1123 GURL) |
| 1130 | 1124 |
| 1131 // Sent when the document element is available for the top-level frame. This | 1125 // Sent when the document element is available for the top-level frame. This |
| 1132 // happens after the page starts loading, but before all resources are | 1126 // happens after the page starts loading, but before all resources are |
| 1133 // finished. | 1127 // finished. |
| 1134 IPC_MESSAGE_ROUTED0(ViewHostMsg_DocumentAvailableInMainFrame) | 1128 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentAvailableInMainFrame, |
| 1129 bool /* uses temporary zoom settings */) |
| 1135 | 1130 |
| 1136 // Sent when the renderer loads a resource from its memory cache. | 1131 // Sent when the renderer loads a resource from its memory cache. |
| 1137 // The security info is non empty if the resource was originally loaded over | 1132 // The security info is non empty if the resource was originally loaded over |
| 1138 // a secure connection. | 1133 // a secure connection. |
| 1139 // Note: May only be sent once per URL per frame per committed load. | 1134 // Note: May only be sent once per URL per frame per committed load. |
| 1140 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidLoadResourceFromMemoryCache, | 1135 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidLoadResourceFromMemoryCache, |
| 1141 GURL /* url */, | 1136 GURL /* url */, |
| 1142 std::string /* security info */, | 1137 std::string /* security info */, |
| 1143 std::string /* http method */, | 1138 std::string /* http method */, |
| 1144 std::string /* mime type */, | 1139 std::string /* mime type */, |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1438 ui::TextInputMode /* TextInputMode of the focused node */, | 1433 ui::TextInputMode /* TextInputMode of the focused node */, |
| 1439 bool /* can_compose_inline in the focused node */) | 1434 bool /* can_compose_inline in the focused node */) |
| 1440 | 1435 |
| 1441 // Required for updating text input state. | 1436 // Required for updating text input state. |
| 1442 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, | 1437 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, |
| 1443 ViewHostMsg_TextInputState_Params /* input state params */) | 1438 ViewHostMsg_TextInputState_Params /* input state params */) |
| 1444 | 1439 |
| 1445 // Required for cancelling an ongoing input method composition. | 1440 // Required for cancelling an ongoing input method composition. |
| 1446 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) | 1441 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) |
| 1447 | 1442 |
| 1443 // Sent when creating a new main-frame document in the renderer and it turns |
| 1444 // out to be a plugin document. Contents needs to keep track of this, since |
| 1445 // zooming is handled differently for plugin documents. |
| 1446 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidCreateDocument, |
| 1447 bool /* uses_temporary_zoom_settings */) |
| 1448 |
| 1448 // Sent when the renderer changes the zoom level for a particular url, so the | 1449 // Sent when the renderer changes the zoom level for a particular url, so the |
| 1449 // browser can update its records. If remember is true, then url is used to | 1450 // browser can update its records. If the view is a plugin doc, then url is |
| 1450 // update the zoom level for all pages in that site. Otherwise, the render | 1451 // used to update the zoom level for all pages in that site. Otherwise, the |
| 1451 // view's id is used so that only the menu is updated. | 1452 // render view's id is used so that only the menu is updated. |
| 1452 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, | 1453 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, |
| 1453 double /* zoom_level */, | 1454 double /* zoom_level */, |
| 1454 bool /* remember */, | |
| 1455 GURL /* url */) | 1455 GURL /* url */) |
| 1456 | 1456 |
| 1457 // Updates the minimum/maximum allowed zoom percent for this tab from the | 1457 // Updates the minimum/maximum allowed zoom percent for this tab from the |
| 1458 // default values. If |remember| is true, then the zoom setting is applied to | 1458 // default values. If |remember| is true, then the zoom setting is applied to |
| 1459 // other pages in the site and is saved, otherwise it only applies to this | 1459 // other pages in the site and is saved, otherwise it only applies to this |
| 1460 // tab. | 1460 // tab. |
| 1461 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | 1461 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, |
| 1462 int /* minimum_percent */, | 1462 int /* minimum_percent */, |
| 1463 int /* maximum_percent */, | 1463 int /* maximum_percent */) |
| 1464 bool /* remember */) | |
| 1465 | 1464 |
| 1466 // Notify the browser that this render process can or can't be suddenly | 1465 // Notify the browser that this render process can or can't be suddenly |
| 1467 // terminated. | 1466 // terminated. |
| 1468 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 1467 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
| 1469 bool /* enabled */) | 1468 bool /* enabled */) |
| 1470 | 1469 |
| 1471 // Informs the browser of updated frame names. | 1470 // Informs the browser of updated frame names. |
| 1472 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateFrameName, | 1471 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateFrameName, |
| 1473 int /* frame_id */, | 1472 int /* frame_id */, |
| 1474 bool /* is_top_level */, | 1473 bool /* is_top_level */, |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1747 // synchronously (see crbug.com/120597). This IPC message sends the character | 1746 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 1748 // bounds after every composition change to always have correct bound info. | 1747 // bounds after every composition change to always have correct bound info. |
| 1749 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1748 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 1750 gfx::Range /* composition range */, | 1749 gfx::Range /* composition range */, |
| 1751 std::vector<gfx::Rect> /* character bounds */) | 1750 std::vector<gfx::Rect> /* character bounds */) |
| 1752 #endif | 1751 #endif |
| 1753 | 1752 |
| 1754 // Adding a new message? Stick to the sort order above: first platform | 1753 // Adding a new message? Stick to the sort order above: first platform |
| 1755 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1754 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1756 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1755 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |