1 // Copyright 2015 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "web_contents_view_delegate_ewk.h"
9 WebContentsViewDelegateEwk::WebContentsViewDelegateEwk(EWebView* wv)
13 void WebContentsViewDelegateEwk::ShowContextMenu(
14 content::RenderFrameHost* render_frame_host,
15 const content::ContextMenuParams& params) {
16 web_view_->ShowContextMenu(params);
19 void WebContentsViewDelegateEwk::ShowPopupMenu(
20 content::RenderFrameHost* render_frame_host,
21 const gfx::Rect& bounds,
23 double item_font_size,
25 const std::vector<content::MenuItem>& items,
27 bool allow_multiple_selection) {
28 web_view_->ShowPopupMenu(items, selected_item, allow_multiple_selection);
31 void WebContentsViewDelegateEwk::HidePopupMenu() {
32 web_view_->HidePopupMenu();