| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/shell_web_contents_view_delegate.h" | 5 #include "content/shell/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_process_host.h" | 10 #include "content/public/browser/render_process_host.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 web_contents_->GetRenderViewHost()->Copy(); | 230 web_contents_->GetRenderViewHost()->Copy(); |
| 231 break; | 231 break; |
| 232 case ShellContextMenuItemPasteTag: | 232 case ShellContextMenuItemPasteTag: |
| 233 web_contents_->GetRenderViewHost()->Paste(); | 233 web_contents_->GetRenderViewHost()->Paste(); |
| 234 break; | 234 break; |
| 235 case ShellContextMenuItemDeleteTag: | 235 case ShellContextMenuItemDeleteTag: |
| 236 web_contents_->GetRenderViewHost()->Delete(); | 236 web_contents_->GetRenderViewHost()->Delete(); |
| 237 break; | 237 break; |
| 238 case ShellContextMenuItemOpenLinkTag: { | 238 case ShellContextMenuItemOpenLinkTag: { |
| 239 ShellBrowserContext* browser_context = | 239 ShellBrowserContext* browser_context = |
| 240 static_cast<ShellContentBrowserClient*>( | 240 ShellContentBrowserClient::Get()->browser_context(); |
| 241 GetContentClient()->browser())->browser_context(); | |
| 242 Shell::CreateNewWindow(browser_context, | 241 Shell::CreateNewWindow(browser_context, |
| 243 params_.link_url, | 242 params_.link_url, |
| 244 NULL, | 243 NULL, |
| 245 MSG_ROUTING_NONE, | 244 MSG_ROUTING_NONE, |
| 246 gfx::Size()); | 245 gfx::Size()); |
| 247 break; | 246 break; |
| 248 } | 247 } |
| 249 case ShellContextMenuItemBackTag: | 248 case ShellContextMenuItemBackTag: |
| 250 web_contents_->GetController().GoToOffset(-1); | 249 web_contents_->GetController().GoToOffset(-1); |
| 251 web_contents_->GetView()->Focus(); | 250 web_contents_->GetView()->Focus(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 270 return NULL; | 269 return NULL; |
| 271 } | 270 } |
| 272 | 271 |
| 273 NSObject<RenderWidgetHostViewMacDelegate>* | 272 NSObject<RenderWidgetHostViewMacDelegate>* |
| 274 ShellWebContentsViewDelegate::CreateRenderWidgetHostViewDelegate( | 273 ShellWebContentsViewDelegate::CreateRenderWidgetHostViewDelegate( |
| 275 content::RenderWidgetHost* render_widget_host) { | 274 content::RenderWidgetHost* render_widget_host) { |
| 276 return NULL; | 275 return NULL; |
| 277 } | 276 } |
| 278 | 277 |
| 279 } // namespace content | 278 } // namespace content |
| OLD | NEW |