Search in sources :

Example 1 with AutofillKeyboardAccessory

use of org.chromium.components.autofill.AutofillKeyboardAccessory in project AndroidChromium by JackyAndroid.

the class AutofillKeyboardAccessoryBridge method init.

/**
     * Initializes this object.
     * This function should be called at most one time.
     * @param nativeAutofillKeyboardAccessory Handle to the native counterpart.
     * @param windowAndroid The window on which to show the suggestions.
     */
@CalledByNative
private void init(long nativeAutofillKeyboardAccessory, WindowAndroid windowAndroid) {
    if (windowAndroid == null || windowAndroid.getActivity().get() == null) {
        nativeViewDismissed(nativeAutofillKeyboardAccessory);
        dismissed();
        return;
    }
    mNativeAutofillKeyboardAccessory = nativeAutofillKeyboardAccessory;
    mAccessoryView = new AutofillKeyboardAccessory(windowAndroid, this);
    mContext = windowAndroid.getActivity().get();
}
Also used : AutofillKeyboardAccessory(org.chromium.components.autofill.AutofillKeyboardAccessory) CalledByNative(org.chromium.base.annotations.CalledByNative)

Aggregations

CalledByNative (org.chromium.base.annotations.CalledByNative)1 AutofillKeyboardAccessory (org.chromium.components.autofill.AutofillKeyboardAccessory)1