| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "content/common/frame_replication_state.h" | 24 #include "content/common/frame_replication_state.h" |
| 25 #include "content/common/navigation_gesture.h" | 25 #include "content/common/navigation_gesture.h" |
| 26 #include "content/common/navigation_params.h" | 26 #include "content/common/navigation_params.h" |
| 27 #include "content/common/savable_subframe.h" | 27 #include "content/common/savable_subframe.h" |
| 28 #include "content/public/common/color_suggestion.h" | 28 #include "content/public/common/color_suggestion.h" |
| 29 #include "content/public/common/common_param_traits.h" | 29 #include "content/public/common/common_param_traits.h" |
| 30 #include "content/public/common/console_message_level.h" | 30 #include "content/public/common/console_message_level.h" |
| 31 #include "content/public/common/context_menu_params.h" | 31 #include "content/public/common/context_menu_params.h" |
| 32 #include "content/public/common/file_chooser_file_info.h" | 32 #include "content/public/common/file_chooser_file_info.h" |
| 33 #include "content/public/common/file_chooser_params.h" | 33 #include "content/public/common/file_chooser_params.h" |
| 34 #include "content/public/common/form_field_data.h" | |
| 35 #include "content/public/common/frame_navigate_params.h" | 34 #include "content/public/common/frame_navigate_params.h" |
| 36 #include "content/public/common/javascript_message_type.h" | 35 #include "content/public/common/javascript_message_type.h" |
| 37 #include "content/public/common/page_importance_signals.h" | 36 #include "content/public/common/page_importance_signals.h" |
| 38 #include "content/public/common/page_state.h" | 37 #include "content/public/common/page_state.h" |
| 39 #include "content/public/common/resource_response.h" | 38 #include "content/public/common/resource_response.h" |
| 40 #include "content/public/common/stop_find_action.h" | 39 #include "content/public/common/stop_find_action.h" |
| 41 #include "content/public/common/three_d_api_types.h" | 40 #include "content/public/common/three_d_api_types.h" |
| 42 #include "content/public/common/transition_element.h" | 41 #include "content/public/common/transition_element.h" |
| 43 #include "ipc/ipc_message_macros.h" | 42 #include "ipc/ipc_message_macros.h" |
| 44 #include "ipc/ipc_platform_file.h" | 43 #include "ipc/ipc_platform_file.h" |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 IPC_STRUCT_MEMBER(blink::WebSandboxFlags, sandbox_flags) | 513 IPC_STRUCT_MEMBER(blink::WebSandboxFlags, sandbox_flags) |
| 515 IPC_STRUCT_MEMBER(content::FrameOwnerProperties, frame_owner_properties) | 514 IPC_STRUCT_MEMBER(content::FrameOwnerProperties, frame_owner_properties) |
| 516 IPC_STRUCT_END() | 515 IPC_STRUCT_END() |
| 517 | 516 |
| 518 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) | 517 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) |
| 519 IPC_STRUCT_TRAITS_MEMBER(header_value) | 518 IPC_STRUCT_TRAITS_MEMBER(header_value) |
| 520 IPC_STRUCT_TRAITS_MEMBER(type) | 519 IPC_STRUCT_TRAITS_MEMBER(type) |
| 521 IPC_STRUCT_TRAITS_MEMBER(source) | 520 IPC_STRUCT_TRAITS_MEMBER(source) |
| 522 IPC_STRUCT_TRAITS_END() | 521 IPC_STRUCT_TRAITS_END() |
| 523 | 522 |
| 524 IPC_STRUCT_TRAITS_BEGIN(content::FormFieldData) | |
| 525 IPC_STRUCT_TRAITS_MEMBER(text) | |
| 526 IPC_STRUCT_TRAITS_MEMBER(placeholder) | |
| 527 IPC_STRUCT_TRAITS_MEMBER(text_input_type) | |
| 528 IPC_STRUCT_TRAITS_END() | |
| 529 | |
| 530 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo) | 523 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo) |
| 531 IPC_STRUCT_TRAITS_MEMBER(file_path) | 524 IPC_STRUCT_TRAITS_MEMBER(file_path) |
| 532 IPC_STRUCT_TRAITS_MEMBER(display_name) | 525 IPC_STRUCT_TRAITS_MEMBER(display_name) |
| 533 IPC_STRUCT_TRAITS_MEMBER(file_system_url) | 526 IPC_STRUCT_TRAITS_MEMBER(file_system_url) |
| 534 IPC_STRUCT_TRAITS_MEMBER(modification_time) | 527 IPC_STRUCT_TRAITS_MEMBER(modification_time) |
| 535 IPC_STRUCT_TRAITS_MEMBER(length) | 528 IPC_STRUCT_TRAITS_MEMBER(length) |
| 536 IPC_STRUCT_TRAITS_MEMBER(is_directory) | 529 IPC_STRUCT_TRAITS_MEMBER(is_directory) |
| 537 IPC_STRUCT_TRAITS_END() | 530 IPC_STRUCT_TRAITS_END() |
| 538 | 531 |
| 539 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) | 532 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 | 717 |
| 725 // Notifies the corresponding RenderFrameProxy object to replace itself with the | 718 // Notifies the corresponding RenderFrameProxy object to replace itself with the |
| 726 // RenderFrame object it is associated with. | 719 // RenderFrame object it is associated with. |
| 727 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy) | 720 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy) |
| 728 | 721 |
| 729 // Request the text surrounding the selection with a |max_length|. The response | 722 // Request the text surrounding the selection with a |max_length|. The response |
| 730 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. | 723 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. |
| 731 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, | 724 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, |
| 732 uint32_t /* max_length */) | 725 uint32_t /* max_length */) |
| 733 | 726 |
| 734 // Requests information about currently focused text input element from the | |
| 735 // renderer. | |
| 736 IPC_MESSAGE_ROUTED1(FrameMsg_FocusedFormFieldDataRequest, int /* request_id */) | |
| 737 | |
| 738 // Tells the renderer to insert a link to the specified stylesheet. This is | 727 // Tells the renderer to insert a link to the specified stylesheet. This is |
| 739 // needed to support navigation transitions. | 728 // needed to support navigation transitions. |
| 740 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) | 729 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) |
| 741 | 730 |
| 742 // Change the accessibility mode in the renderer process. | 731 // Change the accessibility mode in the renderer process. |
| 743 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, | 732 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, |
| 744 AccessibilityMode) | 733 AccessibilityMode) |
| 745 | 734 |
| 746 // Dispatch a load event in the iframe element containing this frame. | 735 // Dispatch a load event in the iframe element containing this frame. |
| 747 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad) | 736 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad) |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1364 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor, | 1353 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor, |
| 1365 SkColor /* theme_color */) | 1354 SkColor /* theme_color */) |
| 1366 | 1355 |
| 1367 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and | 1356 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and |
| 1368 // |endOffset| are the offsets of the selection in the returned |content|. | 1357 // |endOffset| are the offsets of the selection in the returned |content|. |
| 1369 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, | 1358 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, |
| 1370 base::string16, /* content */ | 1359 base::string16, /* content */ |
| 1371 uint32_t, /* startOffset */ | 1360 uint32_t, /* startOffset */ |
| 1372 uint32_t/* endOffset */) | 1361 uint32_t/* endOffset */) |
| 1373 | 1362 |
| 1374 // Response for FrameMsg_FocusedFormFieldDataRequest. Sends info about the | |
| 1375 // currently focused form field. | |
| 1376 IPC_MESSAGE_ROUTED2(FrameHostMsg_FocusedFormFieldDataResponse, | |
| 1377 int, /* request_id */ | |
| 1378 content::FormFieldData /* form field info */) | |
| 1379 | |
| 1380 // Register a new handler for URL requests with the given scheme. | 1363 // Register a new handler for URL requests with the given scheme. |
| 1381 IPC_MESSAGE_ROUTED4(FrameHostMsg_RegisterProtocolHandler, | 1364 IPC_MESSAGE_ROUTED4(FrameHostMsg_RegisterProtocolHandler, |
| 1382 std::string /* scheme */, | 1365 std::string /* scheme */, |
| 1383 GURL /* url */, | 1366 GURL /* url */, |
| 1384 base::string16 /* title */, | 1367 base::string16 /* title */, |
| 1385 bool /* user_gesture */) | 1368 bool /* user_gesture */) |
| 1386 | 1369 |
| 1387 // Unregister the registered handler for URL requests with the given scheme. | 1370 // Unregister the registered handler for URL requests with the given scheme. |
| 1388 IPC_MESSAGE_ROUTED3(FrameHostMsg_UnregisterProtocolHandler, | 1371 IPC_MESSAGE_ROUTED3(FrameHostMsg_UnregisterProtocolHandler, |
| 1389 std::string /* scheme */, | 1372 std::string /* scheme */, |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1532 // nearest find result in the sending frame. | 1515 // nearest find result in the sending frame. |
| 1533 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1516 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
| 1534 int /* nfr_request_id */, | 1517 int /* nfr_request_id */, |
| 1535 float /* distance */) | 1518 float /* distance */) |
| 1536 #endif | 1519 #endif |
| 1537 | 1520 |
| 1538 // Adding a new message? Stick to the sort order above: first platform | 1521 // Adding a new message? Stick to the sort order above: first platform |
| 1539 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1522 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1540 // platform independent FrameHostMsg, then ifdefs for platform specific | 1523 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1541 // FrameHostMsg. | 1524 // FrameHostMsg. |
| OLD | NEW |