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 |
11 #include <map> | 11 #include <map> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "cc/surfaces/surface_id.h" | 17 #include "cc/surfaces/surface_id.h" |
18 #include "cc/surfaces/surface_info.h" | 18 #include "cc/surfaces/surface_info.h" |
19 #include "cc/surfaces/surface_sequence.h" | 19 #include "cc/surfaces/surface_sequence.h" |
20 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
21 #include "content/common/content_param_traits.h" | 21 #include "content/common/content_param_traits.h" |
22 #include "content/common/content_security_policy/content_security_policy.h" | 22 #include "content/common/content_security_policy/content_security_policy.h" |
23 #include "content/common/content_security_policy_header.h" | 23 #include "content/common/content_security_policy_header.h" |
24 #include "content/common/download/mhtml_save_status.h" | 24 #include "content/common/download/mhtml_save_status.h" |
| 25 #include "content/common/features.h" |
25 #include "content/common/frame_message_enums.h" | 26 #include "content/common/frame_message_enums.h" |
26 #include "content/common/frame_owner_properties.h" | 27 #include "content/common/frame_owner_properties.h" |
27 #include "content/common/frame_replication_state.h" | 28 #include "content/common/frame_replication_state.h" |
28 #include "content/common/message_port.h" | 29 #include "content/common/message_port.h" |
29 #include "content/common/navigation_gesture.h" | 30 #include "content/common/navigation_gesture.h" |
30 #include "content/common/navigation_params.h" | 31 #include "content/common/navigation_params.h" |
31 #include "content/common/savable_subframe.h" | 32 #include "content/common/savable_subframe.h" |
32 #include "content/public/common/color_suggestion.h" | 33 #include "content/public/common/color_suggestion.h" |
33 #include "content/public/common/common_param_traits.h" | 34 #include "content/public/common/common_param_traits.h" |
34 #include "content/public/common/console_message_level.h" | 35 #include "content/public/common/console_message_level.h" |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 IPC_STRUCT_TRAITS_MEMBER(title) | 593 IPC_STRUCT_TRAITS_MEMBER(title) |
593 IPC_STRUCT_TRAITS_MEMBER(default_file_name) | 594 IPC_STRUCT_TRAITS_MEMBER(default_file_name) |
594 IPC_STRUCT_TRAITS_MEMBER(accept_types) | 595 IPC_STRUCT_TRAITS_MEMBER(accept_types) |
595 IPC_STRUCT_TRAITS_MEMBER(need_local_path) | 596 IPC_STRUCT_TRAITS_MEMBER(need_local_path) |
596 #if defined(OS_ANDROID) | 597 #if defined(OS_ANDROID) |
597 IPC_STRUCT_TRAITS_MEMBER(capture) | 598 IPC_STRUCT_TRAITS_MEMBER(capture) |
598 #endif | 599 #endif |
599 IPC_STRUCT_TRAITS_MEMBER(requestor) | 600 IPC_STRUCT_TRAITS_MEMBER(requestor) |
600 IPC_STRUCT_TRAITS_END() | 601 IPC_STRUCT_TRAITS_END() |
601 | 602 |
602 #if defined(USE_EXTERNAL_POPUP_MENU) | 603 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
603 // This message is used for supporting popup menus on Mac OS X and Android using | 604 // This message is used for supporting popup menus on Mac OS X and Android using |
604 // native controls. See the FrameHostMsg_ShowPopup message. | 605 // native controls. See the FrameHostMsg_ShowPopup message. |
605 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) | 606 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) |
606 // Position on the screen. | 607 // Position on the screen. |
607 IPC_STRUCT_MEMBER(gfx::Rect, bounds) | 608 IPC_STRUCT_MEMBER(gfx::Rect, bounds) |
608 | 609 |
609 // The height of each item in the menu. | 610 // The height of each item in the menu. |
610 IPC_STRUCT_MEMBER(int, item_height) | 611 IPC_STRUCT_MEMBER(int, item_height) |
611 | 612 |
612 // The size of the font to use for those items. | 613 // The size of the font to use for those items. |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 // should be the version number from the FrameHostMsg_FindMatchRects_Reply | 862 // should be the version number from the FrameHostMsg_FindMatchRects_Reply |
862 // they came in, so the renderer can tell if it needs to send updated rects. | 863 // they came in, so the renderer can tell if it needs to send updated rects. |
863 // Otherwise just pass -1 to always receive the list of rects. | 864 // Otherwise just pass -1 to always receive the list of rects. |
864 // | 865 // |
865 // There must be an active search string (it is probably most useful to call | 866 // There must be an active search string (it is probably most useful to call |
866 // this immediately after a FrameHostMsg_Find_Reply message arrives with | 867 // this immediately after a FrameHostMsg_Find_Reply message arrives with |
867 // final_update set to true). | 868 // final_update set to true). |
868 IPC_MESSAGE_ROUTED1(FrameMsg_FindMatchRects, int /* current_version */) | 869 IPC_MESSAGE_ROUTED1(FrameMsg_FindMatchRects, int /* current_version */) |
869 #endif | 870 #endif |
870 | 871 |
871 #if defined(USE_EXTERNAL_POPUP_MENU) | 872 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
872 #if defined(OS_MACOSX) | 873 #if defined(OS_MACOSX) |
873 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, | 874 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, |
874 int /* selected index, -1 means no selection */) | 875 int /* selected index, -1 means no selection */) |
875 #else | 876 #else |
876 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, | 877 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, |
877 bool /* user canceled the popup */, | 878 bool /* user canceled the popup */, |
878 std::vector<int> /* selected indices */) | 879 std::vector<int> /* selected indices */) |
879 #endif | 880 #endif |
880 #endif | 881 #endif |
881 | 882 |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1575 int /* active_match_ordinal */, | 1576 int /* active_match_ordinal */, |
1576 bool /* final_update */) | 1577 bool /* final_update */) |
1577 | 1578 |
1578 // Sends hittesting data needed to perform hittesting on the browser process. | 1579 // Sends hittesting data needed to perform hittesting on the browser process. |
1579 IPC_MESSAGE_ROUTED1(FrameHostMsg_HittestData, FrameHostMsg_HittestData_Params) | 1580 IPC_MESSAGE_ROUTED1(FrameHostMsg_HittestData, FrameHostMsg_HittestData_Params) |
1580 | 1581 |
1581 // Asks the browser to display the file chooser. The result is returned in a | 1582 // Asks the browser to display the file chooser. The result is returned in a |
1582 // FrameMsg_RunFileChooserResponse message. | 1583 // FrameMsg_RunFileChooserResponse message. |
1583 IPC_MESSAGE_ROUTED1(FrameHostMsg_RunFileChooser, content::FileChooserParams) | 1584 IPC_MESSAGE_ROUTED1(FrameHostMsg_RunFileChooser, content::FileChooserParams) |
1584 | 1585 |
1585 #if defined(USE_EXTERNAL_POPUP_MENU) | 1586 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
1586 | 1587 |
1587 // Message to show/hide a popup menu using native controls. | 1588 // Message to show/hide a popup menu using native controls. |
1588 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1589 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
1589 FrameHostMsg_ShowPopup_Params) | 1590 FrameHostMsg_ShowPopup_Params) |
1590 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1591 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
1591 | 1592 |
1592 #endif | 1593 #endif |
1593 | 1594 |
1594 #if defined(OS_ANDROID) | 1595 #if defined(OS_ANDROID) |
1595 // Response to FrameMsg_FindMatchRects. | 1596 // Response to FrameMsg_FindMatchRects. |
(...skipping 22 matching lines...) Expand all Loading... |
1618 int /* nfr_request_id */, | 1619 int /* nfr_request_id */, |
1619 float /* distance */) | 1620 float /* distance */) |
1620 | 1621 |
1621 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) | 1622 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) |
1622 #endif | 1623 #endif |
1623 | 1624 |
1624 // Adding a new message? Stick to the sort order above: first platform | 1625 // Adding a new message? Stick to the sort order above: first platform |
1625 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1626 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1626 // platform independent FrameHostMsg, then ifdefs for platform specific | 1627 // platform independent FrameHostMsg, then ifdefs for platform specific |
1627 // FrameHostMsg. | 1628 // FrameHostMsg. |
OLD | NEW |