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.
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_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "content/public/browser/web_contents_view_delegate.h"
16 // A Chrome specific class that extends WebContentsViewAndroid with features
17 // like context menus.
18 class ChromeWebContentsViewDelegateAndroid
19 : public content::WebContentsViewDelegate {
21 explicit ChromeWebContentsViewDelegateAndroid(
22 content::WebContents* web_contents);
23 virtual ~ChromeWebContentsViewDelegateAndroid();
25 // WebContentsViewDelegate:
26 virtual void ShowContextMenu(
27 content::RenderFrameHost* render_frame_host,
28 const content::ContextMenuParams& params) OVERRIDE;
30 // WebContentsViewDelegate:
31 virtual content::WebDragDestDelegate* GetDragDestDelegate() OVERRIDE;
34 // The WebContents that owns the view and this delegate transitively.
35 content::WebContents* web_contents_;
37 DISALLOW_COPY_AND_ASSIGN(ChromeWebContentsViewDelegateAndroid);
40 #endif // CHROME_BROWSER_UI_ANDROID_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_ANDROID_H_