| 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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 IPC_MESSAGE_ROUTED0(FrameMsg_WillEnterFullscreen) | 757 IPC_MESSAGE_ROUTED0(FrameMsg_WillEnterFullscreen) |
| 758 | 758 |
| 759 // Send to the RenderFrame to set text tracks state and style settings. | 759 // Send to the RenderFrame to set text tracks state and style settings. |
| 760 // Sent for top-level frames. | 760 // Sent for top-level frames. |
| 761 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings, | 761 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings, |
| 762 FrameMsg_TextTrackSettings_Params /* params */) | 762 FrameMsg_TextTrackSettings_Params /* params */) |
| 763 | 763 |
| 764 // Posts a message from a frame in another process to the current renderer. | 764 // Posts a message from a frame in another process to the current renderer. |
| 765 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params) | 765 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params) |
| 766 | 766 |
| 767 // Tells the RenderFrame to clear the focused element (if any). |
| 768 IPC_MESSAGE_ROUTED0(FrameMsg_ClearFocusedElement) |
| 769 |
| 767 #if defined(OS_ANDROID) | 770 #if defined(OS_ANDROID) |
| 768 // Request the distance to the nearest find result in a frame from the point at | 771 // Request the distance to the nearest find result in a frame from the point at |
| 769 // (x, y), defined in fractions of the content document's width and height. The | 772 // (x, y), defined in fractions of the content document's width and height. The |
| 770 // distance will be returned via FrameHostMsg_GetNearestFindResult_Reply. Note | 773 // distance will be returned via FrameHostMsg_GetNearestFindResult_Reply. Note |
| 771 // that |nfr_request_id| is a completely seperate ID from the |request_id| used | 774 // that |nfr_request_id| is a completely seperate ID from the |request_id| used |
| 772 // in other find-related IPCs. It is specifically used to uniquely identify a | 775 // in other find-related IPCs. It is specifically used to uniquely identify a |
| 773 // nearest find result request, rather than a find request. | 776 // nearest find result request, rather than a find request. |
| 774 IPC_MESSAGE_ROUTED3(FrameMsg_GetNearestFindResult, | 777 IPC_MESSAGE_ROUTED3(FrameMsg_GetNearestFindResult, |
| 775 int /* nfr_request_id */, | 778 int /* nfr_request_id */, |
| 776 float /* x */, | 779 float /* x */, |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 bool /* cookies_enabled */) | 1104 bool /* cookies_enabled */) |
| 1102 | 1105 |
| 1103 // Sent by the renderer process to check whether client 3D APIs | 1106 // Sent by the renderer process to check whether client 3D APIs |
| 1104 // (Pepper 3D, WebGL) are explicitly blocked. | 1107 // (Pepper 3D, WebGL) are explicitly blocked. |
| 1105 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_Are3DAPIsBlocked, | 1108 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_Are3DAPIsBlocked, |
| 1106 int /* render_frame_id */, | 1109 int /* render_frame_id */, |
| 1107 GURL /* top_origin_url */, | 1110 GURL /* top_origin_url */, |
| 1108 content::ThreeDAPIType /* requester */, | 1111 content::ThreeDAPIType /* requester */, |
| 1109 bool /* blocked */) | 1112 bool /* blocked */) |
| 1110 | 1113 |
| 1114 // Message sent from renderer to the browser when focus changes inside the |
| 1115 // frame. The first parameter says whether the newly focused element needs |
| 1116 // keyboard input (true for textfields, text areas and content editable divs). |
| 1117 // The second parameter is the node bounds relative to local roots |
| 1118 // RenderWidgetHostView. |
| 1119 IPC_MESSAGE_ROUTED2(FrameHostMsg_FocusedNodeChanged, |
| 1120 bool /* is_editable_node */, |
| 1121 gfx::Rect /* node_bounds */) |
| 1122 |
| 1111 #if BUILDFLAG(ENABLE_PLUGINS) | 1123 #if BUILDFLAG(ENABLE_PLUGINS) |
| 1112 // Notification sent from a renderer to the browser that a Pepper plugin | 1124 // Notification sent from a renderer to the browser that a Pepper plugin |
| 1113 // instance is created in the DOM. | 1125 // instance is created in the DOM. |
| 1114 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceCreated, | 1126 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceCreated, |
| 1115 int32_t /* pp_instance */) | 1127 int32_t /* pp_instance */) |
| 1116 | 1128 |
| 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 deleted from the DOM. | 1130 // instance is deleted from the DOM. |
| 1119 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceDeleted, | 1131 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceDeleted, |
| 1120 int32_t /* pp_instance */) | 1132 int32_t /* pp_instance */) |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1511 // nearest find result in the sending frame. | 1523 // nearest find result in the sending frame. |
| 1512 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1524 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
| 1513 int /* nfr_request_id */, | 1525 int /* nfr_request_id */, |
| 1514 float /* distance */) | 1526 float /* distance */) |
| 1515 #endif | 1527 #endif |
| 1516 | 1528 |
| 1517 // Adding a new message? Stick to the sort order above: first platform | 1529 // Adding a new message? Stick to the sort order above: first platform |
| 1518 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1530 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1519 // platform independent FrameHostMsg, then ifdefs for platform specific | 1531 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1520 // FrameHostMsg. | 1532 // FrameHostMsg. |
| OLD | NEW |