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 "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "content/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 IPC_STRUCT_MEMBER(int, transferred_request_request_id) | 255 IPC_STRUCT_MEMBER(int, transferred_request_request_id) |
256 | 256 |
257 // Whether or not this url should be allowed to access local file:// | 257 // Whether or not this url should be allowed to access local file:// |
258 // resources. | 258 // resources. |
259 IPC_STRUCT_MEMBER(bool, can_load_local_resources) | 259 IPC_STRUCT_MEMBER(bool, can_load_local_resources) |
260 | 260 |
261 // If not empty, which frame to navigate. | 261 // If not empty, which frame to navigate. |
262 IPC_STRUCT_MEMBER(std::string, frame_to_navigate) | 262 IPC_STRUCT_MEMBER(std::string, frame_to_navigate) |
263 IPC_STRUCT_END() | 263 IPC_STRUCT_END() |
264 | 264 |
| 265 IPC_STRUCT_BEGIN(FrameHostMsg_AddNavigationTransitionData_Params) |
| 266 IPC_STRUCT_MEMBER(int, render_frame_id) |
| 267 IPC_STRUCT_MEMBER(std::string, allowed_destination_host_pattern) |
| 268 IPC_STRUCT_MEMBER(std::string, selector) |
| 269 IPC_STRUCT_MEMBER(std::string, markup) |
| 270 IPC_STRUCT_MEMBER(std::vector<std::string>, names) |
| 271 IPC_STRUCT_MEMBER(std::vector<gfx::Rect>, rects) |
| 272 IPC_STRUCT_END() |
| 273 |
265 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) | 274 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) |
266 IPC_STRUCT_MEMBER(GURL, url) | 275 IPC_STRUCT_MEMBER(GURL, url) |
267 IPC_STRUCT_MEMBER(content::Referrer, referrer) | 276 IPC_STRUCT_MEMBER(content::Referrer, referrer) |
268 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) | 277 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) |
269 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) | 278 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) |
270 IPC_STRUCT_MEMBER(bool, user_gesture) | 279 IPC_STRUCT_MEMBER(bool, user_gesture) |
271 IPC_STRUCT_END() | 280 IPC_STRUCT_END() |
272 | 281 |
273 // PlzNavigate | 282 // PlzNavigate |
274 IPC_STRUCT_BEGIN(FrameHostMsg_BeginNavigation_Params) | 283 IPC_STRUCT_BEGIN(FrameHostMsg_BeginNavigation_Params) |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 | 734 |
726 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and | 735 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and |
727 // |endOffset| are the offsets of the selection in the returned |content|. | 736 // |endOffset| are the offsets of the selection in the returned |content|. |
728 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, | 737 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, |
729 base::string16, /* content */ | 738 base::string16, /* content */ |
730 size_t, /* startOffset */ | 739 size_t, /* startOffset */ |
731 size_t /* endOffset */) | 740 size_t /* endOffset */) |
732 | 741 |
733 // Notifies the browser that the renderer has a pending navigation transition. | 742 // Notifies the browser that the renderer has a pending navigation transition. |
734 // The string parameters are all UTF8. | 743 // The string parameters are all UTF8. |
735 IPC_MESSAGE_CONTROL4(FrameHostMsg_AddNavigationTransitionData, | 744 IPC_MESSAGE_CONTROL1(FrameHostMsg_AddNavigationTransitionData, |
736 int /* render_frame_id */, | 745 FrameHostMsg_AddNavigationTransitionData_Params) |
737 std::string /* allowed_destination_host_pattern */, | |
738 std::string /* selector */, | |
739 std::string /* markup */) | |
740 | 746 |
741 // PlzNavigate | 747 // PlzNavigate |
742 // Tells the browser to perform a navigation. | 748 // Tells the browser to perform a navigation. |
743 IPC_MESSAGE_ROUTED2(FrameHostMsg_BeginNavigation, | 749 IPC_MESSAGE_ROUTED2(FrameHostMsg_BeginNavigation, |
744 FrameHostMsg_BeginNavigation_Params, | 750 FrameHostMsg_BeginNavigation_Params, |
745 content::CommonNavigationParams) | 751 content::CommonNavigationParams) |
746 | 752 |
747 // Sent once a paint happens after the first non empty layout. In other words | 753 // Sent once a paint happens after the first non empty layout. In other words |
748 // after the frame has painted something. | 754 // after the frame has painted something. |
749 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 755 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
750 | 756 |
751 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 757 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
752 | 758 |
753 // Message to show/hide a popup menu using native controls. | 759 // Message to show/hide a popup menu using native controls. |
754 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 760 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
755 FrameHostMsg_ShowPopup_Params) | 761 FrameHostMsg_ShowPopup_Params) |
756 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 762 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
757 | 763 |
758 #endif | 764 #endif |
OLD | NEW |