OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 interacting with frames. | 5 // IPC messages for interacting with frames. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 // | 889 // |
890 // If match rects are already cached on the browser side, |current_version| | 890 // If match rects are already cached on the browser side, |current_version| |
891 // should be the version number from the FrameHostMsg_FindMatchRects_Reply | 891 // should be the version number from the FrameHostMsg_FindMatchRects_Reply |
892 // they came in, so the renderer can tell if it needs to send updated rects. | 892 // they came in, so the renderer can tell if it needs to send updated rects. |
893 // Otherwise just pass -1 to always receive the list of rects. | 893 // Otherwise just pass -1 to always receive the list of rects. |
894 // | 894 // |
895 // There must be an active search string (it is probably most useful to call | 895 // There must be an active search string (it is probably most useful to call |
896 // this immediately after a FrameHostMsg_Find_Reply message arrives with | 896 // this immediately after a FrameHostMsg_Find_Reply message arrives with |
897 // final_update set to true). | 897 // final_update set to true). |
898 IPC_MESSAGE_ROUTED1(FrameMsg_FindMatchRects, int /* current_version */) | 898 IPC_MESSAGE_ROUTED1(FrameMsg_FindMatchRects, int /* current_version */) |
| 899 |
| 900 // Notify the renderer of our overlay routing token. |
| 901 IPC_MESSAGE_ROUTED1(FrameMsg_SetOverlayRoutingToken, |
| 902 base::UnguessableToken /* routing_token */) |
899 #endif | 903 #endif |
900 | 904 |
901 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) | 905 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
902 #if defined(OS_MACOSX) | 906 #if defined(OS_MACOSX) |
903 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, | 907 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, |
904 int /* selected index, -1 means no selection */) | 908 int /* selected index, -1 means no selection */) |
905 #else | 909 #else |
906 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, | 910 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, |
907 bool /* user canceled the popup */, | 911 bool /* user canceled the popup */, |
908 std::vector<int> /* selected indices */) | 912 std::vector<int> /* selected indices */) |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1650 std::vector<gfx::RectF> /* rects */, | 1654 std::vector<gfx::RectF> /* rects */, |
1651 gfx::RectF /* active_rect */) | 1655 gfx::RectF /* active_rect */) |
1652 | 1656 |
1653 // Response to FrameMsg_GetNearestFindResult. |distance| is the distance to the | 1657 // Response to FrameMsg_GetNearestFindResult. |distance| is the distance to the |
1654 // nearest find result in the sending frame. | 1658 // nearest find result in the sending frame. |
1655 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1659 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
1656 int /* nfr_request_id */, | 1660 int /* nfr_request_id */, |
1657 float /* distance */) | 1661 float /* distance */) |
1658 | 1662 |
1659 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) | 1663 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) |
| 1664 |
| 1665 // Request that the host send its overlay routing token for this render frame |
| 1666 // via SetOverlayRoutingToken. |
| 1667 IPC_MESSAGE_ROUTED0(FrameHostMsg_RequestOverlayRoutingToken) |
1660 #endif | 1668 #endif |
1661 | 1669 |
1662 // Adding a new message? Stick to the sort order above: first platform | 1670 // Adding a new message? Stick to the sort order above: first platform |
1663 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1671 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1664 // platform independent FrameHostMsg, then ifdefs for platform specific | 1672 // platform independent FrameHostMsg, then ifdefs for platform specific |
1665 // FrameHostMsg. | 1673 // FrameHostMsg. |
OLD | NEW |