Index: content/browser/web_contents/web_contents_view_mac.mm |
diff --git a/content/browser/web_contents/web_contents_view_mac.mm b/content/browser/web_contents/web_contents_view_mac.mm |
index 3dfc402b34043b62387b7cc7209a251a8872eba3..c27c9927397f02c273ef4721495a1a56ad8db365 100644 |
--- a/content/browser/web_contents/web_contents_view_mac.mm |
+++ b/content/browser/web_contents/web_contents_view_mac.mm |
@@ -11,7 +11,7 @@ |
#import "base/mac/scoped_sending_event.h" |
#include "base/message_loop/message_loop.h" |
#import "base/message_loop/message_pump_mac.h" |
-#include "content/browser/renderer_host/popup_menu_helper_mac.h" |
+#include "content/browser/frame_host/popup_menu_helper_mac.h" |
#include "content/browser/renderer_host/render_view_host_factory.h" |
#include "content/browser/renderer_host/render_view_host_impl.h" |
#include "content/browser/renderer_host/render_widget_host_view_mac.h" |
@@ -68,6 +68,7 @@ COMPILE_ASSERT_MATCHING_ENUM(DragOperationEvery); |
@end |
namespace content { |
+ |
WebContentsView* CreateWebContentsView( |
WebContentsImpl* web_contents, |
WebContentsViewDelegate* delegate, |
@@ -219,7 +220,7 @@ void WebContentsViewMac::TakeFocus(bool reverse) { |
} |
void WebContentsViewMac::ShowContextMenu( |
- content::RenderFrameHost* render_frame_host, |
+ RenderFrameHost* render_frame_host, |
const ContextMenuParams& params) { |
// Allow delegates to handle the context menu operation first. |
if (web_contents_->GetDelegate() && |
@@ -233,8 +234,8 @@ void WebContentsViewMac::ShowContextMenu( |
DLOG(ERROR) << "Cannot show context menus without a delegate."; |
} |
-// Display a popup menu for WebKit using Cocoa widgets. |
void WebContentsViewMac::ShowPopupMenu( |
+ RenderFrameHost* render_frame_host, |
const gfx::Rect& bounds, |
int item_height, |
double item_font_size, |
@@ -242,8 +243,7 @@ void WebContentsViewMac::ShowPopupMenu( |
const std::vector<MenuItem>& items, |
bool right_aligned, |
bool allow_multiple_selection) { |
- popup_menu_helper_.reset( |
- new PopupMenuHelper(web_contents_->GetRenderViewHost())); |
+ popup_menu_helper_.reset(new PopupMenuHelper(render_frame_host)); |
popup_menu_helper_->ShowPopupMenu(bounds, item_height, item_font_size, |
selected_item, items, right_aligned, |
allow_multiple_selection); |