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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 | 736 |
737 // Requests the corresponding RenderFrameProxy to be deleted and removed from | 737 // Requests the corresponding RenderFrameProxy to be deleted and removed from |
738 // the frame tree. | 738 // the frame tree. |
739 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy) | 739 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy) |
740 | 740 |
741 // Request the text surrounding the selection with a |max_length|. The response | 741 // Request the text surrounding the selection with a |max_length|. The response |
742 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. | 742 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. |
743 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, | 743 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, |
744 uint32_t /* max_length */) | 744 uint32_t /* max_length */) |
745 | 745 |
| 746 // Extracts the data at the given rect, returning it through the |
| 747 // SmartClipDataExtracted IPC. |
| 748 IPC_MESSAGE_ROUTED2(FrameMsg_ExtractSmartClipData, |
| 749 uint32_t /* id */, |
| 750 gfx::Rect /* rect */) |
| 751 |
746 // Requests information about currently focused text input element from the | 752 // Requests information about currently focused text input element from the |
747 // renderer. | 753 // renderer. |
748 IPC_MESSAGE_ROUTED1(FrameMsg_FocusedFormFieldDataRequest, int /* request_id */) | 754 IPC_MESSAGE_ROUTED1(FrameMsg_FocusedFormFieldDataRequest, int /* request_id */) |
749 | 755 |
750 // Change the accessibility mode in the renderer process. | 756 // Change the accessibility mode in the renderer process. |
751 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, | 757 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, |
752 AccessibilityMode) | 758 AccessibilityMode) |
753 | 759 |
754 // Dispatch a load event in the iframe element containing this frame. | 760 // Dispatch a load event in the iframe element containing this frame. |
755 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad) | 761 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad) |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1436 // PlzNavigate | 1442 // PlzNavigate |
1437 // Tells the browser to perform a navigation. | 1443 // Tells the browser to perform a navigation. |
1438 IPC_MESSAGE_ROUTED2(FrameHostMsg_BeginNavigation, | 1444 IPC_MESSAGE_ROUTED2(FrameHostMsg_BeginNavigation, |
1439 content::CommonNavigationParams, | 1445 content::CommonNavigationParams, |
1440 content::BeginNavigationParams) | 1446 content::BeginNavigationParams) |
1441 | 1447 |
1442 // Sent as a response to FrameMsg_VisualStateRequest. | 1448 // Sent as a response to FrameMsg_VisualStateRequest. |
1443 // The message is delivered using RenderWidget::QueueMessage. | 1449 // The message is delivered using RenderWidget::QueueMessage. |
1444 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisualStateResponse, uint64_t /* id */) | 1450 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisualStateResponse, uint64_t /* id */) |
1445 | 1451 |
| 1452 // Reply to the ExtractSmartClipData message. |
| 1453 IPC_MESSAGE_ROUTED3(FrameHostMsg_SmartClipDataExtracted, |
| 1454 uint32_t /* id */, |
| 1455 base::string16 /* text */, |
| 1456 base::string16 /* html */) |
| 1457 |
1446 // Puts the browser into "tab fullscreen" mode for the sending renderer. | 1458 // Puts the browser into "tab fullscreen" mode for the sending renderer. |
1447 // See the comment in chrome/browser/ui/browser.h for more details. | 1459 // See the comment in chrome/browser/ui/browser.h for more details. |
1448 IPC_MESSAGE_ROUTED1(FrameHostMsg_ToggleFullscreen, bool /* enter_fullscreen */) | 1460 IPC_MESSAGE_ROUTED1(FrameHostMsg_ToggleFullscreen, bool /* enter_fullscreen */) |
1449 | 1461 |
1450 // Dispatch a load event for this frame in the iframe element of an | 1462 // Dispatch a load event for this frame in the iframe element of an |
1451 // out-of-process parent frame. | 1463 // out-of-process parent frame. |
1452 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad) | 1464 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad) |
1453 | 1465 |
1454 // Sent to the browser from a frame proxy to post a message to the frame's | 1466 // Sent to the browser from a frame proxy to post a message to the frame's |
1455 // active renderer. | 1467 // active renderer. |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1565 // nearest find result in the sending frame. | 1577 // nearest find result in the sending frame. |
1566 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1578 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
1567 int /* nfr_request_id */, | 1579 int /* nfr_request_id */, |
1568 float /* distance */) | 1580 float /* distance */) |
1569 #endif | 1581 #endif |
1570 | 1582 |
1571 // Adding a new message? Stick to the sort order above: first platform | 1583 // Adding a new message? Stick to the sort order above: first platform |
1572 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1584 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1573 // platform independent FrameHostMsg, then ifdefs for platform specific | 1585 // platform independent FrameHostMsg, then ifdefs for platform specific |
1574 // FrameHostMsg. | 1586 // FrameHostMsg. |
OLD | NEW |