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 "cc/surfaces/surface_id.h" | 8 #include "cc/surfaces/surface_id.h" |
9 #include "cc/surfaces/surface_sequence.h" | 9 #include "cc/surfaces/surface_sequence.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "content/public/common/context_menu_params.h" | 22 #include "content/public/common/context_menu_params.h" |
23 #include "content/public/common/frame_navigate_params.h" | 23 #include "content/public/common/frame_navigate_params.h" |
24 #include "content/public/common/javascript_message_type.h" | 24 #include "content/public/common/javascript_message_type.h" |
25 #include "content/public/common/message_port_types.h" | 25 #include "content/public/common/message_port_types.h" |
26 #include "content/public/common/page_importance_signals.h" | 26 #include "content/public/common/page_importance_signals.h" |
27 #include "content/public/common/page_state.h" | 27 #include "content/public/common/page_state.h" |
28 #include "content/public/common/resource_response.h" | 28 #include "content/public/common/resource_response.h" |
29 #include "content/public/common/three_d_api_types.h" | 29 #include "content/public/common/three_d_api_types.h" |
30 #include "content/public/common/transition_element.h" | 30 #include "content/public/common/transition_element.h" |
31 #include "ipc/ipc_message_macros.h" | 31 #include "ipc/ipc_message_macros.h" |
| 32 #include "third_party/WebKit/public/platform/WebFocusType.h" |
32 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" | 33 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" |
33 #include "third_party/WebKit/public/web/WebTreeScopeType.h" | 34 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
34 #include "ui/gfx/ipc/gfx_param_traits.h" | 35 #include "ui/gfx/ipc/gfx_param_traits.h" |
35 #include "url/gurl.h" | 36 #include "url/gurl.h" |
36 #include "url/origin.h" | 37 #include "url/origin.h" |
37 | 38 |
38 #if defined(ENABLE_PLUGINS) | 39 #if defined(ENABLE_PLUGINS) |
39 #include "content/common/pepper_renderer_instance_data.h" | 40 #include "content/common/pepper_renderer_instance_data.h" |
40 #endif | 41 #endif |
41 | 42 |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 // Get html data by serializing the target frame and replacing all resource | 714 // Get html data by serializing the target frame and replacing all resource |
714 // links with a path to the local copy passed in the message payload. | 715 // links with a path to the local copy passed in the message payload. |
715 IPC_MESSAGE_ROUTED3(FrameMsg_GetSerializedHtmlWithLocalLinks, | 716 IPC_MESSAGE_ROUTED3(FrameMsg_GetSerializedHtmlWithLocalLinks, |
716 std::vector<GURL> /* urls that have local copy */, | 717 std::vector<GURL> /* urls that have local copy */, |
717 std::vector<base::FilePath> /* paths of local copy */, | 718 std::vector<base::FilePath> /* paths of local copy */, |
718 base::FilePath /* local directory path */) | 719 base::FilePath /* local directory path */) |
719 | 720 |
720 IPC_MESSAGE_ROUTED1(FrameMsg_SetFrameOwnerProperties, | 721 IPC_MESSAGE_ROUTED1(FrameMsg_SetFrameOwnerProperties, |
721 blink::WebFrameOwnerProperties /* frame_owner_properties */) | 722 blink::WebFrameOwnerProperties /* frame_owner_properties */) |
722 | 723 |
| 724 // Request to continue running the sequential focus navigation algorithm in |
| 725 // this frame. |source_routing_id| identifies the frame that issued this |
| 726 // request. This message is sent when pressing <tab> or <shift-tab> needs to |
| 727 // find the next focusable element in a cross-process frame. |
| 728 IPC_MESSAGE_ROUTED2(FrameMsg_AdvanceFocus, |
| 729 blink::WebFocusType /* type */, |
| 730 int /* source_routing_id */) |
| 731 |
723 #if defined(ENABLE_PLUGINS) | 732 #if defined(ENABLE_PLUGINS) |
724 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. | 733 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. |
725 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, | 734 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, |
726 std::set<url::Origin> /* origin_whitelist */) | 735 std::set<url::Origin> /* origin_whitelist */) |
727 #endif // defined(ENABLE_PLUGINS) | 736 #endif // defined(ENABLE_PLUGINS) |
728 | 737 |
729 // ----------------------------------------------------------------------------- | 738 // ----------------------------------------------------------------------------- |
730 // Messages sent from the renderer to the browser. | 739 // Messages sent from the renderer to the browser. |
731 | 740 |
732 // Blink and JavaScript error messages to log to the console | 741 // Blink and JavaScript error messages to log to the console |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1243 | 1252 |
1244 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks. | 1253 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks. |
1245 IPC_MESSAGE_ROUTED2(FrameHostMsg_SerializedHtmlWithLocalLinksResponse, | 1254 IPC_MESSAGE_ROUTED2(FrameHostMsg_SerializedHtmlWithLocalLinksResponse, |
1246 std::string /* data buffer */, | 1255 std::string /* data buffer */, |
1247 bool /* end of data? */) | 1256 bool /* end of data? */) |
1248 | 1257 |
1249 // Sent when the renderer updates hint for importance of a tab. | 1258 // Sent when the renderer updates hint for importance of a tab. |
1250 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdatePageImportanceSignals, | 1259 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdatePageImportanceSignals, |
1251 content::PageImportanceSignals) | 1260 content::PageImportanceSignals) |
1252 | 1261 |
| 1262 // This message is sent from a RenderFrameProxy when sequential focus |
| 1263 // navigation needs to advance into its actual frame. |source_routing_id| |
| 1264 // identifies the frame that issued this request. This is used when pressing |
| 1265 // <tab> or <shift-tab> hits an out-of-process iframe when searching for the |
| 1266 // next focusable element. |
| 1267 IPC_MESSAGE_ROUTED2(FrameHostMsg_AdvanceFocus, |
| 1268 blink::WebFocusType /* type */, |
| 1269 int /* source_routing_id */) |
| 1270 |
1253 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1271 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
1254 | 1272 |
1255 // Message to show/hide a popup menu using native controls. | 1273 // Message to show/hide a popup menu using native controls. |
1256 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1274 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
1257 FrameHostMsg_ShowPopup_Params) | 1275 FrameHostMsg_ShowPopup_Params) |
1258 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1276 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
1259 | 1277 |
1260 #endif | 1278 #endif |
1261 | 1279 |
1262 // Adding a new message? Stick to the sort order above: first platform | 1280 // Adding a new message? Stick to the sort order above: first platform |
1263 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1281 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1264 // platform independent FrameHostMsg, then ifdefs for platform specific | 1282 // platform independent FrameHostMsg, then ifdefs for platform specific |
1265 // FrameHostMsg. | 1283 // FrameHostMsg. |
OLD | NEW |