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 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "content/public/browser/android/content_view_core.h" | 8 #include "content/public/browser/android/content_view_core.h" |
9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
10 #include "content/public/common/context_menu_params.h" | 10 #include "content/public/common/context_menu_params.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 ShellWebContentsViewDelegate::~ShellWebContentsViewDelegate() { | 26 ShellWebContentsViewDelegate::~ShellWebContentsViewDelegate() { |
27 } | 27 } |
28 | 28 |
29 void ShellWebContentsViewDelegate::ShowContextMenu( | 29 void ShellWebContentsViewDelegate::ShowContextMenu( |
30 RenderFrameHost* render_frame_host, | 30 RenderFrameHost* render_frame_host, |
31 const ContextMenuParams& params) { | 31 const ContextMenuParams& params) { |
32 content::ContentViewCore* content_view_core = | 32 content::ContentViewCore* content_view_core = |
33 ContentViewCore::FromWebContents(web_contents_); | 33 ContentViewCore::FromWebContents(web_contents_); |
34 if (content_view_core) | 34 if (content_view_core) |
35 content_view_core->ShowPastePopup(params); | 35 content_view_core->ShowSelectionMenu(params); |
36 } | 36 } |
37 | 37 |
38 } // namespace content | 38 } // namespace content |
OLD | NEW |