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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupGlue.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, 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.autofill; 5 package org.chromium.chrome.browser.autofill;
6 6
7 import org.chromium.base.CalledByNative; 7 import org.chromium.base.CalledByNative;
8 import org.chromium.base.JNINamespace; 8 import org.chromium.base.JNINamespace;
9 import org.chromium.chrome.browser.autofill.AutofillPopup.AutofillPopupDelegate;
10 import org.chromium.ui.ViewAndroid; 9 import org.chromium.ui.ViewAndroid;
11 import org.chromium.ui.ViewAndroidDelegate; 10 import org.chromium.ui.ViewAndroidDelegate;
12 import org.chromium.ui.WindowAndroid; 11 import org.chromium.ui.WindowAndroid;
12 import org.chromium.ui.autofill.AutofillPopup;
13 import org.chromium.ui.autofill.AutofillPopup.AutofillPopupDelegate;
14 import org.chromium.ui.autofill.AutofillSuggestion;
13 15
14 /** 16 /**
15 * JNI call glue for AutofillExternalDelagate C++ and Java objects. 17 * JNI call glue for AutofillExternalDelagate C++ and Java objects.
16 */ 18 */
17 @JNINamespace("autofill") 19 @JNINamespace("autofill")
18 public class AutofillPopupGlue implements AutofillPopupDelegate{ 20 public class AutofillPopupGlue implements AutofillPopupDelegate{
19 private final int mNativeAutofillPopup; 21 private final int mNativeAutofillPopup;
20 private final AutofillPopup mAutofillPopup; 22 private final AutofillPopup mAutofillPopup;
21 23
22 public AutofillPopupGlue(int nativeAutofillPopupViewAndroid, WindowAndroid w indowAndroid, 24 public AutofillPopupGlue(int nativeAutofillPopupViewAndroid, WindowAndroid w indowAndroid,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 @CalledByNative 90 @CalledByNative
89 private static void addToAutofillSuggestionArray(AutofillSuggestion[] array, int index, 91 private static void addToAutofillSuggestionArray(AutofillSuggestion[] array, int index,
90 String label, String sublabel, int uniqueId) { 92 String label, String sublabel, int uniqueId) {
91 array[index] = new AutofillSuggestion(label, sublabel, uniqueId); 93 array[index] = new AutofillSuggestion(label, sublabel, uniqueId);
92 } 94 }
93 95
94 private native void nativeRequestHide(int nativeAutofillPopupViewAndroid); 96 private native void nativeRequestHide(int nativeAutofillPopupViewAndroid);
95 private native void nativeSuggestionSelected(int nativeAutofillPopupViewAndr oid, 97 private native void nativeSuggestionSelected(int nativeAutofillPopupViewAndr oid,
96 int listIndex); 98 int listIndex);
97 } 99 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698