1// Copyright (c) 2012 The Chromium Authors. 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 CHROME_BROWSER_UI_ANDROID_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_ANDROID_H_
6#define CHROME_BROWSER_UI_ANDROID_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_ANDROID_H_
7
8#include "base/basictypes.h"
9#include "base/compiler_specific.h"
10#include "content/public/browser/web_contents_view_delegate.h"
11
12namespace content {
13class WebContents;
14}
15
16// A Chrome specific class that extends WebContentsViewAndroid with features
17// like context menus.
18class ChromeWebContentsViewDelegateAndroid
19    : public content::WebContentsViewDelegate {
20 public:
21  explicit ChromeWebContentsViewDelegateAndroid(
22      content::WebContents* web_contents);
23  virtual ~ChromeWebContentsViewDelegateAndroid();
24
25  // WebContentsViewDelegate:
26  virtual void ShowContextMenu(
27      content::RenderFrameHost* render_frame_host,
28      const content::ContextMenuParams& params) OVERRIDE;
29
30  // WebContentsViewDelegate:
31  virtual content::WebDragDestDelegate* GetDragDestDelegate() OVERRIDE;
32
33 private:
34  // The WebContents that owns the view and this delegate transitively.
35  content::WebContents* web_contents_;
36
37  DISALLOW_COPY_AND_ASSIGN(ChromeWebContentsViewDelegateAndroid);
38};
39
40#endif  // CHROME_BROWSER_UI_ANDROID_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_ANDROID_H_
41