Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: content/common/frame_messages.h

Issue 1959183002: Multi-Process Find-in-Page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disabled tests on Android Release because of crbug.com/615291. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/input_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 815
816 // Send to the RenderFrame to set text tracks state and style settings. 816 // Send to the RenderFrame to set text tracks state and style settings.
817 // Sent for top-level frames. 817 // Sent for top-level frames.
818 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings, 818 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings,
819 FrameMsg_TextTrackSettings_Params /* params */) 819 FrameMsg_TextTrackSettings_Params /* params */)
820 820
821 // Posts a message from a frame in another process to the current renderer. 821 // Posts a message from a frame in another process to the current renderer.
822 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params) 822 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params)
823 823
824 #if defined(OS_ANDROID) 824 #if defined(OS_ANDROID)
825 // Request the distance to the nearest find result in a frame from the point at
826 // (x, y), defined in fractions of the content document's width and height. The
827 // distance will be returned via FrameHostMsg_GetNearestFindResult_Reply. Note
828 // that |nfr_request_id| is a completely seperate ID from the |request_id| used
829 // in other find-related IPCs. It is specifically used to uniquely identify a
830 // nearest find result request, rather than a find request.
831 IPC_MESSAGE_ROUTED3(FrameMsg_GetNearestFindResult,
832 int /* nfr_request_id */,
833 float /* x */,
834 float /* y */)
835
836 // Activates a find result. The point (x,y) is in fractions of the content
837 // document's width and height.
838 IPC_MESSAGE_ROUTED3(FrameMsg_ActivateNearestFindResult,
839 int /* request_id */,
840 float /* x */,
841 float /* y */)
842
825 // Sent when the browser wants the bounding boxes of the current find matches. 843 // Sent when the browser wants the bounding boxes of the current find matches.
826 // 844 //
827 // If match rects are already cached on the browser side, |current_version| 845 // If match rects are already cached on the browser side, |current_version|
828 // should be the version number from the FrameHostMsg_FindMatchRects_Reply 846 // should be the version number from the FrameHostMsg_FindMatchRects_Reply
829 // they came in, so the renderer can tell if it needs to send updated rects. 847 // they came in, so the renderer can tell if it needs to send updated rects.
830 // Otherwise just pass -1 to always receive the list of rects. 848 // Otherwise just pass -1 to always receive the list of rects.
831 // 849 //
832 // There must be an active search string (it is probably most useful to call 850 // There must be an active search string (it is probably most useful to call
833 // this immediately after a FrameHostMsg_Find_Reply message arrives with 851 // this immediately after a FrameHostMsg_Find_Reply message arrives with
834 // final_update set to true). 852 // final_update set to true).
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 IPC_MESSAGE_ROUTED2(FrameMsg_AdvanceFocus, 911 IPC_MESSAGE_ROUTED2(FrameMsg_AdvanceFocus,
894 blink::WebFocusType /* type */, 912 blink::WebFocusType /* type */,
895 int32_t /* source_routing_id */) 913 int32_t /* source_routing_id */)
896 914
897 // Sent when the user wants to search for a word on the page (find-in-page). 915 // Sent when the user wants to search for a word on the page (find-in-page).
898 IPC_MESSAGE_ROUTED3(FrameMsg_Find, 916 IPC_MESSAGE_ROUTED3(FrameMsg_Find,
899 int /* request_id */, 917 int /* request_id */,
900 base::string16 /* search_text */, 918 base::string16 /* search_text */,
901 blink::WebFindOptions) 919 blink::WebFindOptions)
902 920
903 // This message notifies the renderer that the user has closed the find-in-page 921 // This message notifies the frame that it is no longer the active frame in the
922 // current find session, and so it should clear its active find match (and no
923 // longer highlight it with special coloring).
924 IPC_MESSAGE_ROUTED0(FrameMsg_ClearActiveFindMatch)
925
926 // This message notifies the frame that the user has closed the find-in-page
904 // window (and what action to take regarding the selection). 927 // window (and what action to take regarding the selection).
905 IPC_MESSAGE_ROUTED1(FrameMsg_StopFinding, content::StopFindAction /* action */) 928 IPC_MESSAGE_ROUTED1(FrameMsg_StopFinding, content::StopFindAction /* action */)
906 929
907 #if defined(ENABLE_PLUGINS) 930 #if defined(ENABLE_PLUGINS)
908 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. 931 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist.
909 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, 932 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist,
910 std::set<url::Origin> /* origin_whitelist */) 933 std::set<url::Origin> /* origin_whitelist */)
911 #endif // defined(ENABLE_PLUGINS) 934 #endif // defined(ENABLE_PLUGINS)
912 935
913 // Used to instruct the RenderFrame to go into "view source" mode. This should 936 // Used to instruct the RenderFrame to go into "view source" mode. This should
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 // your locally cached rects should still be valid). The rect coords will be 1495 // your locally cached rects should still be valid). The rect coords will be
1473 // custom normalized fractions of the document size. The rects will be sorted by 1496 // custom normalized fractions of the document size. The rects will be sorted by
1474 // frame traversal order starting in the main frame, then by dom order. 1497 // frame traversal order starting in the main frame, then by dom order.
1475 // 1498 //
1476 // |active_rect| will contain the bounding box of the active find-in-page match 1499 // |active_rect| will contain the bounding box of the active find-in-page match
1477 // marker, in similarly normalized coords (or an empty rect if there isn't one). 1500 // marker, in similarly normalized coords (or an empty rect if there isn't one).
1478 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1501 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1479 int /* version */, 1502 int /* version */,
1480 std::vector<gfx::RectF> /* rects */, 1503 std::vector<gfx::RectF> /* rects */,
1481 gfx::RectF /* active_rect */) 1504 gfx::RectF /* active_rect */)
1505
1506 // Response to FrameMsg_GetNearestFindResult. |distance| is the distance to the
1507 // nearest find result in the sending frame.
1508 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1509 int /* nfr_request_id */,
1510 float /* distance */)
1482 #endif 1511 #endif
1483 1512
1484 // Adding a new message? Stick to the sort order above: first platform 1513 // Adding a new message? Stick to the sort order above: first platform
1485 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1514 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1486 // platform independent FrameHostMsg, then ifdefs for platform specific 1515 // platform independent FrameHostMsg, then ifdefs for platform specific
1487 // FrameHostMsg. 1516 // FrameHostMsg.
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/input_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698