[M108 Aura Migration] Add media playback ewk api
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / web_contents_view_delegate_ewk.h
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.
4
5 #ifndef WEB_CONTENTS_VIEW_EFL_DELEGATE_EWK
6 #define WEB_CONTENTS_VIEW_EFL_DELEGATE_EWK
7
8 #include "content/public/browser/web_contents_view_delegate.h"
9 #include "third_party/blink/public/common/context_menu_data/menu_item_info.h"
10
11 class EWebView;
12
13 namespace content {
14 class RenderFrameHost;
15 }
16
17 class WebContentsViewDelegateEwk
18     : public content::WebContentsViewDelegate {
19  public:
20   WebContentsViewDelegateEwk(EWebView*);
21
22   void ShowContextMenu(content::RenderFrameHost& render_frame_host,
23                        const content::ContextMenuParams& params) override;
24
25   void OnSelectionRectReceived(const gfx::Rect& selection_rect) const override;
26
27  private:
28   EWebView* web_view_;
29 };
30
31 #endif // WEB_CONTENTS_VIEW_EFL_DELEGATE_EWK
32