This source file includes following definitions.
- create
- showSavePasswordInfoBar
- setUseAdditionalAuthentication
- nativeSetUseAdditionalAuthentication
package org.chromium.chrome.browser.infobar;
import org.chromium.base.CalledByNative;
import org.chromium.chrome.browser.ResourceId;
public class SavePasswordInfoBarDelegate {
private SavePasswordInfoBarDelegate() {
}
@CalledByNative
public static SavePasswordInfoBarDelegate create() {
return new SavePasswordInfoBarDelegate();
}
@CalledByNative
InfoBar showSavePasswordInfoBar(long nativeInfoBar, int enumeratedIconId, String message,
String buttonOk, String buttonCancel) {
int drawableId = ResourceId.mapToDrawableId(enumeratedIconId);
SavePasswordInfoBar infoBar = new SavePasswordInfoBar(
nativeInfoBar, this, drawableId, message, buttonOk, buttonCancel);
return infoBar;
}
void setUseAdditionalAuthentication(long nativeInfoBar, boolean useAdditionalAuthencation) {
nativeSetUseAdditionalAuthentication(nativeInfoBar, useAdditionalAuthencation);
}
private native void nativeSetUseAdditionalAuthentication(
long nativeSavePasswordInfoBar, boolean useAdditionalAuthentication);
}