Chromium Code Reviews| 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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 882 // | 882 // |
| 883 // If match rects are already cached on the browser side, |current_version| | 883 // If match rects are already cached on the browser side, |current_version| |
| 884 // should be the version number from the FrameHostMsg_FindMatchRects_Reply | 884 // should be the version number from the FrameHostMsg_FindMatchRects_Reply |
| 885 // they came in, so the renderer can tell if it needs to send updated rects. | 885 // they came in, so the renderer can tell if it needs to send updated rects. |
| 886 // Otherwise just pass -1 to always receive the list of rects. | 886 // Otherwise just pass -1 to always receive the list of rects. |
| 887 // | 887 // |
| 888 // There must be an active search string (it is probably most useful to call | 888 // There must be an active search string (it is probably most useful to call |
| 889 // this immediately after a FrameHostMsg_Find_Reply message arrives with | 889 // this immediately after a FrameHostMsg_Find_Reply message arrives with |
| 890 // final_update set to true). | 890 // final_update set to true). |
| 891 IPC_MESSAGE_ROUTED1(FrameMsg_FindMatchRects, int /* current_version */) | 891 IPC_MESSAGE_ROUTED1(FrameMsg_FindMatchRects, int /* current_version */) |
| 892 | |
| 893 // Notify the renderer of our overlay routing token. | |
| 894 IPC_MESSAGE_ROUTED2(FrameMsg_SetOverlayRoutingToken, | |
| 895 uint64_t /* high */, | |
|
dcheng
2017/04/03 19:12:40
Why not just send the base::UnguessableToken direc
liberato (no reviews please)
2017/04/04 17:49:29
because i forgot that it had paramtraits already.
| |
| 896 uint64_t /* low */) | |
| 892 #endif | 897 #endif |
| 893 | 898 |
| 894 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) | 899 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
| 895 #if defined(OS_MACOSX) | 900 #if defined(OS_MACOSX) |
| 896 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, | 901 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, |
| 897 int /* selected index, -1 means no selection */) | 902 int /* selected index, -1 means no selection */) |
| 898 #else | 903 #else |
| 899 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, | 904 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, |
| 900 bool /* user canceled the popup */, | 905 bool /* user canceled the popup */, |
| 901 std::vector<int> /* selected indices */) | 906 std::vector<int> /* selected indices */) |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1639 std::vector<gfx::RectF> /* rects */, | 1644 std::vector<gfx::RectF> /* rects */, |
| 1640 gfx::RectF /* active_rect */) | 1645 gfx::RectF /* active_rect */) |
| 1641 | 1646 |
| 1642 // Response to FrameMsg_GetNearestFindResult. |distance| is the distance to the | 1647 // Response to FrameMsg_GetNearestFindResult. |distance| is the distance to the |
| 1643 // nearest find result in the sending frame. | 1648 // nearest find result in the sending frame. |
| 1644 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1649 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
| 1645 int /* nfr_request_id */, | 1650 int /* nfr_request_id */, |
| 1646 float /* distance */) | 1651 float /* distance */) |
| 1647 | 1652 |
| 1648 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) | 1653 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) |
| 1654 | |
| 1655 // Request that the host send its overlay routing token for this render frame | |
| 1656 // via SetOverlayRoutingToken. | |
| 1657 IPC_MESSAGE_ROUTED0(FrameHostMsg_RequestOverlayRoutingToken) | |
| 1649 #endif | 1658 #endif |
| 1650 | 1659 |
| 1651 // Adding a new message? Stick to the sort order above: first platform | 1660 // Adding a new message? Stick to the sort order above: first platform |
| 1652 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1661 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1653 // platform independent FrameHostMsg, then ifdefs for platform specific | 1662 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1654 // FrameHostMsg. | 1663 // FrameHostMsg. |
| OLD | NEW |