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 "android_webview/browser/aw_web_contents_view_delegate.h" | 5 #include "android_webview/browser/aw_web_contents_view_delegate.h" |
6 | 6 |
7 #include "content/public/browser/android/content_view_core.h" | 7 #include "content/public/browser/android/content_view_core.h" |
8 #include "content/public/browser/web_contents.h" | 8 #include "content/public/browser/web_contents.h" |
9 #include "content/public/common/context_menu_params.h" | 9 #include "content/public/common/context_menu_params.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 NOTREACHED(); | 31 NOTREACHED(); |
32 return NULL; | 32 return NULL; |
33 } | 33 } |
34 | 34 |
35 void AwWebContentsViewDelegate::ShowContextMenu( | 35 void AwWebContentsViewDelegate::ShowContextMenu( |
36 content::RenderFrameHost* render_frame_host, | 36 content::RenderFrameHost* render_frame_host, |
37 const content::ContextMenuParams& params) { | 37 const content::ContextMenuParams& params) { |
38 content::ContentViewCore* content_view_core = | 38 content::ContentViewCore* content_view_core = |
39 content::ContentViewCore::FromWebContents(web_contents_); | 39 content::ContentViewCore::FromWebContents(web_contents_); |
40 if (content_view_core) | 40 if (content_view_core) |
41 content_view_core->ShowPastePopup(params); | 41 content_view_core->ShowSelectionMenu(params); |
42 } | 42 } |
43 | 43 |
44 } // namespace android_webview | 44 } // namespace android_webview |
OLD | NEW |