Add type annotation to gallery/js/image_editor/commands.js.
[chromium-blink-merge.git] / android_webview / native / aw_web_contents_view_delegate.h
blob95fd0d6a99def534160b1efc8cad0196464609d8
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 ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_VIEW_DELEGATE_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_VIEW_DELEGATE_H_
8 #include "content/public/browser/web_contents_view_delegate.h"
10 #include "base/macros.h"
12 namespace content {
13 class WebContents;
14 } // namespace content
16 namespace android_webview {
18 class AwContents;
20 class AwWebContentsViewDelegate : public content::WebContentsViewDelegate {
21 public:
22 static content::WebContentsViewDelegate* Create(
23 content::WebContents* web_contents);
25 virtual ~AwWebContentsViewDelegate();
27 // content::WebContentsViewDelegate implementation.
28 virtual content::WebDragDestDelegate* GetDragDestDelegate() override;
29 virtual void ShowContextMenu(
30 content::RenderFrameHost* render_frame_host,
31 const content::ContextMenuParams& params) override;
33 private:
34 AwWebContentsViewDelegate(content::WebContents* web_contents);
36 // Weak pointer due to ownership graph:
37 // WebContents->WebContentsView->this.
38 content::WebContents* web_contents_;
40 DISALLOW_COPY_AND_ASSIGN(AwWebContentsViewDelegate);
43 } // namespace android_webview
46 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_VIEW_DELEGATE_H_