| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |