Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / browser / android / xwalk_web_contents_view_delegate.h
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Copyright (c) 2014 Intel Corporation. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5
6 #ifndef XWALK_RUNTIME_BROWSER_ANDROID_XWALK_WEB_CONTENTS_VIEW_DELEGATE_H_
7 #define XWALK_RUNTIME_BROWSER_ANDROID_XWALK_WEB_CONTENTS_VIEW_DELEGATE_H_
8
9 #include "content/public/browser/web_contents.h"
10 #include "content/public/browser/web_contents_view_delegate.h"
11 #include "content/public/common/context_menu_params.h"
12
13 namespace xwalk {
14
15 class XWalkWebContentsViewDelegate : public content::WebContentsViewDelegate {
16  public:
17   explicit XWalkWebContentsViewDelegate(content::WebContents* web_contents);
18   virtual ~XWalkWebContentsViewDelegate();
19
20   // Overridden from WebContentsViewDelegate:
21   void ShowContextMenu(content::RenderFrameHost* render_frame_host,
22       const content::ContextMenuParams& params) override;
23   content::WebDragDestDelegate* GetDragDestDelegate() override;
24
25  private:
26   content::WebContents* web_contents_;
27   content::ContextMenuParams params_;
28
29   DISALLOW_COPY_AND_ASSIGN(XWalkWebContentsViewDelegate);
30 };
31
32 }  // namespace xwalk
33
34 #endif  // XWALK_RUNTIME_BROWSER_ANDROID_XWALK_WEB_CONTENTS_VIEW_DELEGATE_H_