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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1120 | 1114 |
1121 // Notifies the browser that we want to show a destination url for a potential | 1115 // Notifies the browser that we want to show a destination url for a potential |
1122 // action (e.g. when the user is hovering over a link). | 1116 // action (e.g. when the user is hovering over a link). |
1123 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTargetURL, | 1117 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTargetURL, |
1124 int32, | 1118 int32, |
1125 GURL) | 1119 GURL) |
1126 | 1120 |
1127 // Sent when the document element is available for the top-level frame. This | 1121 // Sent when the document element is available for the top-level frame. This |
1128 // happens after the page starts loading, but before all resources are | 1122 // happens after the page starts loading, but before all resources are |
1129 // finished. | 1123 // finished. |
1130 IPC_MESSAGE_ROUTED0(ViewHostMsg_DocumentAvailableInMainFrame) | 1124 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentAvailableInMainFrame, |
1125 bool /* uses temporary zoom settings */) | |
1131 | 1126 |
1132 // Sent when the renderer loads a resource from its memory cache. | 1127 // Sent when the renderer loads a resource from its memory cache. |
1133 // The security info is non empty if the resource was originally loaded over | 1128 // The security info is non empty if the resource was originally loaded over |
1134 // a secure connection. | 1129 // a secure connection. |
1135 // Note: May only be sent once per URL per frame per committed load. | 1130 // Note: May only be sent once per URL per frame per committed load. |
1136 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidLoadResourceFromMemoryCache, | 1131 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidLoadResourceFromMemoryCache, |
1137 GURL /* url */, | 1132 GURL /* url */, |
1138 std::string /* security info */, | 1133 std::string /* security info */, |
1139 std::string /* http method */, | 1134 std::string /* http method */, |
1140 std::string /* mime type */, | 1135 std::string /* mime type */, |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1434 ui::TextInputMode /* TextInputMode of the focused node */, | 1429 ui::TextInputMode /* TextInputMode of the focused node */, |
1435 bool /* can_compose_inline in the focused node */) | 1430 bool /* can_compose_inline in the focused node */) |
1436 | 1431 |
1437 // Required for updating text input state. | 1432 // Required for updating text input state. |
1438 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, | 1433 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, |
1439 ViewHostMsg_TextInputState_Params /* input state params */) | 1434 ViewHostMsg_TextInputState_Params /* input state params */) |
1440 | 1435 |
1441 // Required for cancelling an ongoing input method composition. | 1436 // Required for cancelling an ongoing input method composition. |
1442 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) | 1437 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) |
1443 | 1438 |
1439 // Sent when creating a new main-frame document in the renderer and it turns | |
1440 // out to be a plugin document. Contents needs to keep track of this, since | |
1441 // zooming is handled differently for plugin documents. | |
Peter Kasting
2014/05/28 22:49:58
This change no longer seems to describe anywhere _
wjmaclean
2014/05/29 14:49:45
I've added this comment to the callsites that chec
| |
1442 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidCreateDocument, | |
1443 bool /* uses_temporary_zoom_settings */) | |
1444 | |
1444 // Sent when the renderer changes the zoom level for a particular url, so the | 1445 // Sent when the renderer changes the zoom level for a particular url, so the |
1445 // browser can update its records. If remember is true, then url is used to | 1446 // browser can update its records. If the view is a plugin doc, then url is |
1446 // update the zoom level for all pages in that site. Otherwise, the render | 1447 // used to update the zoom level for all pages in that site. Otherwise, the |
1447 // view's id is used so that only the menu is updated. | 1448 // render view's id is used so that only the menu is updated. |
1448 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, | 1449 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, |
1449 double /* zoom_level */, | 1450 double /* zoom_level */, |
1450 bool /* remember */, | |
1451 GURL /* url */) | 1451 GURL /* url */) |
1452 | 1452 |
1453 // Updates the minimum/maximum allowed zoom percent for this tab from the | 1453 // Updates the minimum/maximum allowed zoom percent for this tab from the |
1454 // default values. If |remember| is true, then the zoom setting is applied to | 1454 // default values. If |remember| is true, then the zoom setting is applied to |
1455 // other pages in the site and is saved, otherwise it only applies to this | 1455 // other pages in the site and is saved, otherwise it only applies to this |
1456 // tab. | 1456 // tab. |
1457 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | 1457 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, |
1458 int /* minimum_percent */, | 1458 int /* minimum_percent */, |
1459 int /* maximum_percent */, | 1459 int /* maximum_percent */) |
1460 bool /* remember */) | |
1461 | 1460 |
1462 // Notify the browser that this render process can or can't be suddenly | 1461 // Notify the browser that this render process can or can't be suddenly |
1463 // terminated. | 1462 // terminated. |
1464 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 1463 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
1465 bool /* enabled */) | 1464 bool /* enabled */) |
1466 | 1465 |
1467 IPC_STRUCT_BEGIN(ViewHostMsg_CompositorSurfaceBuffersSwapped_Params) | 1466 IPC_STRUCT_BEGIN(ViewHostMsg_CompositorSurfaceBuffersSwapped_Params) |
1468 IPC_STRUCT_MEMBER(int32, surface_id) | 1467 IPC_STRUCT_MEMBER(int32, surface_id) |
1469 IPC_STRUCT_MEMBER(uint64, surface_handle) | 1468 IPC_STRUCT_MEMBER(uint64, surface_handle) |
1470 IPC_STRUCT_MEMBER(int32, route_id) | 1469 IPC_STRUCT_MEMBER(int32, route_id) |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1736 // synchronously (see crbug.com/120597). This IPC message sends the character | 1735 // synchronously (see crbug.com/120597). This IPC message sends the character |
1737 // bounds after every composition change to always have correct bound info. | 1736 // bounds after every composition change to always have correct bound info. |
1738 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1737 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
1739 gfx::Range /* composition range */, | 1738 gfx::Range /* composition range */, |
1740 std::vector<gfx::Rect> /* character bounds */) | 1739 std::vector<gfx::Rect> /* character bounds */) |
1741 #endif | 1740 #endif |
1742 | 1741 |
1743 // Adding a new message? Stick to the sort order above: first platform | 1742 // Adding a new message? Stick to the sort order above: first platform |
1744 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1743 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1745 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1744 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |