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

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

Issue 16212007: Implement the autofill UI for chromium powered android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue15097004
Patch Set: convert NOTREACHED to NOTIMPLEMENTED Created 7 years, 6 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/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index 9da7fd51ff651ed90e8f0bbbaac445f58c20bb63..f2f80b6675579ac596da2233dd03a78537257f08 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -153,6 +153,8 @@ public class AwContents {
private boolean mContainerViewFocused;
private boolean mWindowFocused;
+ private AwAutofillManagerDelegate mAwAutofillManagerDelegate;
+
private static final class DestroyRunnable implements Runnable {
private int mNativeAwContents;
private DestroyRunnable(int nativeAwContents) {
@@ -1330,6 +1332,14 @@ public class AwContents {
return mContentViewCore.performAccessibilityAction(action, arguments);
}
+ /**
+ * @see android.webkit.WebView#clearFormData()
+ */
+ public void hideAutofillPopup() {
+ if (mAwAutofillManagerDelegate != null)
+ mAwAutofillManagerDelegate.hideAutofillPopup();
+ }
+
//--------------------------------------------------------------------------------------------
// Methods called from native via JNI
//--------------------------------------------------------------------------------------------
@@ -1469,6 +1479,12 @@ public class AwContents {
mScrollOffsetManager.scrollContainerViewTo(x, y);
}
+ @CalledByNative
+ private void setAwAutofillManagerDelegate(AwAutofillManagerDelegate delegate) {
+ mAwAutofillManagerDelegate = delegate;
+ delegate.init(mContentViewCore, mDIPScale);
+ }
+
// -------------------------------------------------------------------------------------------
// Helper methods
// -------------------------------------------------------------------------------------------
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AwAutofillManagerDelegate.java ('k') | android_webview/native/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698