| 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..99a9a45effb5aa7dc06fe499e603f002e39e5293 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()));
|
| @@ -90,9 +95,12 @@ ChromeWebContentsViewDelegateMac::GetActiveRenderWidgetHostView() {
|
|
|
| namespace chrome {
|
|
|
| +#if !defined(TOOLKIT_VIEWS)
|
| content::WebContentsViewDelegate* CreateWebContentsViewDelegate(
|
| - content::WebContents* web_contents) {
|
| + content::WebContents* web_contents,
|
| + gfx::NativeView context) {
|
| return new ChromeWebContentsViewDelegateMac(web_contents);
|
| }
|
| +#endif // !defined(TOOLKIT_VIEWS)
|
|
|
| } // namespace chrome
|
|
|