Bug 1264815 - Add a 'showPersistentAlertNotification' method to GeckoAppShell. r=kcambridge
This commit is contained in:
@@ -507,6 +507,22 @@ AndroidBridge::GetClipboardText(nsAString& aText)
|
||||
return !!text;
|
||||
}
|
||||
|
||||
void
|
||||
AndroidBridge::ShowPersistentAlertNotification(const nsAString& aPersistentData,
|
||||
const nsAString& aImageUrl,
|
||||
const nsAString& aAlertTitle,
|
||||
const nsAString& aAlertText,
|
||||
const nsAString& aAlertCookie,
|
||||
const nsAString& aAlertName,
|
||||
nsIPrincipal* aPrincipal)
|
||||
{
|
||||
nsAutoString host;
|
||||
nsAlertsUtils::GetSourceHostPort(aPrincipal, host);
|
||||
|
||||
GeckoAppShell::ShowPersistentAlertNotificationWrapper
|
||||
(aPersistentData, aImageUrl, aAlertTitle, aAlertText, aAlertCookie, aAlertName, host);
|
||||
}
|
||||
|
||||
void
|
||||
AndroidBridge::ShowAlertNotification(const nsAString& aImageUrl,
|
||||
const nsAString& aAlertTitle,
|
||||
|
||||
Reference in New Issue
Block a user