Use WebcontentViewDelegate for show context menu
authoryh106.jung <yh106.jung@samsung.com>
Thu, 12 Mar 2015 13:29:03 +0000 (22:29 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Make EWK uses WebcontentViewDelegate for show context menuK

Change-Id: I06fdffcb019f648164187d970e06d27c110bba87
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
tizen_src/ewk/efl_integration/web_contents_view_delegate_ewk.cc
tizen_src/ewk/efl_integration/web_contents_view_delegate_ewk.h

index 82edc02..8664202 100644 (file)
@@ -10,6 +10,12 @@ WebContentsViewDelegateEwk::WebContentsViewDelegateEwk(EWebView* wv)
     : web_view_(wv) {
 }
 
+void WebContentsViewDelegateEwk::ShowContextMenu(
+      content::RenderFrameHost* render_frame_host,
+      const content::ContextMenuParams& params) {
+  web_view_->ShowContextMenu(params);
+}
+
 void WebContentsViewDelegateEwk::ShowPopupMenu(
       content::RenderFrameHost* render_frame_host,
       const gfx::Rect& bounds,
index cef09e8..b59978c 100644 (file)
@@ -19,6 +19,9 @@ class WebContentsViewDelegateEwk : public content::WebContentsViewDelegate {
  public:
   WebContentsViewDelegateEwk(EWebView*);
 
+  void ShowContextMenu(
+      content::RenderFrameHost* render_frame_host,
+      const content::ContextMenuParams& params) override;
   void ShowPopupMenu(
       content::RenderFrameHost* render_frame_host,
       const gfx::Rect& bounds,