Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: android_webview/native/aw_web_contents_view_delegate.h

Issue 11471040: [Android WebView] Convert context menu callback to long press (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forward declare Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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 ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_VIEW_DELEGATE_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_VIEW_DELEGATE_H_
7
8 #include "content/public/browser/web_contents_view_delegate.h"
9
10 #include "base/compiler_specific.h"
11
12 namespace content {
13 class WebContents;
14 } // namespace content
15
16 namespace android_webview {
17
18 class AwContents;
19
20 class AwWebContentsViewDelegate : public content::WebContentsViewDelegate {
21 public:
22 static content::WebContentsViewDelegate* Create(
23 content::WebContents* web_contents);
24
25 virtual ~AwWebContentsViewDelegate();
26
27 // content::WebContentsViewDelegate implementation.
28 virtual content::WebDragDestDelegate* GetDragDestDelegate() OVERRIDE;
29 virtual void ShowContextMenu(
30 const content::ContextMenuParams& params,
31 content::ContextMenuSourceType type) OVERRIDE;
32
33 private:
34 AwWebContentsViewDelegate(content::WebContents* web_contents);
35
36 // Weak pointer due to ownership graph:
37 // WebContents->WebContentsView->this.
38 content::WebContents* web_contents_;
39
40 DISALLOW_COPY_AND_ASSIGN(AwWebContentsViewDelegate);
41 };
42
43 } // namespace android_webview
44
45
46 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/native/aw_web_contents_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698