[Android] Move weak ref for PopupWindowTouchHandleDrawable to native
commit7a60160df059c5031f1d6d040b2779061dc20d9c
authorjdduke <jdduke@chromium.org>
Tue, 15 Sep 2015 01:32:41 +0000 (14 18:32 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 15 Sep 2015 01:33:20 +0000 (15 01:33 +0000)
tree84fde1339fb1f1c475aa9fc958117373144ed6de
parent214d8f9ab144172967bf29e5b12ac5355304c749
[Android] Move weak ref for PopupWindowTouchHandleDrawable to native

The current weak reference wiring for PopupWindowTouchHandleDrawable is awkward
and fragile. Move the weak ref accounting to its native object counterpart,
using the JNI boundary as a consistent reference lifetime checkpoint.

BUG=528365

Review URL: https://codereview.chromium.org/1341013002

Cr-Commit-Position: refs/heads/master@{#348809}
content/browser/android/content_view_core_impl.cc
content/browser/android/content_view_core_impl.h
content/browser/android/popup_touch_handle_drawable.cc
content/browser/android/popup_touch_handle_drawable.h
content/browser/renderer_host/render_widget_host_view_android.cc
content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java