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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 1341013002: [Android] Move weak ref for PopupWindowTouchHandleDrawable to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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: content/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 5997c99d8c450554208775d2cf5f97bdd64dfcf3..7ddc9abd30066b2fc7024dd26028bc64909681c1 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -621,19 +621,6 @@ void ContentViewCoreImpl::OnSelectionEvent(ui::SelectionEventType event,
selection_rect_pix.right(), selection_rect_pix.bottom());
}
-scoped_ptr<ui::TouchHandleDrawable>
-ContentViewCoreImpl::CreatePopupTouchHandleDrawable() {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
- if (obj.is_null()) {
- NOTREACHED();
- return scoped_ptr<ui::TouchHandleDrawable>();
- }
- return scoped_ptr<ui::TouchHandleDrawable>(new PopupTouchHandleDrawable(
- Java_ContentViewCore_createPopupTouchHandleDrawable(env, obj.obj()),
- dpi_scale_));
-}
-
void ContentViewCoreImpl::ShowPastePopup(int x_dip, int y_dip) {
RenderWidgetHostViewAndroid* view = GetRenderWidgetHostViewAndroid();
if (!view)
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/browser/android/popup_touch_handle_drawable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698