| 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.os.Handler; | 8 import android.os.Handler; |
| 9 | 9 |
| 10 import org.chromium.base.CalledByNative; | 10 import org.chromium.base.annotations.CalledByNative; |
| 11 import org.chromium.base.JNINamespace; | 11 import org.chromium.base.annotations.JNINamespace; |
| 12 import org.chromium.chrome.browser.ResourceId; | 12 import org.chromium.chrome.browser.ResourceId; |
| 13 import org.chromium.chrome.browser.autofill.CardUnmaskPrompt.CardUnmaskPromptDel
egate; | 13 import org.chromium.chrome.browser.autofill.CardUnmaskPrompt.CardUnmaskPromptDel
egate; |
| 14 import org.chromium.ui.base.WindowAndroid; | 14 import org.chromium.ui.base.WindowAndroid; |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * JNI call glue for CardUnmaskPrompt C++ and Java objects. | 17 * JNI call glue for CardUnmaskPrompt C++ and Java objects. |
| 18 */ | 18 */ |
| 19 @JNINamespace("autofill") | 19 @JNINamespace("autofill") |
| 20 public class CardUnmaskBridge implements CardUnmaskPromptDelegate { | 20 public class CardUnmaskBridge implements CardUnmaskPromptDelegate { |
| 21 private final long mNativeCardUnmaskPromptViewAndroid; | 21 private final long mNativeCardUnmaskPromptViewAndroid; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } | 123 } |
| 124 | 124 |
| 125 private native void nativePromptDismissed(long nativeCardUnmaskPromptViewAnd
roid); | 125 private native void nativePromptDismissed(long nativeCardUnmaskPromptViewAnd
roid); |
| 126 private native boolean nativeCheckUserInputValidity( | 126 private native boolean nativeCheckUserInputValidity( |
| 127 long nativeCardUnmaskPromptViewAndroid, String userResponse); | 127 long nativeCardUnmaskPromptViewAndroid, String userResponse); |
| 128 private native void nativeOnUserInput( | 128 private native void nativeOnUserInput( |
| 129 long nativeCardUnmaskPromptViewAndroid, String cvc, String month, St
ring year, | 129 long nativeCardUnmaskPromptViewAndroid, String cvc, String month, St
ring year, |
| 130 boolean shouldStoreLocally); | 130 boolean shouldStoreLocally); |
| 131 private native void nativeOnNewCardLinkClicked(long nativeCardUnmaskPromptVi
ewAndroid); | 131 private native void nativeOnNewCardLinkClicked(long nativeCardUnmaskPromptVi
ewAndroid); |
| 132 } | 132 } |
| OLD | NEW |