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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java

Issue 12412003: Initial UI structure for autofill dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Got rid of unused includes Created 7 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: chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java
index 66731c5a4b223d4c25361da7de3594342708c005..c79a008104a95b5b305e7e512f50027642898ec8 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java
@@ -4,11 +4,9 @@
package org.chromium.chrome.browser.autofill;
-import android.content.Context;
-import android.widget.Toast;
-
import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
+import org.chromium.ui.gfx.NativeWindow;
/**
* JNI call glue for AutofillDialog C++ and Java objects.
@@ -18,16 +16,17 @@ public class AutofillDialogGlue {
@SuppressWarnings("unused")
private final int mNativeDialogPopup;
- public AutofillDialogGlue(int nativeAutofillDialogViewAndroid, Context context) {
+ public AutofillDialogGlue(int nativeAutofillDialogViewAndroid, NativeWindow nativeWindow) {
mNativeDialogPopup = nativeAutofillDialogViewAndroid;
- Toast toast = Toast.makeText(context, "Interactive Autocomplete!", Toast.LENGTH_SHORT);
- toast.show();
+ AutofillDialog dialog = new AutofillDialog(nativeWindow.getContext());
+ dialog.show();
}
@CalledByNative
- private static AutofillDialogGlue create(int nativeAutofillDialogViewAndroid, Context context) {
- return new AutofillDialogGlue(nativeAutofillDialogViewAndroid, context);
+ private static AutofillDialogGlue create(int nativeAutofillDialogViewAndroid,
+ NativeWindow nativeWindow) {
+ return new AutofillDialogGlue(nativeAutofillDialogViewAndroid, nativeWindow);
}
/**

Powered by Google App Engine
This is Rietveld 408576698