use of org.chromium.base.annotations.CalledByNative in project AndroidChromium by JackyAndroid.
the class LayerTitleCache method buildUpdatedTitle.
@CalledByNative
private void buildUpdatedTitle(int tabId) {
if (mTabModelSelector == null)
return;
Tab tab = mTabModelSelector.getTabById(tabId);
if (tab == null)
return;
getUpdatedTitle(tab, "");
}
use of org.chromium.base.annotations.CalledByNative in project AndroidChromium by JackyAndroid.
the class AutoSigninFirstRunDialog method createAndShowDialog.
@CalledByNative
private static AutoSigninFirstRunDialog createAndShowDialog(WindowAndroid windowAndroid, long nativeAutoSigninFirstRunDialog, String title, String explanation, int explanationLinkStart, int explanationLinkEnd, String okButtonText, String turnOffButtonText) {
Activity activity = windowAndroid.getActivity().get();
if (activity == null)
return null;
AutoSigninFirstRunDialog dialog = new AutoSigninFirstRunDialog(activity, nativeAutoSigninFirstRunDialog, title, explanation, explanationLinkStart, explanationLinkEnd, okButtonText, turnOffButtonText);
dialog.show();
return dialog;
}
use of org.chromium.base.annotations.CalledByNative in project AndroidChromium by JackyAndroid.
the class ConnectionInfoPopup method addResetCertDecisionsButton.
@CalledByNative
private void addResetCertDecisionsButton(String label) {
assert mNativeConnectionInfoPopup != 0;
assert mResetCertDecisionsButton == null;
mResetCertDecisionsButton = new Button(mContext);
mResetCertDecisionsButton.setText(label);
mResetCertDecisionsButton.setBackgroundResource(R.drawable.connection_info_reset_cert_decisions);
mResetCertDecisionsButton.setTextColor(ApiCompatibilityUtils.getColor(mContext.getResources(), R.color.connection_info_popup_reset_cert_decisions_button));
mResetCertDecisionsButton.setTextSize(DESCRIPTION_TEXT_SIZE_SP);
mResetCertDecisionsButton.setOnClickListener(this);
LinearLayout container = new LinearLayout(mContext);
container.setOrientation(LinearLayout.VERTICAL);
container.addView(mResetCertDecisionsButton);
container.setPadding(0, 0, 0, mPaddingWide);
mContainer.addView(container);
}
use of org.chromium.base.annotations.CalledByNative in project AndroidChromium by JackyAndroid.
the class UsbChooserDialog method create.
@CalledByNative
private static UsbChooserDialog create(WindowAndroid windowAndroid, String origin, int securityLevel, long nativeUsbChooserDialogPtr) {
Activity activity = windowAndroid.getActivity().get();
if (activity == null) {
return null;
}
UsbChooserDialog dialog = new UsbChooserDialog(nativeUsbChooserDialogPtr);
dialog.show(activity, origin, securityLevel);
return dialog;
}
use of org.chromium.base.annotations.CalledByNative in project AndroidChromium by JackyAndroid.
the class ChromeHttpAuthHandler method showDialog.
@CalledByNative
private void showDialog(WindowAndroid windowAndroid) {
if (windowAndroid == null) {
cancel();
}
Activity activity = windowAndroid.getActivity().get();
if (activity == null) {
cancel();
}
LoginPrompt authDialog = new LoginPrompt(activity, this);
setAutofillObserver(authDialog);
authDialog.show();
}
Aggregations