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.
6 #ifndef XWALK_RUNTIME_BROWSER_ANDROID_XWALK_WEB_CONTENTS_VIEW_DELEGATE_H_
7 #define XWALK_RUNTIME_BROWSER_ANDROID_XWALK_WEB_CONTENTS_VIEW_DELEGATE_H_
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"
15 class XWalkWebContentsViewDelegate : public content::WebContentsViewDelegate {
17 explicit XWalkWebContentsViewDelegate(content::WebContents* web_contents);
18 virtual ~XWalkWebContentsViewDelegate();
20 // Overridden from WebContentsViewDelegate:
21 void ShowContextMenu(content::RenderFrameHost* render_frame_host,
22 const content::ContextMenuParams& params) override;
23 content::WebDragDestDelegate* GetDragDestDelegate() override;
26 content::WebContents* web_contents_;
27 content::ContextMenuParams params_;
29 DISALLOW_COPY_AND_ASSIGN(XWalkWebContentsViewDelegate);
34 #endif // XWALK_RUNTIME_BROWSER_ANDROID_XWALK_WEB_CONTENTS_VIEW_DELEGATE_H_