Index: content/shell/shell_web_contents_view_delegate_mac.mm |
diff --git a/content/shell/shell_web_contents_view_delegate_mac.mm b/content/shell/shell_web_contents_view_delegate_mac.mm |
index 7143e16b8c87d507cd6eab126280baab537e692a..246059517f2ebd1176eda768ed2a13ead671bb0b 100644 |
--- a/content/shell/shell_web_contents_view_delegate_mac.mm |
+++ b/content/shell/shell_web_contents_view_delegate_mac.mm |
@@ -201,7 +201,7 @@ void ShellWebContentsViewDelegate::ShowContextMenu( |
YES, |
delegate); |
- NSView* parent_view = web_contents_->GetContentNativeView(); |
+ NSView* parent_view = web_contents_->GetView()->GetContentNativeView(); |
NSEvent* currentEvent = [NSApp currentEvent]; |
NSWindow* window = [parent_view window]; |
NSPoint position = [window mouseLocationOutsideOfEventStream]; |
@@ -248,15 +248,15 @@ void ShellWebContentsViewDelegate::ActionPerformed(int tag) { |
} |
case ShellContextMenuItemBackTag: |
web_contents_->GetController().GoToOffset(-1); |
- web_contents_->Focus(); |
+ web_contents_->GetView()->Focus(); |
break; |
case ShellContextMenuItemForwardTag: |
web_contents_->GetController().GoToOffset(1); |
- web_contents_->Focus(); |
+ web_contents_->GetView()->Focus(); |
break; |
case ShellContextMenuItemReloadTag: { |
web_contents_->GetController().Reload(false); |
- web_contents_->Focus(); |
+ web_contents_->GetView()->Focus(); |
break; |
} |
case ShellContextMenuItemInspectTag: { |