Index: content/common/frame_messages.h |
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h |
index 12585d0efaab76a90ff3e6fd3725811d489180ea..692531ed85aba030ff66b382252e0966bcfaa28c 100644 |
--- a/content/common/frame_messages.h |
+++ b/content/common/frame_messages.h |
@@ -554,7 +554,7 @@ IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) |
IPC_STRUCT_TRAITS_MEMBER(source) |
IPC_STRUCT_TRAITS_END() |
-#if defined(OS_MACOSX) || defined(OS_ANDROID) |
+#if defined(USE_EXTERNAL_POPUP_MENU) |
// This message is used for supporting popup menus on Mac OS X and Android using |
// native controls. See the FrameHostMsg_ShowPopup message. |
IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) |
@@ -833,7 +833,9 @@ IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params) |
// this immediately after a FrameHostMsg_Find_Reply message arrives with |
// final_update set to true). |
IPC_MESSAGE_ROUTED1(FrameMsg_FindMatchRects, int /* current_version */) |
+#endif |
+#if defined(USE_EXTERNAL_POPUP_MENU) && !defined(OS_MACOSX) |
// External popup menus. |
IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, |
bool /* user canceled the popup */, |
@@ -1450,7 +1452,7 @@ IPC_MESSAGE_ROUTED5(FrameHostMsg_Find_Reply, |
// Sends hittesting data needed to perform hittesting on the browser process. |
IPC_MESSAGE_ROUTED1(FrameHostMsg_HittestData, FrameHostMsg_HittestData_Params) |
-#if defined(OS_MACOSX) || defined(OS_ANDROID) |
+#if defined(USE_EXTERNAL_POPUP_MENU) |
// Message to show/hide a popup menu using native controls. |
IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |