Index: content/browser/renderer_host/render_view_host_delegate_view.h |
diff --git a/content/browser/renderer_host/render_view_host_delegate_view.h b/content/browser/renderer_host/render_view_host_delegate_view.h |
index fb2babdc87f5e54cf186b5b3f330f4570ac93355..0ff4a000c6e71c3dba73e780db785e372a3533de 100644 |
--- a/content/browser/renderer_host/render_view_host_delegate_view.h |
+++ b/content/browser/renderer_host/render_view_host_delegate_view.h |
@@ -36,20 +36,6 @@ class CONTENT_EXPORT RenderViewHostDelegateView { |
virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
const ContextMenuParams& params) {} |
- // Shows a popup menu with the specified items. |
- // This method should call RenderViewHost::DidSelectPopupMenuItem[s]() or |
- // RenderViewHost::DidCancelPopupMenu() based on the user action. |
- virtual void ShowPopupMenu(const gfx::Rect& bounds, |
- int item_height, |
- double item_font_size, |
- int selected_item, |
- const std::vector<MenuItem>& items, |
- bool right_aligned, |
- bool allow_multiple_selection) {}; |
- |
- // Hides a popup menu opened by ShowPopupMenu(). |
- virtual void HidePopupMenu() {}; |
- |
// The user started dragging content of the specified type within the |
// RenderView. Contextual information about the dragged content is supplied |
// by DropData. If the delegate's view cannot start the drag for /any/ |
@@ -73,6 +59,23 @@ class CONTENT_EXPORT RenderViewHostDelegateView { |
// retrieved by doing a Shift-Tab. |
virtual void TakeFocus(bool reverse) {} |
+#if defined(OS_MACOSX) || defined(OS_ANDROID) |
+ // Shows a popup menu with the specified items. |
+ // This method should call RenderFrameHost::DidSelectPopupMenuItem[s]() or |
+ // RenderFrameHost::DidCancelPopupMenu() based on the user action. |
+ virtual void ShowPopupMenu(RenderFrameHost* render_frame_host, |
+ const gfx::Rect& bounds, |
+ int item_height, |
+ double item_font_size, |
+ int selected_item, |
+ const std::vector<MenuItem>& items, |
+ bool right_aligned, |
+ bool allow_multiple_selection) {}; |
+ |
+ // Hides a popup menu opened by ShowPopupMenu(). |
+ virtual void HidePopupMenu() {}; |
+#endif |
+ |
protected: |
virtual ~RenderViewHostDelegateView() {} |
}; |