| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 android.app.Activity; | 7 import android.app.Activity; |
| 8 import android.content.Context; | 8 import android.content.Context; |
| 9 import android.content.DialogInterface; | 9 import android.content.DialogInterface; |
| 10 import android.os.Handler; | 10 import android.os.Handler; |
| 11 import android.support.v7.app.AlertDialog; | 11 import android.support.v7.app.AlertDialog; |
| 12 import android.view.View; | 12 import android.view.View; |
| 13 | 13 |
| 14 import org.chromium.base.annotations.CalledByNative; | 14 import org.chromium.base.annotations.CalledByNative; |
| 15 import org.chromium.base.annotations.JNINamespace; | 15 import org.chromium.base.annotations.JNINamespace; |
| 16 import org.chromium.chrome.R; | 16 import org.chromium.chrome.R; |
| 17 import org.chromium.chrome.browser.ResourceId; | 17 import org.chromium.chrome.browser.ResourceId; |
| 18 import org.chromium.components.autofill.AutofillDelegate; |
| 19 import org.chromium.components.autofill.AutofillPopup; |
| 20 import org.chromium.components.autofill.AutofillSuggestion; |
| 18 import org.chromium.ui.DropdownItem; | 21 import org.chromium.ui.DropdownItem; |
| 19 import org.chromium.ui.autofill.AutofillDelegate; | |
| 20 import org.chromium.ui.autofill.AutofillPopup; | |
| 21 import org.chromium.ui.autofill.AutofillSuggestion; | |
| 22 import org.chromium.ui.base.WindowAndroid; | 22 import org.chromium.ui.base.WindowAndroid; |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * JNI call glue for AutofillExternalDelagate C++ and Java objects. | 25 * JNI call glue for AutofillExternalDelagate C++ and Java objects. |
| 26 */ | 26 */ |
| 27 @JNINamespace("autofill") | 27 @JNINamespace("autofill") |
| 28 public class AutofillPopupBridge implements AutofillDelegate, DialogInterface.On
ClickListener { | 28 public class AutofillPopupBridge implements AutofillDelegate, DialogInterface.On
ClickListener { |
| 29 private final long mNativeAutofillPopup; | 29 private final long mNativeAutofillPopup; |
| 30 private final AutofillPopup mAutofillPopup; | 30 private final AutofillPopup mAutofillPopup; |
| 31 private AlertDialog mDeletionDialog; | 31 private AlertDialog mDeletionDialog; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 label, sublabel, drawableId, suggestionId, deletable, isLabelMul
tiline); | 135 label, sublabel, drawableId, suggestionId, deletable, isLabelMul
tiline); |
| 136 } | 136 } |
| 137 | 137 |
| 138 private native void nativeSuggestionSelected(long nativeAutofillPopupViewAnd
roid, | 138 private native void nativeSuggestionSelected(long nativeAutofillPopupViewAnd
roid, |
| 139 int listIndex); | 139 int listIndex); |
| 140 private native void nativeDeletionRequested(long nativeAutofillPopupViewAndr
oid, | 140 private native void nativeDeletionRequested(long nativeAutofillPopupViewAndr
oid, |
| 141 int listIndex); | 141 int listIndex); |
| 142 private native void nativeDeletionConfirmed(long nativeAutofillPopupViewAndr
oid); | 142 private native void nativeDeletionConfirmed(long nativeAutofillPopupViewAndr
oid); |
| 143 private native void nativePopupDismissed(long nativeAutofillPopupViewAndroid
); | 143 private native void nativePopupDismissed(long nativeAutofillPopupViewAndroid
); |
| 144 } | 144 } |
| OLD | NEW |