Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: content/common/frame_messages.h

Issue 1992393002: Enable external popup menu in Blimp, part 1/2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
838 #if defined(USE_EXTERNAL_POPUP_MENU) && !defined(OS_MACOSX)
837 // External popup menus. 839 // External popup menus.
838 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, 840 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems,
839 bool /* user canceled the popup */, 841 bool /* user canceled the popup */,
840 std::vector<int> /* selected indices */) 842 std::vector<int> /* selected indices */)
841 843
842 #elif defined(OS_MACOSX) 844 #elif defined(OS_MACOSX)
843 845
844 // External popup menus. 846 // External popup menus.
845 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, 847 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem,
846 int /* selected index, -1 means no selection */) 848 int /* selected index, -1 means no selection */)
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 IPC_MESSAGE_ROUTED5(FrameHostMsg_Find_Reply, 1445 IPC_MESSAGE_ROUTED5(FrameHostMsg_Find_Reply,
1444 int /* request_id */, 1446 int /* request_id */,
1445 int /* number of matches */, 1447 int /* number of matches */,
1446 gfx::Rect /* selection_rect */, 1448 gfx::Rect /* selection_rect */,
1447 int /* active_match_ordinal */, 1449 int /* active_match_ordinal */,
1448 bool /* final_update */) 1450 bool /* final_update */)
1449 1451
1450 // Sends hittesting data needed to perform hittesting on the browser process. 1452 // Sends hittesting data needed to perform hittesting on the browser process.
1451 IPC_MESSAGE_ROUTED1(FrameHostMsg_HittestData, FrameHostMsg_HittestData_Params) 1453 IPC_MESSAGE_ROUTED1(FrameHostMsg_HittestData, FrameHostMsg_HittestData_Params)
1452 1454
1453 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1455 #if defined(USE_EXTERNAL_POPUP_MENU)
1454 1456
1455 // Message to show/hide a popup menu using native controls. 1457 // Message to show/hide a popup menu using native controls.
1456 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 1458 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
1457 FrameHostMsg_ShowPopup_Params) 1459 FrameHostMsg_ShowPopup_Params)
1458 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 1460 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
1459 1461
1460 #endif 1462 #endif
1461 1463
1462 #if defined(OS_ANDROID) 1464 #if defined(OS_ANDROID)
1463 // Response to FrameMsg_FindMatchRects. 1465 // Response to FrameMsg_FindMatchRects.
(...skipping 14 matching lines...) Expand all
1478 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1480 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1479 int /* version */, 1481 int /* version */,
1480 std::vector<gfx::RectF> /* rects */, 1482 std::vector<gfx::RectF> /* rects */,
1481 gfx::RectF /* active_rect */) 1483 gfx::RectF /* active_rect */)
1482 #endif 1484 #endif
1483 1485
1484 // Adding a new message? Stick to the sort order above: first platform 1486 // Adding a new message? Stick to the sort order above: first platform
1485 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1487 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1486 // platform independent FrameHostMsg, then ifdefs for platform specific 1488 // platform independent FrameHostMsg, then ifdefs for platform specific
1487 // FrameHostMsg. 1489 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698