Chromium Code Reviews| 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" | |
| 34 #include "content/public/common/frame_navigate_params.h" | 35 #include "content/public/common/frame_navigate_params.h" |
| 35 #include "content/public/common/javascript_message_type.h" | 36 #include "content/public/common/javascript_message_type.h" |
| 36 #include "content/public/common/page_importance_signals.h" | 37 #include "content/public/common/page_importance_signals.h" |
| 37 #include "content/public/common/page_state.h" | 38 #include "content/public/common/page_state.h" |
| 38 #include "content/public/common/resource_response.h" | 39 #include "content/public/common/resource_response.h" |
| 39 #include "content/public/common/stop_find_action.h" | 40 #include "content/public/common/stop_find_action.h" |
| 40 #include "content/public/common/three_d_api_types.h" | 41 #include "content/public/common/three_d_api_types.h" |
| 41 #include "content/public/common/transition_element.h" | 42 #include "content/public/common/transition_element.h" |
| 42 #include "ipc/ipc_message_macros.h" | 43 #include "ipc/ipc_message_macros.h" |
| 43 #include "ipc/ipc_platform_file.h" | 44 #include "ipc/ipc_platform_file.h" |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 507 IPC_STRUCT_MEMBER(blink::WebSandboxFlags, sandbox_flags) | 508 IPC_STRUCT_MEMBER(blink::WebSandboxFlags, sandbox_flags) |
| 508 IPC_STRUCT_MEMBER(content::FrameOwnerProperties, frame_owner_properties) | 509 IPC_STRUCT_MEMBER(content::FrameOwnerProperties, frame_owner_properties) |
| 509 IPC_STRUCT_END() | 510 IPC_STRUCT_END() |
| 510 | 511 |
| 511 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) | 512 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) |
| 512 IPC_STRUCT_TRAITS_MEMBER(header_value) | 513 IPC_STRUCT_TRAITS_MEMBER(header_value) |
| 513 IPC_STRUCT_TRAITS_MEMBER(type) | 514 IPC_STRUCT_TRAITS_MEMBER(type) |
| 514 IPC_STRUCT_TRAITS_MEMBER(source) | 515 IPC_STRUCT_TRAITS_MEMBER(source) |
| 515 IPC_STRUCT_TRAITS_END() | 516 IPC_STRUCT_TRAITS_END() |
| 516 | 517 |
| 518 IPC_STRUCT_TRAITS_BEGIN(content::FormFieldData) | |
| 519 IPC_STRUCT_TRAITS_MEMBER(text) | |
| 520 IPC_STRUCT_TRAITS_MEMBER(placeholder) | |
| 521 IPC_STRUCT_TRAITS_MEMBER(text_input_type) | |
| 522 IPC_STRUCT_TRAITS_END() | |
| 523 | |
| 517 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo) | 524 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo) |
| 518 IPC_STRUCT_TRAITS_MEMBER(file_path) | 525 IPC_STRUCT_TRAITS_MEMBER(file_path) |
| 519 IPC_STRUCT_TRAITS_MEMBER(display_name) | 526 IPC_STRUCT_TRAITS_MEMBER(display_name) |
| 520 IPC_STRUCT_TRAITS_MEMBER(file_system_url) | 527 IPC_STRUCT_TRAITS_MEMBER(file_system_url) |
| 521 IPC_STRUCT_TRAITS_MEMBER(modification_time) | 528 IPC_STRUCT_TRAITS_MEMBER(modification_time) |
| 522 IPC_STRUCT_TRAITS_MEMBER(length) | 529 IPC_STRUCT_TRAITS_MEMBER(length) |
| 523 IPC_STRUCT_TRAITS_MEMBER(is_directory) | 530 IPC_STRUCT_TRAITS_MEMBER(is_directory) |
| 524 IPC_STRUCT_TRAITS_END() | 531 IPC_STRUCT_TRAITS_END() |
| 525 | 532 |
| 526 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) | 533 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 711 | 718 |
| 712 // Notifies the corresponding RenderFrameProxy object to replace itself with the | 719 // Notifies the corresponding RenderFrameProxy object to replace itself with the |
| 713 // RenderFrame object it is associated with. | 720 // RenderFrame object it is associated with. |
| 714 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy) | 721 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy) |
| 715 | 722 |
| 716 // Request the text surrounding the selection with a |max_length|. The response | 723 // Request the text surrounding the selection with a |max_length|. The response |
| 717 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. | 724 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. |
| 718 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, | 725 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, |
| 719 uint32_t /* max_length */) | 726 uint32_t /* max_length */) |
| 720 | 727 |
| 728 // Requests the renderer for information about currently focused text input | |
|
Charlie Reis
2016/11/11 22:20:46
nit: Requests information about ... from the rende
shaktisahu
2016/11/15 05:44:54
Done.
| |
| 729 // element. | |
| 730 IPC_MESSAGE_ROUTED1(FrameMsg_FocusedFormFieldDataRequest, int) | |
|
Charlie Reis
2016/11/11 22:20:46
Use a /* comment */ to indicate what the int is.
shaktisahu
2016/11/15 05:44:54
Done.
| |
| 731 | |
| 721 // Tells the renderer to insert a link to the specified stylesheet. This is | 732 // Tells the renderer to insert a link to the specified stylesheet. This is |
| 722 // needed to support navigation transitions. | 733 // needed to support navigation transitions. |
| 723 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) | 734 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) |
| 724 | 735 |
| 725 // Change the accessibility mode in the renderer process. | 736 // Change the accessibility mode in the renderer process. |
| 726 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, | 737 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, |
| 727 AccessibilityMode) | 738 AccessibilityMode) |
| 728 | 739 |
| 729 // Dispatch a load event in the iframe element containing this frame. | 740 // Dispatch a load event in the iframe element containing this frame. |
| 730 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad) | 741 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad) |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1351 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor, | 1362 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor, |
| 1352 SkColor /* theme_color */) | 1363 SkColor /* theme_color */) |
| 1353 | 1364 |
| 1354 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and | 1365 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and |
| 1355 // |endOffset| are the offsets of the selection in the returned |content|. | 1366 // |endOffset| are the offsets of the selection in the returned |content|. |
| 1356 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, | 1367 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, |
| 1357 base::string16, /* content */ | 1368 base::string16, /* content */ |
| 1358 uint32_t, /* startOffset */ | 1369 uint32_t, /* startOffset */ |
| 1359 uint32_t/* endOffset */) | 1370 uint32_t/* endOffset */) |
| 1360 | 1371 |
| 1372 // Response for FrameMsg_FocusedFormFieldDataRequest. Sends info about the | |
| 1373 // currently focused form field. | |
| 1374 IPC_MESSAGE_ROUTED2(FrameHostMsg_FocusedFormFieldDataResponse, | |
| 1375 int, | |
|
Charlie Reis
2016/11/11 22:20:46
Add comments with parameter names, as above and be
shaktisahu
2016/11/15 05:44:54
Done.
| |
| 1376 content::FormFieldData) | |
| 1377 | |
| 1361 // Register a new handler for URL requests with the given scheme. | 1378 // Register a new handler for URL requests with the given scheme. |
| 1362 IPC_MESSAGE_ROUTED4(FrameHostMsg_RegisterProtocolHandler, | 1379 IPC_MESSAGE_ROUTED4(FrameHostMsg_RegisterProtocolHandler, |
| 1363 std::string /* scheme */, | 1380 std::string /* scheme */, |
| 1364 GURL /* url */, | 1381 GURL /* url */, |
| 1365 base::string16 /* title */, | 1382 base::string16 /* title */, |
| 1366 bool /* user_gesture */) | 1383 bool /* user_gesture */) |
| 1367 | 1384 |
| 1368 // Unregister the registered handler for URL requests with the given scheme. | 1385 // Unregister the registered handler for URL requests with the given scheme. |
| 1369 IPC_MESSAGE_ROUTED3(FrameHostMsg_UnregisterProtocolHandler, | 1386 IPC_MESSAGE_ROUTED3(FrameHostMsg_UnregisterProtocolHandler, |
| 1370 std::string /* scheme */, | 1387 std::string /* scheme */, |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1513 // nearest find result in the sending frame. | 1530 // nearest find result in the sending frame. |
| 1514 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1531 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
| 1515 int /* nfr_request_id */, | 1532 int /* nfr_request_id */, |
| 1516 float /* distance */) | 1533 float /* distance */) |
| 1517 #endif | 1534 #endif |
| 1518 | 1535 |
| 1519 // Adding a new message? Stick to the sort order above: first platform | 1536 // Adding a new message? Stick to the sort order above: first platform |
| 1520 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1537 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1521 // platform independent FrameHostMsg, then ifdefs for platform specific | 1538 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1522 // FrameHostMsg. | 1539 // FrameHostMsg. |
| OLD | NEW |