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 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 // Forwards an input event to a child. | 1279 // Forwards an input event to a child. |
1280 // TODO(nick): Temporary bridge, revisit once the browser process can route | 1280 // TODO(nick): Temporary bridge, revisit once the browser process can route |
1281 // input directly to subframes. http://crbug.com/339659 | 1281 // input directly to subframes. http://crbug.com/339659 |
1282 IPC_MESSAGE_ROUTED1(FrameHostMsg_ForwardInputEvent, | 1282 IPC_MESSAGE_ROUTED1(FrameHostMsg_ForwardInputEvent, |
1283 IPC::WebInputEventPointer /* event */) | 1283 IPC::WebInputEventPointer /* event */) |
1284 | 1284 |
1285 // Tells the parent that a child's frame rect has changed (or the rect/scroll | 1285 // Tells the parent that a child's frame rect has changed (or the rect/scroll |
1286 // position of a child's ancestor has changed). | 1286 // position of a child's ancestor has changed). |
1287 IPC_MESSAGE_ROUTED1(FrameHostMsg_FrameRectChanged, gfx::Rect /* frame_rect */) | 1287 IPC_MESSAGE_ROUTED1(FrameHostMsg_FrameRectChanged, gfx::Rect /* frame_rect */) |
1288 | 1288 |
| 1289 // Sent by a parent frame to update its child's viewport intersection rect for |
| 1290 // use by the IntersectionObserver API. |
| 1291 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateViewportIntersection, |
| 1292 gfx::Rect /* viewport_intersection */) |
| 1293 |
1289 // Informs the child that the frame has changed visibility. | 1294 // Informs the child that the frame has changed visibility. |
1290 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisibilityChanged, bool /* visible */) | 1295 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisibilityChanged, bool /* visible */) |
1291 | 1296 |
1292 // Indicates that a child of this frame recieved a user gesture, and this | 1297 // Indicates that a child of this frame recieved a user gesture, and this |
1293 // frame should in turn consider itself to have received a user gesture. | 1298 // frame should in turn consider itself to have received a user gesture. |
1294 IPC_MESSAGE_ROUTED0(FrameHostMsg_SetHasReceivedUserGesture) | 1299 IPC_MESSAGE_ROUTED0(FrameHostMsg_SetHasReceivedUserGesture) |
1295 | 1300 |
1296 // Used to tell the parent that the user right clicked on an area of the | 1301 // Used to tell the parent that the user right clicked on an area of the |
1297 // content area, and a context menu should be shown for it. The params | 1302 // content area, and a context menu should be shown for it. The params |
1298 // object contains information about the node(s) that were selected when the | 1303 // object contains information about the node(s) that were selected when the |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1514 // nearest find result in the sending frame. | 1519 // nearest find result in the sending frame. |
1515 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1520 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
1516 int /* nfr_request_id */, | 1521 int /* nfr_request_id */, |
1517 float /* distance */) | 1522 float /* distance */) |
1518 #endif | 1523 #endif |
1519 | 1524 |
1520 // Adding a new message? Stick to the sort order above: first platform | 1525 // Adding a new message? Stick to the sort order above: first platform |
1521 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1526 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1522 // platform independent FrameHostMsg, then ifdefs for platform specific | 1527 // platform independent FrameHostMsg, then ifdefs for platform specific |
1523 // FrameHostMsg. | 1528 // FrameHostMsg. |
OLD | NEW |