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

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: Styling fixes Created 7 years, 10 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 9ac2fc6d25735a9e948227221eebd07c6b6df057..6b7685a4b42581ae5f314d9d40b8d24ee03732fd 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
@@ -5,10 +5,10 @@
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,15 +18,16 @@ 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