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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwAutofillClient.java

Issue 2103243002: Factor out ContentViewAndroidDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 5 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/java/src/org/chromium/android_webview/AwAutofillClient.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwAutofillClient.java b/android_webview/java/src/org/chromium/android_webview/AwAutofillClient.java
index 172c2b384f03a6bb2115075cda180d040e5b34fb..3deb8524925ba7b298ce41bbfa48275637f5d270 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwAutofillClient.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwAutofillClient.java
@@ -49,6 +49,8 @@ public class AwAutofillClient {
if (mAutofillPopup == null) {
mAutofillPopup = new AutofillPopup(
mContentViewCore.getContext(),
+ mContentViewCore.acquireAnchorView(x, y, width, height),
+ width,
mContentViewCore.getViewAndroidDelegate(),
new AutofillDelegate() {
@Override
@@ -61,7 +63,6 @@ public class AwAutofillClient {
public void deleteSuggestion(int listIndex) { }
});
}
- mAutofillPopup.setAnchorRect(x, y, width, height);
mAutofillPopup.filterAndShow(suggestions, isRtl);
}

Powered by Google App Engine
This is Rietveld 408576698