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