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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm

Issue 507363002: MacViews: Guard Objective-C bits in content::WebContentsViewDelegate with __OBJC__ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix content_browsertests Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm
diff --git a/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm b/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm
index 3e6d73c9b6332492af68161a037762945c59affc..6d49c029d382b5ab416c5fc95ccb1135b5c9f93f 100644
--- a/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm
+++ b/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm
@@ -41,6 +41,11 @@ void ChromeWebContentsViewDelegateMac::ShowContextMenu(
params));
}
+content::WebContentsViewDelegateMac*
+ChromeWebContentsViewDelegateMac::AsWebContentsViewDelegateMac() {
+ return this;
+}
+
void ChromeWebContentsViewDelegateMac::ShowMenu(
scoped_ptr<RenderViewContextMenu> menu) {
context_menu_.reset(static_cast<RenderViewContextMenuMac*>(menu.release()));

Powered by Google App Engine
This is Rietveld 408576698