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

Unified Diff: android_webview/native/aw_web_contents_view_delegate.cc

Issue 2863233002: [WebView] Move files from native to browser (Closed)
Patch Set: Created 3 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/native/aw_web_contents_view_delegate.cc
diff --git a/android_webview/native/aw_web_contents_view_delegate.cc b/android_webview/native/aw_web_contents_view_delegate.cc
deleted file mode 100644
index d42b9a6f0da8fdad09b22d06b3d5d937d0d98e8e..0000000000000000000000000000000000000000
--- a/android_webview/native/aw_web_contents_view_delegate.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "android_webview/native/aw_web_contents_view_delegate.h"
-
-#include "content/public/browser/android/content_view_core.h"
-#include "content/public/browser/web_contents.h"
-#include "content/public/common/context_menu_params.h"
-
-namespace android_webview {
-
-// static
-content::WebContentsViewDelegate* AwWebContentsViewDelegate::Create(
- content::WebContents* web_contents) {
- return new AwWebContentsViewDelegate(web_contents);
-}
-
-AwWebContentsViewDelegate::AwWebContentsViewDelegate(
- content::WebContents* web_contents)
- : web_contents_(web_contents) {
- // Cannot instantiate web_contents_view_delegate_ here because
- // AwContents::SetWebDelegate is not called yet.
-}
-
-AwWebContentsViewDelegate::~AwWebContentsViewDelegate() {}
-
-content::WebDragDestDelegate* AwWebContentsViewDelegate::GetDragDestDelegate() {
- // GetDragDestDelegate is a pure virtual method from WebContentsViewDelegate
- // and must have an implementation although android doesn't use it.
- NOTREACHED();
- return NULL;
-}
-
-void AwWebContentsViewDelegate::ShowContextMenu(
- content::RenderFrameHost* render_frame_host,
- const content::ContextMenuParams& params) {
- content::ContentViewCore* content_view_core =
- content::ContentViewCore::FromWebContents(web_contents_);
- if (content_view_core)
- content_view_core->ShowPastePopup(params);
-}
-
-} // namespace android_webview

Powered by Google App Engine
This is Rietveld 408576698