| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/shell/browser/shell_web_contents_view_delegate.h" | 5 #include "content/shell/browser/shell_web_contents_view_delegate.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "content/public/browser/render_frame_host.h" | 10 #include "content/public/browser/render_frame_host.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 [menu addItem:menu_item]; | 73 [menu addItem:menu_item]; |
| 74 | 74 |
| 75 return menu_item; | 75 return menu_item; |
| 76 } | 76 } |
| 77 | 77 |
| 78 } // namespace | 78 } // namespace |
| 79 | 79 |
| 80 namespace content { | 80 namespace content { |
| 81 | 81 |
| 82 WebContentsViewDelegate* CreateShellWebContentsViewDelegate( | 82 WebContentsViewDelegate* CreateShellWebContentsViewDelegate( |
| 83 WebContents* web_contents) { | 83 WebContents* web_contents) { |
| 84 return new ShellWebContentsViewDelegate(web_contents); | 84 return new ShellWebContentsViewDelegate(web_contents); |
| 85 } | 85 } |
| 86 | 86 |
| 87 ShellWebContentsViewDelegate::ShellWebContentsViewDelegate( | 87 ShellWebContentsViewDelegate::ShellWebContentsViewDelegate( |
| 88 WebContents* web_contents) | 88 WebContents* web_contents) |
| 89 : web_contents_(web_contents) { | 89 : web_contents_(web_contents) { |
| 90 } | 90 } |
| 91 | 91 |
| 92 ShellWebContentsViewDelegate::~ShellWebContentsViewDelegate() { | 92 ShellWebContentsViewDelegate::~ShellWebContentsViewDelegate() { |
| 93 } | 93 } |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 web_contents_->Focus(); | 258 web_contents_->Focus(); |
| 259 break; | 259 break; |
| 260 } | 260 } |
| 261 case ShellContextMenuItemInspectTag: { | 261 case ShellContextMenuItemInspectTag: { |
| 262 ShellDevToolsFrontend::Show(web_contents_); | 262 ShellDevToolsFrontend::Show(web_contents_); |
| 263 break; | 263 break; |
| 264 } | 264 } |
| 265 } | 265 } |
| 266 } | 266 } |
| 267 | 267 |
| 268 WebDragDestDelegate* ShellWebContentsViewDelegate::GetDragDestDelegate() { | |
| 269 return NULL; | |
| 270 } | |
| 271 | |
| 272 NSObject<RenderWidgetHostViewMacDelegate>* | |
| 273 ShellWebContentsViewDelegate::CreateRenderWidgetHostViewDelegate( | |
| 274 content::RenderWidgetHost* render_widget_host) { | |
| 275 return NULL; | |
| 276 } | |
| 277 | |
| 278 } // namespace content | 268 } // namespace content |
| OLD | NEW |