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 11 matching lines...) Expand all Loading... |
22 #include "content/common/frame_message_enums.h" | 22 #include "content/common/frame_message_enums.h" |
23 #include "content/common/frame_replication_state.h" | 23 #include "content/common/frame_replication_state.h" |
24 #include "content/common/navigation_gesture.h" | 24 #include "content/common/navigation_gesture.h" |
25 #include "content/common/navigation_params.h" | 25 #include "content/common/navigation_params.h" |
26 #include "content/common/resource_request_body.h" | 26 #include "content/common/resource_request_body.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" |
| 33 #include "content/public/common/file_chooser_params.h" |
32 #include "content/public/common/frame_navigate_params.h" | 34 #include "content/public/common/frame_navigate_params.h" |
33 #include "content/public/common/javascript_message_type.h" | 35 #include "content/public/common/javascript_message_type.h" |
34 #include "content/public/common/page_importance_signals.h" | 36 #include "content/public/common/page_importance_signals.h" |
35 #include "content/public/common/page_state.h" | 37 #include "content/public/common/page_state.h" |
36 #include "content/public/common/resource_response.h" | 38 #include "content/public/common/resource_response.h" |
37 #include "content/public/common/stop_find_action.h" | 39 #include "content/public/common/stop_find_action.h" |
38 #include "content/public/common/three_d_api_types.h" | 40 #include "content/public/common/three_d_api_types.h" |
39 #include "content/public/common/transition_element.h" | 41 #include "content/public/common/transition_element.h" |
40 #include "ipc/ipc_message_macros.h" | 42 #include "ipc/ipc_message_macros.h" |
41 #include "ipc/ipc_platform_file.h" | 43 #include "ipc/ipc_platform_file.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 blink::WebFrameOwnerProperties::ScrollingMode::Last) | 96 blink::WebFrameOwnerProperties::ScrollingMode::Last) |
95 IPC_ENUM_TRAITS_MAX_VALUE(content::StopFindAction, | 97 IPC_ENUM_TRAITS_MAX_VALUE(content::StopFindAction, |
96 content::STOP_FIND_ACTION_LAST) | 98 content::STOP_FIND_ACTION_LAST) |
97 IPC_ENUM_TRAITS(blink::WebSandboxFlags) // Bitmask. | 99 IPC_ENUM_TRAITS(blink::WebSandboxFlags) // Bitmask. |
98 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTreeScopeType, | 100 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTreeScopeType, |
99 blink::WebTreeScopeType::Last) | 101 blink::WebTreeScopeType::Last) |
100 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) | 102 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) |
101 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::LoFiState, | 103 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::LoFiState, |
102 content::LOFI_UNSPECIFIED, | 104 content::LOFI_UNSPECIFIED, |
103 content::LOFI_ON) | 105 content::LOFI_ON) |
| 106 IPC_ENUM_TRAITS_MAX_VALUE(content::FileChooserParams::Mode, |
| 107 content::FileChooserParams::Save) |
104 | 108 |
105 IPC_STRUCT_TRAITS_BEGIN(blink::WebFindOptions) | 109 IPC_STRUCT_TRAITS_BEGIN(blink::WebFindOptions) |
106 IPC_STRUCT_TRAITS_MEMBER(forward) | 110 IPC_STRUCT_TRAITS_MEMBER(forward) |
107 IPC_STRUCT_TRAITS_MEMBER(matchCase) | 111 IPC_STRUCT_TRAITS_MEMBER(matchCase) |
108 IPC_STRUCT_TRAITS_MEMBER(findNext) | 112 IPC_STRUCT_TRAITS_MEMBER(findNext) |
109 IPC_STRUCT_TRAITS_END() | 113 IPC_STRUCT_TRAITS_END() |
110 | 114 |
111 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) | 115 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) |
112 IPC_STRUCT_TRAITS_MEMBER(color) | 116 IPC_STRUCT_TRAITS_MEMBER(color) |
113 IPC_STRUCT_TRAITS_MEMBER(label) | 117 IPC_STRUCT_TRAITS_MEMBER(label) |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 IPC_STRUCT_MEMBER(blink::WebSandboxFlags, sandbox_flags) | 551 IPC_STRUCT_MEMBER(blink::WebSandboxFlags, sandbox_flags) |
548 IPC_STRUCT_MEMBER(blink::WebFrameOwnerProperties, frame_owner_properties) | 552 IPC_STRUCT_MEMBER(blink::WebFrameOwnerProperties, frame_owner_properties) |
549 IPC_STRUCT_END() | 553 IPC_STRUCT_END() |
550 | 554 |
551 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) | 555 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) |
552 IPC_STRUCT_TRAITS_MEMBER(header_value) | 556 IPC_STRUCT_TRAITS_MEMBER(header_value) |
553 IPC_STRUCT_TRAITS_MEMBER(type) | 557 IPC_STRUCT_TRAITS_MEMBER(type) |
554 IPC_STRUCT_TRAITS_MEMBER(source) | 558 IPC_STRUCT_TRAITS_MEMBER(source) |
555 IPC_STRUCT_TRAITS_END() | 559 IPC_STRUCT_TRAITS_END() |
556 | 560 |
| 561 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo) |
| 562 IPC_STRUCT_TRAITS_MEMBER(file_path) |
| 563 IPC_STRUCT_TRAITS_MEMBER(display_name) |
| 564 IPC_STRUCT_TRAITS_MEMBER(file_system_url) |
| 565 IPC_STRUCT_TRAITS_MEMBER(modification_time) |
| 566 IPC_STRUCT_TRAITS_MEMBER(length) |
| 567 IPC_STRUCT_TRAITS_MEMBER(is_directory) |
| 568 IPC_STRUCT_TRAITS_END() |
| 569 |
| 570 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) |
| 571 IPC_STRUCT_TRAITS_MEMBER(mode) |
| 572 IPC_STRUCT_TRAITS_MEMBER(title) |
| 573 IPC_STRUCT_TRAITS_MEMBER(default_file_name) |
| 574 IPC_STRUCT_TRAITS_MEMBER(accept_types) |
| 575 IPC_STRUCT_TRAITS_MEMBER(need_local_path) |
| 576 #if defined(OS_ANDROID) |
| 577 IPC_STRUCT_TRAITS_MEMBER(capture) |
| 578 #endif |
| 579 IPC_STRUCT_TRAITS_MEMBER(requestor) |
| 580 IPC_STRUCT_TRAITS_END() |
| 581 |
557 #if defined(USE_EXTERNAL_POPUP_MENU) | 582 #if defined(USE_EXTERNAL_POPUP_MENU) |
558 // This message is used for supporting popup menus on Mac OS X and Android using | 583 // This message is used for supporting popup menus on Mac OS X and Android using |
559 // native controls. See the FrameHostMsg_ShowPopup message. | 584 // native controls. See the FrameHostMsg_ShowPopup message. |
560 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) | 585 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) |
561 // Position on the screen. | 586 // Position on the screen. |
562 IPC_STRUCT_MEMBER(gfx::Rect, bounds) | 587 IPC_STRUCT_MEMBER(gfx::Rect, bounds) |
563 | 588 |
564 // The height of each item in the menu. | 589 // The height of each item in the menu. |
565 IPC_STRUCT_MEMBER(int, item_height) | 590 IPC_STRUCT_MEMBER(int, item_height) |
566 | 591 |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
932 #endif // defined(ENABLE_PLUGINS) | 957 #endif // defined(ENABLE_PLUGINS) |
933 | 958 |
934 // Used to instruct the RenderFrame to go into "view source" mode. This should | 959 // Used to instruct the RenderFrame to go into "view source" mode. This should |
935 // only be sent to the main frame. | 960 // only be sent to the main frame. |
936 IPC_MESSAGE_ROUTED0(FrameMsg_EnableViewSourceMode) | 961 IPC_MESSAGE_ROUTED0(FrameMsg_EnableViewSourceMode) |
937 | 962 |
938 // Tells the frame to suppress any further modal dialogs. This ensures that no | 963 // Tells the frame to suppress any further modal dialogs. This ensures that no |
939 // ScopedPageLoadDeferrer is on the stack for SwapOut. | 964 // ScopedPageLoadDeferrer is on the stack for SwapOut. |
940 IPC_MESSAGE_ROUTED0(FrameMsg_SuppressFurtherDialogs) | 965 IPC_MESSAGE_ROUTED0(FrameMsg_SuppressFurtherDialogs) |
941 | 966 |
| 967 IPC_MESSAGE_ROUTED1(FrameMsg_RunFileChooserResponse, |
| 968 std::vector<content::FileChooserFileInfo>) |
| 969 |
942 // ----------------------------------------------------------------------------- | 970 // ----------------------------------------------------------------------------- |
943 // Messages sent from the renderer to the browser. | 971 // Messages sent from the renderer to the browser. |
944 | 972 |
945 // Blink and JavaScript error messages to log to the console | 973 // Blink and JavaScript error messages to log to the console |
946 // or debugger UI. | 974 // or debugger UI. |
947 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 975 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
948 int32_t, /* log level */ | 976 int32_t, /* log level */ |
949 base::string16, /* msg */ | 977 base::string16, /* msg */ |
950 int32_t, /* line number */ | 978 int32_t, /* line number */ |
951 base::string16 /* source id */) | 979 base::string16 /* source id */) |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1464 IPC_MESSAGE_ROUTED5(FrameHostMsg_Find_Reply, | 1492 IPC_MESSAGE_ROUTED5(FrameHostMsg_Find_Reply, |
1465 int /* request_id */, | 1493 int /* request_id */, |
1466 int /* number of matches */, | 1494 int /* number of matches */, |
1467 gfx::Rect /* selection_rect */, | 1495 gfx::Rect /* selection_rect */, |
1468 int /* active_match_ordinal */, | 1496 int /* active_match_ordinal */, |
1469 bool /* final_update */) | 1497 bool /* final_update */) |
1470 | 1498 |
1471 // Sends hittesting data needed to perform hittesting on the browser process. | 1499 // Sends hittesting data needed to perform hittesting on the browser process. |
1472 IPC_MESSAGE_ROUTED1(FrameHostMsg_HittestData, FrameHostMsg_HittestData_Params) | 1500 IPC_MESSAGE_ROUTED1(FrameHostMsg_HittestData, FrameHostMsg_HittestData_Params) |
1473 | 1501 |
| 1502 // Asks the browser to display the file chooser. The result is returned in a |
| 1503 // FrameMsg_RunFileChooserResponse message. |
| 1504 IPC_MESSAGE_ROUTED1(FrameHostMsg_RunFileChooser, content::FileChooserParams) |
| 1505 |
1474 #if defined(USE_EXTERNAL_POPUP_MENU) | 1506 #if defined(USE_EXTERNAL_POPUP_MENU) |
1475 | 1507 |
1476 // Message to show/hide a popup menu using native controls. | 1508 // Message to show/hide a popup menu using native controls. |
1477 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1509 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
1478 FrameHostMsg_ShowPopup_Params) | 1510 FrameHostMsg_ShowPopup_Params) |
1479 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1511 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
1480 | 1512 |
1481 #endif | 1513 #endif |
1482 | 1514 |
1483 #if defined(OS_ANDROID) | 1515 #if defined(OS_ANDROID) |
(...skipping 21 matching lines...) Expand all Loading... |
1505 // nearest find result in the sending frame. | 1537 // nearest find result in the sending frame. |
1506 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1538 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
1507 int /* nfr_request_id */, | 1539 int /* nfr_request_id */, |
1508 float /* distance */) | 1540 float /* distance */) |
1509 #endif | 1541 #endif |
1510 | 1542 |
1511 // Adding a new message? Stick to the sort order above: first platform | 1543 // Adding a new message? Stick to the sort order above: first platform |
1512 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1544 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1513 // platform independent FrameHostMsg, then ifdefs for platform specific | 1545 // platform independent FrameHostMsg, then ifdefs for platform specific |
1514 // FrameHostMsg. | 1546 // FrameHostMsg. |
OLD | NEW |