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 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 | 790 |
791 // Send to the RenderFrame to set text tracks state and style settings. | 791 // Send to the RenderFrame to set text tracks state and style settings. |
792 // Sent for top-level frames. | 792 // Sent for top-level frames. |
793 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings, | 793 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings, |
794 FrameMsg_TextTrackSettings_Params /* params */) | 794 FrameMsg_TextTrackSettings_Params /* params */) |
795 | 795 |
796 // Posts a message from a frame in another process to the current renderer. | 796 // Posts a message from a frame in another process to the current renderer. |
797 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params) | 797 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params) |
798 | 798 |
799 #if defined(OS_ANDROID) | 799 #if defined(OS_ANDROID) |
| 800 // Request the distance to the nearest find result in a frame from the point at |
| 801 // (x, y), defined in fractions of the content document's width and height. The |
| 802 // distance will be returned via FrameHostMsg_GetNearestFindResult_Reply. Note |
| 803 // that |nfr_request_id| is a completely seperate ID from the |request_id| used |
| 804 // in other find-related IPCs. It is specifically used to uniquely identify a |
| 805 // nearest find result request, rather than a find request. |
| 806 IPC_MESSAGE_ROUTED3(FrameMsg_GetNearestFindResult, |
| 807 int /* nfr_request_id */, |
| 808 float /* x */, |
| 809 float /* y */) |
| 810 |
| 811 // Activates a find result. The point (x,y) is in fractions of the content |
| 812 // document's width and height. |
| 813 IPC_MESSAGE_ROUTED3(FrameMsg_ActivateNearestFindResult, |
| 814 int /* request_id */, |
| 815 float /* x */, |
| 816 float /* y */) |
| 817 |
800 // Sent when the browser wants the bounding boxes of the current find matches. | 818 // Sent when the browser wants the bounding boxes of the current find matches. |
801 // | 819 // |
802 // If match rects are already cached on the browser side, |current_version| | 820 // If match rects are already cached on the browser side, |current_version| |
803 // should be the version number from the FrameHostMsg_FindMatchRects_Reply | 821 // should be the version number from the FrameHostMsg_FindMatchRects_Reply |
804 // they came in, so the renderer can tell if it needs to send updated rects. | 822 // they came in, so the renderer can tell if it needs to send updated rects. |
805 // Otherwise just pass -1 to always receive the list of rects. | 823 // Otherwise just pass -1 to always receive the list of rects. |
806 // | 824 // |
807 // There must be an active search string (it is probably most useful to call | 825 // There must be an active search string (it is probably most useful to call |
808 // this immediately after a FrameHostMsg_Find_Reply message arrives with | 826 // this immediately after a FrameHostMsg_Find_Reply message arrives with |
809 // final_update set to true). | 827 // final_update set to true). |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 IPC_MESSAGE_ROUTED2(FrameMsg_AdvanceFocus, | 886 IPC_MESSAGE_ROUTED2(FrameMsg_AdvanceFocus, |
869 blink::WebFocusType /* type */, | 887 blink::WebFocusType /* type */, |
870 int32_t /* source_routing_id */) | 888 int32_t /* source_routing_id */) |
871 | 889 |
872 // Sent when the user wants to search for a word on the page (find-in-page). | 890 // Sent when the user wants to search for a word on the page (find-in-page). |
873 IPC_MESSAGE_ROUTED3(FrameMsg_Find, | 891 IPC_MESSAGE_ROUTED3(FrameMsg_Find, |
874 int /* request_id */, | 892 int /* request_id */, |
875 base::string16 /* search_text */, | 893 base::string16 /* search_text */, |
876 blink::WebFindOptions) | 894 blink::WebFindOptions) |
877 | 895 |
878 // This message notifies the renderer that the user has closed the find-in-page | 896 // This message notifies the frame that it is no longer the active frame in the |
| 897 // current find session, and so it should clear its active find match (and no |
| 898 // longer highlight it with special coloring). |
| 899 IPC_MESSAGE_ROUTED0(FrameMsg_ClearActiveFindMatch) |
| 900 |
| 901 // This message notifies the frame that the user has closed the find-in-page |
879 // window (and what action to take regarding the selection). | 902 // window (and what action to take regarding the selection). |
880 IPC_MESSAGE_ROUTED1(FrameMsg_StopFinding, content::StopFindAction /* action */) | 903 IPC_MESSAGE_ROUTED1(FrameMsg_StopFinding, content::StopFindAction /* action */) |
881 | 904 |
882 #if defined(ENABLE_PLUGINS) | 905 #if defined(ENABLE_PLUGINS) |
883 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. | 906 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. |
884 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, | 907 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, |
885 std::set<url::Origin> /* origin_whitelist */) | 908 std::set<url::Origin> /* origin_whitelist */) |
886 #endif // defined(ENABLE_PLUGINS) | 909 #endif // defined(ENABLE_PLUGINS) |
887 | 910 |
888 // Used to instruct the RenderFrame to go into "view source" mode. This should | 911 // Used to instruct the RenderFrame to go into "view source" mode. This should |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1439 // your locally cached rects should still be valid). The rect coords will be | 1462 // your locally cached rects should still be valid). The rect coords will be |
1440 // custom normalized fractions of the document size. The rects will be sorted by | 1463 // custom normalized fractions of the document size. The rects will be sorted by |
1441 // frame traversal order starting in the main frame, then by dom order. | 1464 // frame traversal order starting in the main frame, then by dom order. |
1442 // | 1465 // |
1443 // |active_rect| will contain the bounding box of the active find-in-page match | 1466 // |active_rect| will contain the bounding box of the active find-in-page match |
1444 // marker, in similarly normalized coords (or an empty rect if there isn't one). | 1467 // marker, in similarly normalized coords (or an empty rect if there isn't one). |
1445 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, | 1468 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, |
1446 int /* version */, | 1469 int /* version */, |
1447 std::vector<gfx::RectF> /* rects */, | 1470 std::vector<gfx::RectF> /* rects */, |
1448 gfx::RectF /* active_rect */) | 1471 gfx::RectF /* active_rect */) |
| 1472 |
| 1473 // Response to FrameMsg_GetNearestFindResult. |distance| is the distance to the |
| 1474 // nearest find result in the sending frame. |
| 1475 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
| 1476 int /* nfr_request_id */, |
| 1477 float /* distance */) |
1449 #endif | 1478 #endif |
1450 | 1479 |
1451 // Adding a new message? Stick to the sort order above: first platform | 1480 // Adding a new message? Stick to the sort order above: first platform |
1452 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1481 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1453 // platform independent FrameHostMsg, then ifdefs for platform specific | 1482 // platform independent FrameHostMsg, then ifdefs for platform specific |
1454 // FrameHostMsg. | 1483 // FrameHostMsg. |
OLD | NEW |