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

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

Issue 2571583008: Support tracking focused element for OOPIFs. (Closed)
Patch Set: Do not call ScrollFocusedEditableNodeIntoRect for OOPIFs. Created 3 years, 12 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
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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 IPC_MESSAGE_ROUTED0(FrameMsg_WillEnterFullscreen) 767 IPC_MESSAGE_ROUTED0(FrameMsg_WillEnterFullscreen)
768 768
769 // Send to the RenderFrame to set text tracks state and style settings. 769 // Send to the RenderFrame to set text tracks state and style settings.
770 // Sent for top-level frames. 770 // Sent for top-level frames.
771 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings, 771 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings,
772 FrameMsg_TextTrackSettings_Params /* params */) 772 FrameMsg_TextTrackSettings_Params /* params */)
773 773
774 // Posts a message from a frame in another process to the current renderer. 774 // Posts a message from a frame in another process to the current renderer.
775 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params) 775 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params)
776 776
777 // Tells the RenderFrame to clear the focused element (if any).
778 IPC_MESSAGE_ROUTED0(FrameMsg_ClearFocusedElement)
779
777 #if defined(OS_ANDROID) 780 #if defined(OS_ANDROID)
778 // Request the distance to the nearest find result in a frame from the point at 781 // Request the distance to the nearest find result in a frame from the point at
779 // (x, y), defined in fractions of the content document's width and height. The 782 // (x, y), defined in fractions of the content document's width and height. The
780 // distance will be returned via FrameHostMsg_GetNearestFindResult_Reply. Note 783 // distance will be returned via FrameHostMsg_GetNearestFindResult_Reply. Note
781 // that |nfr_request_id| is a completely seperate ID from the |request_id| used 784 // that |nfr_request_id| is a completely seperate ID from the |request_id| used
782 // in other find-related IPCs. It is specifically used to uniquely identify a 785 // in other find-related IPCs. It is specifically used to uniquely identify a
783 // nearest find result request, rather than a find request. 786 // nearest find result request, rather than a find request.
784 IPC_MESSAGE_ROUTED3(FrameMsg_GetNearestFindResult, 787 IPC_MESSAGE_ROUTED3(FrameMsg_GetNearestFindResult,
785 int /* nfr_request_id */, 788 int /* nfr_request_id */,
786 float /* x */, 789 float /* x */,
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 bool /* cookies_enabled */) 1109 bool /* cookies_enabled */)
1107 1110
1108 // Sent by the renderer process to check whether client 3D APIs 1111 // Sent by the renderer process to check whether client 3D APIs
1109 // (Pepper 3D, WebGL) are explicitly blocked. 1112 // (Pepper 3D, WebGL) are explicitly blocked.
1110 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_Are3DAPIsBlocked, 1113 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_Are3DAPIsBlocked,
1111 int /* render_frame_id */, 1114 int /* render_frame_id */,
1112 GURL /* top_origin_url */, 1115 GURL /* top_origin_url */,
1113 content::ThreeDAPIType /* requester */, 1116 content::ThreeDAPIType /* requester */,
1114 bool /* blocked */) 1117 bool /* blocked */)
1115 1118
1119 // Message sent from renderer to the browser when focus changes inside the
1120 // frame. The first parameter says whether the newly focused element needs
1121 // keyboard input (true for textfields, text areas and content editable divs).
1122 // The second parameter is the node bounds relative to local root's
1123 // RenderWidgetHostView.
1124 IPC_MESSAGE_ROUTED2(FrameHostMsg_FocusedNodeChanged,
1125 bool /* is_editable_node */,
1126 gfx::Rect /* node_bounds */)
1127
1116 #if BUILDFLAG(ENABLE_PLUGINS) 1128 #if BUILDFLAG(ENABLE_PLUGINS)
1117 // Notification sent from a renderer to the browser that a Pepper plugin 1129 // Notification sent from a renderer to the browser that a Pepper plugin
1118 // instance is created in the DOM. 1130 // instance is created in the DOM.
1119 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceCreated, 1131 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceCreated,
1120 int32_t /* pp_instance */) 1132 int32_t /* pp_instance */)
1121 1133
1122 // Notification sent from a renderer to the browser that a Pepper plugin 1134 // Notification sent from a renderer to the browser that a Pepper plugin
1123 // instance is deleted from the DOM. 1135 // instance is deleted from the DOM.
1124 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceDeleted, 1136 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceDeleted,
1125 int32_t /* pp_instance */) 1137 int32_t /* pp_instance */)
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1516 // nearest find result in the sending frame. 1528 // nearest find result in the sending frame.
1517 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1529 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1518 int /* nfr_request_id */, 1530 int /* nfr_request_id */,
1519 float /* distance */) 1531 float /* distance */)
1520 #endif 1532 #endif
1521 1533
1522 // Adding a new message? Stick to the sort order above: first platform 1534 // Adding a new message? Stick to the sort order above: first platform
1523 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1535 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1524 // platform independent FrameHostMsg, then ifdefs for platform specific 1536 // platform independent FrameHostMsg, then ifdefs for platform specific
1525 // FrameHostMsg. 1537 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698