| 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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 | 662 |
| 663 // Requests that the RenderView's main frame sets its opener to null. | 663 // Requests that the RenderView's main frame sets its opener to null. |
| 664 IPC_MESSAGE_ROUTED0(ViewMsg_DisownOpener) | 664 IPC_MESSAGE_ROUTED0(ViewMsg_DisownOpener) |
| 665 | 665 |
| 666 // Change the zoom level for the current main frame. If the level actually | 666 // Change the zoom level for the current main frame. If the level actually |
| 667 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 667 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
| 668 // telling it what url got zoomed and what its current zoom level is. | 668 // telling it what url got zoomed and what its current zoom level is. |
| 669 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 669 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
| 670 content::PageZoom /* function */) | 670 content::PageZoom /* function */) |
| 671 | 671 |
| 672 // Set the zoom level for the current main frame. If the level actually | |
| 673 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | |
| 674 // telling it what url got zoomed and what its current zoom level is. | |
| 675 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel, | |
| 676 double /* zoom_level */) | |
| 677 | |
| 678 // Set the zoom level for a particular url that the renderer is in the | 672 // Set the zoom level for a particular url that the renderer is in the |
| 679 // process of loading. This will be stored, to be used if the load commits | 673 // process of loading. This will be stored, to be used if the load commits |
| 680 // and ignored otherwise. | 674 // and ignored otherwise. |
| 681 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, | 675 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, |
| 682 GURL /* url */, | 676 GURL /* url */, |
| 683 double /* zoom_level */) | 677 double /* zoom_level */) |
| 684 | 678 |
| 685 // Set the zoom level for a particular url, so all render views | 679 // Set the zoom level for a particular url, so all render views |
| 686 // displaying this url can update their zoom levels to match. | 680 // displaying this url can update their zoom levels to match. |
| 687 // If scheme is empty, then only host is used for matching. | 681 // If scheme is empty, then only host is used for matching. |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1117 | 1111 |
| 1118 // Notifies the browser that we want to show a destination url for a potential | 1112 // Notifies the browser that we want to show a destination url for a potential |
| 1119 // action (e.g. when the user is hovering over a link). | 1113 // action (e.g. when the user is hovering over a link). |
| 1120 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTargetURL, | 1114 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTargetURL, |
| 1121 int32, | 1115 int32, |
| 1122 GURL) | 1116 GURL) |
| 1123 | 1117 |
| 1124 // Sent when the document element is available for the top-level frame. This | 1118 // Sent when the document element is available for the top-level frame. This |
| 1125 // happens after the page starts loading, but before all resources are | 1119 // happens after the page starts loading, but before all resources are |
| 1126 // finished. | 1120 // finished. |
| 1127 IPC_MESSAGE_ROUTED0(ViewHostMsg_DocumentAvailableInMainFrame) | 1121 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentAvailableInMainFrame, |
| 1122 bool /* uses temporary zoom settings */) |
| 1128 | 1123 |
| 1129 // Sent when the renderer loads a resource from its memory cache. | 1124 // Sent when the renderer loads a resource from its memory cache. |
| 1130 // The security info is non empty if the resource was originally loaded over | 1125 // The security info is non empty if the resource was originally loaded over |
| 1131 // a secure connection. | 1126 // a secure connection. |
| 1132 // Note: May only be sent once per URL per frame per committed load. | 1127 // Note: May only be sent once per URL per frame per committed load. |
| 1133 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidLoadResourceFromMemoryCache, | 1128 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidLoadResourceFromMemoryCache, |
| 1134 GURL /* url */, | 1129 GURL /* url */, |
| 1135 std::string /* security info */, | 1130 std::string /* security info */, |
| 1136 std::string /* http method */, | 1131 std::string /* http method */, |
| 1137 std::string /* mime type */, | 1132 std::string /* mime type */, |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1432 ui::TextInputMode /* TextInputMode of the focused node */, | 1427 ui::TextInputMode /* TextInputMode of the focused node */, |
| 1433 bool /* can_compose_inline in the focused node */) | 1428 bool /* can_compose_inline in the focused node */) |
| 1434 | 1429 |
| 1435 // Required for updating text input state. | 1430 // Required for updating text input state. |
| 1436 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, | 1431 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, |
| 1437 ViewHostMsg_TextInputState_Params /* input state params */) | 1432 ViewHostMsg_TextInputState_Params /* input state params */) |
| 1438 | 1433 |
| 1439 // Required for cancelling an ongoing input method composition. | 1434 // Required for cancelling an ongoing input method composition. |
| 1440 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) | 1435 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) |
| 1441 | 1436 |
| 1437 // Sent when creating a new main-frame document in the renderer and it turns |
| 1438 // out to be a plugin document. Contents needs to keep track of this, since |
| 1439 // zooming is handled differently for plugin documents. |
| 1440 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidCreateDocument, |
| 1441 bool /* uses_temporary_zoom_level */) |
| 1442 |
| 1442 // Sent when the renderer changes the zoom level for a particular url, so the | 1443 // Sent when the renderer changes the zoom level for a particular url, so the |
| 1443 // browser can update its records. If remember is true, then url is used to | 1444 // browser can update its records. If the view is a plugin doc, then url is |
| 1444 // update the zoom level for all pages in that site. Otherwise, the render | 1445 // used to update the zoom level for all pages in that site. Otherwise, the |
| 1445 // view's id is used so that only the menu is updated. | 1446 // render view's id is used so that only the menu is updated. |
| 1446 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, | 1447 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, |
| 1447 double /* zoom_level */, | 1448 double /* zoom_level */, |
| 1448 bool /* remember */, | |
| 1449 GURL /* url */) | 1449 GURL /* url */) |
| 1450 | 1450 |
| 1451 // Updates the minimum/maximum allowed zoom percent for this tab from the | 1451 // Updates the minimum/maximum allowed zoom percent for this tab from the |
| 1452 // default values. If |remember| is true, then the zoom setting is applied to | 1452 // default values. If |remember| is true, then the zoom setting is applied to |
| 1453 // other pages in the site and is saved, otherwise it only applies to this | 1453 // other pages in the site and is saved, otherwise it only applies to this |
| 1454 // tab. | 1454 // tab. |
| 1455 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | 1455 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, |
| 1456 int /* minimum_percent */, | 1456 int /* minimum_percent */, |
| 1457 int /* maximum_percent */, | 1457 int /* maximum_percent */) |
| 1458 bool /* remember */) | |
| 1459 | 1458 |
| 1460 // Notify the browser that this render process can or can't be suddenly | 1459 // Notify the browser that this render process can or can't be suddenly |
| 1461 // terminated. | 1460 // terminated. |
| 1462 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 1461 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
| 1463 bool /* enabled */) | 1462 bool /* enabled */) |
| 1464 | 1463 |
| 1465 IPC_STRUCT_BEGIN(ViewHostMsg_CompositorSurfaceBuffersSwapped_Params) | 1464 IPC_STRUCT_BEGIN(ViewHostMsg_CompositorSurfaceBuffersSwapped_Params) |
| 1466 IPC_STRUCT_MEMBER(int32, surface_id) | 1465 IPC_STRUCT_MEMBER(int32, surface_id) |
| 1467 IPC_STRUCT_MEMBER(uint64, surface_handle) | 1466 IPC_STRUCT_MEMBER(uint64, surface_handle) |
| 1468 IPC_STRUCT_MEMBER(int32, route_id) | 1467 IPC_STRUCT_MEMBER(int32, route_id) |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1734 // synchronously (see crbug.com/120597). This IPC message sends the character | 1733 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 1735 // bounds after every composition change to always have correct bound info. | 1734 // bounds after every composition change to always have correct bound info. |
| 1736 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1735 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 1737 gfx::Range /* composition range */, | 1736 gfx::Range /* composition range */, |
| 1738 std::vector<gfx::Rect> /* character bounds */) | 1737 std::vector<gfx::Rect> /* character bounds */) |
| 1739 #endif | 1738 #endif |
| 1740 | 1739 |
| 1741 // Adding a new message? Stick to the sort order above: first platform | 1740 // Adding a new message? Stick to the sort order above: first platform |
| 1742 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1741 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1743 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1742 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |