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

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

Issue 2540163002: WebView: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_VIEW_DELEGATE_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_VIEW_DELEGATE_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_VIEW_DELEGATE_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_VIEW_DELEGATE_H_
7 7
8 #include "content/public/browser/web_contents_view_delegate.h" 8 #include "content/public/browser/web_contents_view_delegate.h"
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace content { 12 namespace content {
13 class WebContents; 13 class WebContents;
14 } // namespace content 14 } // namespace content
15 15
16 namespace android_webview { 16 namespace android_webview {
17 17
18 class AwContents;
19
20 class AwWebContentsViewDelegate : public content::WebContentsViewDelegate { 18 class AwWebContentsViewDelegate : public content::WebContentsViewDelegate {
21 public: 19 public:
22 static content::WebContentsViewDelegate* Create( 20 static content::WebContentsViewDelegate* Create(
23 content::WebContents* web_contents); 21 content::WebContents* web_contents);
24 22
25 ~AwWebContentsViewDelegate() override; 23 ~AwWebContentsViewDelegate() override;
26 24
27 // content::WebContentsViewDelegate implementation. 25 // content::WebContentsViewDelegate implementation.
28 content::WebDragDestDelegate* GetDragDestDelegate() override; 26 content::WebDragDestDelegate* GetDragDestDelegate() override;
29 void ShowContextMenu(content::RenderFrameHost* render_frame_host, 27 void ShowContextMenu(content::RenderFrameHost* render_frame_host,
30 const content::ContextMenuParams& params) override; 28 const content::ContextMenuParams& params) override;
31 29
32 private: 30 private:
33 AwWebContentsViewDelegate(content::WebContents* web_contents); 31 AwWebContentsViewDelegate(content::WebContents* web_contents);
34 32
35 // Weak pointer due to ownership graph: 33 // Weak pointer due to ownership graph:
36 // WebContents->WebContentsView->this. 34 // WebContents->WebContentsView->this.
37 content::WebContents* web_contents_; 35 content::WebContents* web_contents_;
38 36
39 DISALLOW_COPY_AND_ASSIGN(AwWebContentsViewDelegate); 37 DISALLOW_COPY_AND_ASSIGN(AwWebContentsViewDelegate);
40 }; 38 };
41 39
42 } // namespace android_webview 40 } // namespace android_webview
43 41
44 42
45 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_VIEW_DELEGATE_H_ 43 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_quota_manager_bridge_impl.h ('k') | android_webview/native/aw_web_preferences_populater_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698