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, |
Charlie Reis
2015/12/04 21:44:50
Do we need to list WebFocusType in this list of en
alexmos
2015/12/04 22:21:18
Turns out this is already done in browser_plugin_m
Charlie Reis
2015/12/04 22:27:04
Yes, I'm guessing this is the right place for it i
alexmos
2015/12/04 22:33:53
Yup, still compiles. Moved.
| |
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, |
(...skipping 655 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 */) | |
dcheng
2015/12/04 23:11:01
Nit: int32_t. Same for other places that mention r
alexmos
2015/12/05 00:07:45
Done.
| |
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 for a RenderFrameProxy when sequential focus navigation | |
Charlie Reis
2015/12/04 21:44:50
nit: s/for/from/
alexmos
2015/12/04 22:21:18
Done.
| |
1263 // needs to advance into its actual frame. |source_routing_id| identifies the | |
1264 // frame that issued this request. This is used when pressing <tab> or | |
1265 // <shift-tab> hits an out-of-process iframe when searching for the next | |
1266 // 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 |