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

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

Issue 2745803003: autofill-try
Patch Set: before I leave Created 3 years, 9 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/AwAutofillManager.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwAutofillManager.java b/android_webview/java/src/org/chromium/android_webview/AwAutofillManager.java
new file mode 100644
index 0000000000000000000000000000000000000000..e08c221e34cda1dac5e285758524d2dcd7d9f372
--- /dev/null
+++ b/android_webview/java/src/org/chromium/android_webview/AwAutofillManager.java
@@ -0,0 +1,36 @@
+package org.chromium.android_webview;
+
+import android.content.Context;
+import android.graphics.Rect;
+import android.view.View;
+import android.view.autofill.AutofillManager;
+import android.view.autofill.AutofillValue;
+
+public class AwAutofillManager {
+
+ private AutofillManager mAutofillManager;
+
+ public AwAutofillManager(Context context) {
+ mAutofillManager = context.getSystemService(AutofillManager.class);
+ }
+
+ public void notifyVirtualValueChanged(View parent, int childId, AutofillValue value) {
+ mAutofillManager.notifyValueChanged(parent, childId, value);
+ }
+
+ public void commit() {
+ mAutofillManager.commit();
+ }
+
+ public void cancel() {
+ mAutofillManager.cancel();
+ }
+
+ public void notifyVirtualViewEntered(View parent, int childId, Rect bounds) {
+ mAutofillManager.notifyViewEntered(parent, childId, bounds);
+ }
+
+ public void notifyVirtualViewExited(View parent, int childId) {
+ mAutofillManager.notifyViewExited(parent, childId);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698