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 |
42 #undef IPC_MESSAGE_EXPORT | 43 #undef IPC_MESSAGE_EXPORT |
43 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 44 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
44 | 45 |
45 #define IPC_MESSAGE_START FrameMsgStart | 46 #define IPC_MESSAGE_START FrameMsgStart |
46 | 47 |
47 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode, | 48 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode, |
48 AccessibilityModeOff, | 49 AccessibilityModeOff, |
49 AccessibilityModeComplete) | 50 AccessibilityModeComplete) |
50 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, | 51 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, |
51 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, | 52 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, |
52 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) | 53 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) |
53 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, | 54 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, |
54 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) | 55 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) |
55 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_UILoadMetricsReportType::Value, | 56 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_UILoadMetricsReportType::Value, |
56 FrameMsg_UILoadMetricsReportType::REPORT_TYPE_LAST) | 57 FrameMsg_UILoadMetricsReportType::REPORT_TYPE_LAST) |
57 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, | 58 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, |
58 blink::WebContextMenuData::MediaTypeLast) | 59 blink::WebContextMenuData::MediaTypeLast) |
59 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::InputFieldType, | 60 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::InputFieldType, |
60 blink::WebContextMenuData::InputFieldTypeLast) | 61 blink::WebContextMenuData::InputFieldTypeLast) |
| 62 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebFocusType, blink::WebFocusTypeLast) |
61 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebFrameOwnerProperties::ScrollingMode, | 63 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebFrameOwnerProperties::ScrollingMode, |
62 blink::WebFrameOwnerProperties::ScrollingMode::Last) | 64 blink::WebFrameOwnerProperties::ScrollingMode::Last) |
63 IPC_ENUM_TRAITS(blink::WebSandboxFlags) // Bitmask. | 65 IPC_ENUM_TRAITS(blink::WebSandboxFlags) // Bitmask. |
64 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTreeScopeType, | 66 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTreeScopeType, |
65 blink::WebTreeScopeType::Last) | 67 blink::WebTreeScopeType::Last) |
66 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) | 68 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) |
67 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::LoFiState, | 69 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::LoFiState, |
68 content::LOFI_UNSPECIFIED, | 70 content::LOFI_UNSPECIFIED, |
69 content::LOFI_ON) | 71 content::LOFI_ON) |
70 | 72 |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 // Get html data by serializing the target frame and replacing all resource | 715 // 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. | 716 // links with a path to the local copy passed in the message payload. |
715 IPC_MESSAGE_ROUTED3(FrameMsg_GetSerializedHtmlWithLocalLinks, | 717 IPC_MESSAGE_ROUTED3(FrameMsg_GetSerializedHtmlWithLocalLinks, |
716 std::vector<GURL> /* urls that have local copy */, | 718 std::vector<GURL> /* urls that have local copy */, |
717 std::vector<base::FilePath> /* paths of local copy */, | 719 std::vector<base::FilePath> /* paths of local copy */, |
718 base::FilePath /* local directory path */) | 720 base::FilePath /* local directory path */) |
719 | 721 |
720 IPC_MESSAGE_ROUTED1(FrameMsg_SetFrameOwnerProperties, | 722 IPC_MESSAGE_ROUTED1(FrameMsg_SetFrameOwnerProperties, |
721 blink::WebFrameOwnerProperties /* frame_owner_properties */) | 723 blink::WebFrameOwnerProperties /* frame_owner_properties */) |
722 | 724 |
| 725 // Request to continue running the sequential focus navigation algorithm in |
| 726 // this frame. |source_routing_id| identifies the frame that issued this |
| 727 // request. This message is sent when pressing <tab> or <shift-tab> needs to |
| 728 // find the next focusable element in a cross-process frame. |
| 729 IPC_MESSAGE_ROUTED2(FrameMsg_AdvanceFocus, |
| 730 blink::WebFocusType /* type */, |
| 731 int32_t /* source_routing_id */) |
| 732 |
723 #if defined(ENABLE_PLUGINS) | 733 #if defined(ENABLE_PLUGINS) |
724 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. | 734 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. |
725 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, | 735 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, |
726 std::set<url::Origin> /* origin_whitelist */) | 736 std::set<url::Origin> /* origin_whitelist */) |
727 #endif // defined(ENABLE_PLUGINS) | 737 #endif // defined(ENABLE_PLUGINS) |
728 | 738 |
729 // ----------------------------------------------------------------------------- | 739 // ----------------------------------------------------------------------------- |
730 // Messages sent from the renderer to the browser. | 740 // Messages sent from the renderer to the browser. |
731 | 741 |
732 // Blink and JavaScript error messages to log to the console | 742 // Blink and JavaScript error messages to log to the console |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1243 | 1253 |
1244 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks. | 1254 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks. |
1245 IPC_MESSAGE_ROUTED2(FrameHostMsg_SerializedHtmlWithLocalLinksResponse, | 1255 IPC_MESSAGE_ROUTED2(FrameHostMsg_SerializedHtmlWithLocalLinksResponse, |
1246 std::string /* data buffer */, | 1256 std::string /* data buffer */, |
1247 bool /* end of data? */) | 1257 bool /* end of data? */) |
1248 | 1258 |
1249 // Sent when the renderer updates hint for importance of a tab. | 1259 // Sent when the renderer updates hint for importance of a tab. |
1250 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdatePageImportanceSignals, | 1260 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdatePageImportanceSignals, |
1251 content::PageImportanceSignals) | 1261 content::PageImportanceSignals) |
1252 | 1262 |
| 1263 // This message is sent from a RenderFrameProxy when sequential focus |
| 1264 // navigation needs to advance into its actual frame. |source_routing_id| |
| 1265 // identifies the frame that issued this request. This is used when pressing |
| 1266 // <tab> or <shift-tab> hits an out-of-process iframe when searching for the |
| 1267 // next focusable element. |
| 1268 IPC_MESSAGE_ROUTED2(FrameHostMsg_AdvanceFocus, |
| 1269 blink::WebFocusType /* type */, |
| 1270 int32_t /* source_routing_id */) |
| 1271 |
1253 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1272 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
1254 | 1273 |
1255 // Message to show/hide a popup menu using native controls. | 1274 // Message to show/hide a popup menu using native controls. |
1256 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1275 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
1257 FrameHostMsg_ShowPopup_Params) | 1276 FrameHostMsg_ShowPopup_Params) |
1258 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1277 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
1259 | 1278 |
1260 #endif | 1279 #endif |
1261 | 1280 |
1262 // Adding a new message? Stick to the sort order above: first platform | 1281 // Adding a new message? Stick to the sort order above: first platform |
1263 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1282 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1264 // platform independent FrameHostMsg, then ifdefs for platform specific | 1283 // platform independent FrameHostMsg, then ifdefs for platform specific |
1265 // FrameHostMsg. | 1284 // FrameHostMsg. |
OLD | NEW |