| 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" |
| 11 #include "content/common/content_param_traits.h" | 11 #include "content/common/content_param_traits.h" |
| 12 #include "content/common/frame_message_enums.h" | 12 #include "content/common/frame_message_enums.h" |
| 13 #include "content/common/frame_param.h" | 13 #include "content/common/frame_param.h" |
| 14 #include "content/common/frame_replication_state.h" | 14 #include "content/common/frame_replication_state.h" |
| 15 #include "content/common/navigation_gesture.h" | 15 #include "content/common/navigation_gesture.h" |
| 16 #include "content/common/navigation_params.h" | 16 #include "content/common/navigation_params.h" |
| 17 #include "content/common/resource_request_body.h" | 17 #include "content/common/resource_request_body.h" |
| 18 #include "content/common/savable_subframe.h" |
| 18 #include "content/public/common/color_suggestion.h" | 19 #include "content/public/common/color_suggestion.h" |
| 19 #include "content/public/common/common_param_traits.h" | 20 #include "content/public/common/common_param_traits.h" |
| 20 #include "content/public/common/console_message_level.h" | 21 #include "content/public/common/console_message_level.h" |
| 21 #include "content/public/common/context_menu_params.h" | 22 #include "content/public/common/context_menu_params.h" |
| 22 #include "content/public/common/frame_navigate_params.h" | 23 #include "content/public/common/frame_navigate_params.h" |
| 23 #include "content/public/common/javascript_message_type.h" | 24 #include "content/public/common/javascript_message_type.h" |
| 24 #include "content/public/common/message_port_types.h" | 25 #include "content/public/common/message_port_types.h" |
| 25 #include "content/public/common/page_importance_signals.h" | 26 #include "content/public/common/page_importance_signals.h" |
| 26 #include "content/public/common/page_state.h" | 27 #include "content/public/common/page_state.h" |
| 27 #include "content/public/common/resource_response.h" | 28 #include "content/public/common/resource_response.h" |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 // Color of the text track text. | 408 // Color of the text track text. |
| 408 IPC_STRUCT_MEMBER(std::string, text_track_text_color) | 409 IPC_STRUCT_MEMBER(std::string, text_track_text_color) |
| 409 | 410 |
| 410 // Text shadow (edge style) of the text track text. | 411 // Text shadow (edge style) of the text track text. |
| 411 IPC_STRUCT_MEMBER(std::string, text_track_text_shadow) | 412 IPC_STRUCT_MEMBER(std::string, text_track_text_shadow) |
| 412 | 413 |
| 413 // Size of the text track text. | 414 // Size of the text track text. |
| 414 IPC_STRUCT_MEMBER(std::string, text_track_text_size) | 415 IPC_STRUCT_MEMBER(std::string, text_track_text_size) |
| 415 IPC_STRUCT_END() | 416 IPC_STRUCT_END() |
| 416 | 417 |
| 418 IPC_STRUCT_TRAITS_BEGIN(content::SavableSubframe) |
| 419 IPC_STRUCT_TRAITS_MEMBER(original_url) |
| 420 IPC_STRUCT_TRAITS_MEMBER(routing_id) |
| 421 IPC_STRUCT_TRAITS_END() |
| 422 |
| 417 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 423 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 418 // This message is used for supporting popup menus on Mac OS X and Android using | 424 // This message is used for supporting popup menus on Mac OS X and Android using |
| 419 // native controls. See the FrameHostMsg_ShowPopup message. | 425 // native controls. See the FrameHostMsg_ShowPopup message. |
| 420 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) | 426 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) |
| 421 // Position on the screen. | 427 // Position on the screen. |
| 422 IPC_STRUCT_MEMBER(gfx::Rect, bounds) | 428 IPC_STRUCT_MEMBER(gfx::Rect, bounds) |
| 423 | 429 |
| 424 // The height of each item in the menu. | 430 // The height of each item in the menu. |
| 425 IPC_STRUCT_MEMBER(int, item_height) | 431 IPC_STRUCT_MEMBER(int, item_height) |
| 426 | 432 |
| (...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1194 | 1200 |
| 1195 // Sent when the renderer displays insecure content in a secure origin. | 1201 // Sent when the renderer displays insecure content in a secure origin. |
| 1196 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDisplayInsecureContent) | 1202 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDisplayInsecureContent) |
| 1197 | 1203 |
| 1198 // Sent when the renderer runs insecure content in a secure origin. | 1204 // Sent when the renderer runs insecure content in a secure origin. |
| 1199 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidRunInsecureContent, | 1205 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidRunInsecureContent, |
| 1200 std::string /* security_origin */, | 1206 std::string /* security_origin */, |
| 1201 GURL /* target URL */) | 1207 GURL /* target URL */) |
| 1202 | 1208 |
| 1203 // Response to FrameMsg_GetSavableResourceLinks. | 1209 // Response to FrameMsg_GetSavableResourceLinks. |
| 1204 IPC_MESSAGE_ROUTED4(FrameHostMsg_SavableResourceLinksResponse, | 1210 IPC_MESSAGE_ROUTED3(FrameHostMsg_SavableResourceLinksResponse, |
| 1205 std::vector<GURL> /* savable resource links */, | 1211 std::vector<GURL> /* savable resource links */, |
| 1206 content::Referrer /* referrer for all the links above */, | 1212 content::Referrer /* referrer for all the links above */, |
| 1207 std::vector<GURL> /* subframe original links */, | 1213 std::vector<content::SavableSubframe> /* subframes */); |
| 1208 std::vector<int> /* subframe routing ids */) | |
| 1209 | 1214 |
| 1210 // Response to FrameMsg_GetSavableResourceLinks in case the frame contains | 1215 // Response to FrameMsg_GetSavableResourceLinks in case the frame contains |
| 1211 // non-savable content (i.e. from a non-savable scheme) or if there were | 1216 // non-savable content (i.e. from a non-savable scheme) or if there were |
| 1212 // errors gathering the links. | 1217 // errors gathering the links. |
| 1213 IPC_MESSAGE_ROUTED0(FrameHostMsg_SavableResourceLinksError) | 1218 IPC_MESSAGE_ROUTED0(FrameHostMsg_SavableResourceLinksError) |
| 1214 | 1219 |
| 1215 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks. | 1220 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks. |
| 1216 IPC_MESSAGE_ROUTED2(FrameHostMsg_SerializedHtmlWithLocalLinksResponse, | 1221 IPC_MESSAGE_ROUTED2(FrameHostMsg_SerializedHtmlWithLocalLinksResponse, |
| 1217 std::string /* data buffer */, | 1222 std::string /* data buffer */, |
| 1218 bool /* end of data? */) | 1223 bool /* end of data? */) |
| 1219 | 1224 |
| 1220 // Sent when the renderer updates hint for importance of a tab. | 1225 // Sent when the renderer updates hint for importance of a tab. |
| 1221 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdatePageImportanceSignals, | 1226 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdatePageImportanceSignals, |
| 1222 content::PageImportanceSignals) | 1227 content::PageImportanceSignals) |
| 1223 | 1228 |
| 1224 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1229 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 1225 | 1230 |
| 1226 // Message to show/hide a popup menu using native controls. | 1231 // Message to show/hide a popup menu using native controls. |
| 1227 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1232 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 1228 FrameHostMsg_ShowPopup_Params) | 1233 FrameHostMsg_ShowPopup_Params) |
| 1229 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1234 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 1230 | 1235 |
| 1231 #endif | 1236 #endif |
| 1232 | 1237 |
| 1233 // Adding a new message? Stick to the sort order above: first platform | 1238 // Adding a new message? Stick to the sort order above: first platform |
| 1234 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1239 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1235 // platform independent FrameHostMsg, then ifdefs for platform specific | 1240 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1236 // FrameHostMsg. | 1241 // FrameHostMsg. |
| OLD | NEW |