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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 IPC_STRUCT_MEMBER(blink::WebSandboxFlags, sandbox_flags) | 547 IPC_STRUCT_MEMBER(blink::WebSandboxFlags, sandbox_flags) |
548 IPC_STRUCT_MEMBER(blink::WebFrameOwnerProperties, frame_owner_properties) | 548 IPC_STRUCT_MEMBER(blink::WebFrameOwnerProperties, frame_owner_properties) |
549 IPC_STRUCT_END() | 549 IPC_STRUCT_END() |
550 | 550 |
551 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) | 551 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) |
552 IPC_STRUCT_TRAITS_MEMBER(header_value) | 552 IPC_STRUCT_TRAITS_MEMBER(header_value) |
553 IPC_STRUCT_TRAITS_MEMBER(type) | 553 IPC_STRUCT_TRAITS_MEMBER(type) |
554 IPC_STRUCT_TRAITS_MEMBER(source) | 554 IPC_STRUCT_TRAITS_MEMBER(source) |
555 IPC_STRUCT_TRAITS_END() | 555 IPC_STRUCT_TRAITS_END() |
556 | 556 |
557 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 557 #if defined(USE_EXTERNAL_POPUP_MENU) |
558 // This message is used for supporting popup menus on Mac OS X and Android using | 558 // This message is used for supporting popup menus on Mac OS X and Android using |
559 // native controls. See the FrameHostMsg_ShowPopup message. | 559 // native controls. See the FrameHostMsg_ShowPopup message. |
560 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) | 560 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) |
561 // Position on the screen. | 561 // Position on the screen. |
562 IPC_STRUCT_MEMBER(gfx::Rect, bounds) | 562 IPC_STRUCT_MEMBER(gfx::Rect, bounds) |
563 | 563 |
564 // The height of each item in the menu. | 564 // The height of each item in the menu. |
565 IPC_STRUCT_MEMBER(int, item_height) | 565 IPC_STRUCT_MEMBER(int, item_height) |
566 | 566 |
567 // The size of the font to use for those items. | 567 // The size of the font to use for those items. |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 // | 826 // |
827 // If match rects are already cached on the browser side, |current_version| | 827 // If match rects are already cached on the browser side, |current_version| |
828 // should be the version number from the FrameHostMsg_FindMatchRects_Reply | 828 // should be the version number from the FrameHostMsg_FindMatchRects_Reply |
829 // they came in, so the renderer can tell if it needs to send updated rects. | 829 // they came in, so the renderer can tell if it needs to send updated rects. |
830 // Otherwise just pass -1 to always receive the list of rects. | 830 // Otherwise just pass -1 to always receive the list of rects. |
831 // | 831 // |
832 // There must be an active search string (it is probably most useful to call | 832 // There must be an active search string (it is probably most useful to call |
833 // this immediately after a FrameHostMsg_Find_Reply message arrives with | 833 // this immediately after a FrameHostMsg_Find_Reply message arrives with |
834 // final_update set to true). | 834 // final_update set to true). |
835 IPC_MESSAGE_ROUTED1(FrameMsg_FindMatchRects, int /* current_version */) | 835 IPC_MESSAGE_ROUTED1(FrameMsg_FindMatchRects, int /* current_version */) |
| 836 #endif |
836 | 837 |
837 // External popup menus. | 838 #if defined(USE_EXTERNAL_POPUP_MENU) |
| 839 #if defined(OS_MACOSX) |
| 840 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, |
| 841 int /* selected index, -1 means no selection */) |
| 842 #else |
838 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, | 843 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, |
839 bool /* user canceled the popup */, | 844 bool /* user canceled the popup */, |
840 std::vector<int> /* selected indices */) | 845 std::vector<int> /* selected indices */) |
841 | 846 #endif |
842 #elif defined(OS_MACOSX) | |
843 | |
844 // External popup menus. | |
845 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, | |
846 int /* selected index, -1 means no selection */) | |
847 | |
848 #endif | 847 #endif |
849 | 848 |
850 // PlzNavigate | 849 // PlzNavigate |
851 // Tells the renderer that a navigation is ready to commit. The renderer should | 850 // Tells the renderer that a navigation is ready to commit. The renderer should |
852 // request |stream_url| to get access to the stream containing the body of the | 851 // request |stream_url| to get access to the stream containing the body of the |
853 // response. | 852 // response. |
854 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, | 853 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, |
855 content::ResourceResponseHead, /* response */ | 854 content::ResourceResponseHead, /* response */ |
856 GURL, /* stream_url */ | 855 GURL, /* stream_url */ |
857 content::CommonNavigationParams, /* common_params */ | 856 content::CommonNavigationParams, /* common_params */ |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1443 IPC_MESSAGE_ROUTED5(FrameHostMsg_Find_Reply, | 1442 IPC_MESSAGE_ROUTED5(FrameHostMsg_Find_Reply, |
1444 int /* request_id */, | 1443 int /* request_id */, |
1445 int /* number of matches */, | 1444 int /* number of matches */, |
1446 gfx::Rect /* selection_rect */, | 1445 gfx::Rect /* selection_rect */, |
1447 int /* active_match_ordinal */, | 1446 int /* active_match_ordinal */, |
1448 bool /* final_update */) | 1447 bool /* final_update */) |
1449 | 1448 |
1450 // Sends hittesting data needed to perform hittesting on the browser process. | 1449 // Sends hittesting data needed to perform hittesting on the browser process. |
1451 IPC_MESSAGE_ROUTED1(FrameHostMsg_HittestData, FrameHostMsg_HittestData_Params) | 1450 IPC_MESSAGE_ROUTED1(FrameHostMsg_HittestData, FrameHostMsg_HittestData_Params) |
1452 | 1451 |
1453 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1452 #if defined(USE_EXTERNAL_POPUP_MENU) |
1454 | 1453 |
1455 // Message to show/hide a popup menu using native controls. | 1454 // Message to show/hide a popup menu using native controls. |
1456 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1455 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
1457 FrameHostMsg_ShowPopup_Params) | 1456 FrameHostMsg_ShowPopup_Params) |
1458 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1457 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
1459 | 1458 |
1460 #endif | 1459 #endif |
1461 | 1460 |
1462 #if defined(OS_ANDROID) | 1461 #if defined(OS_ANDROID) |
1463 // Response to FrameMsg_FindMatchRects. | 1462 // Response to FrameMsg_FindMatchRects. |
(...skipping 14 matching lines...) Expand all Loading... |
1478 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, | 1477 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, |
1479 int /* version */, | 1478 int /* version */, |
1480 std::vector<gfx::RectF> /* rects */, | 1479 std::vector<gfx::RectF> /* rects */, |
1481 gfx::RectF /* active_rect */) | 1480 gfx::RectF /* active_rect */) |
1482 #endif | 1481 #endif |
1483 | 1482 |
1484 // Adding a new message? Stick to the sort order above: first platform | 1483 // Adding a new message? Stick to the sort order above: first platform |
1485 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1484 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1486 // platform independent FrameHostMsg, then ifdefs for platform specific | 1485 // platform independent FrameHostMsg, then ifdefs for platform specific |
1487 // FrameHostMsg. | 1486 // FrameHostMsg. |
OLD | NEW |