diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /toolkit/components/alerts/alert.xhtml | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/alerts/alert.xhtml')
-rw-r--r-- | toolkit/components/alerts/alert.xhtml | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/toolkit/components/alerts/alert.xhtml b/toolkit/components/alerts/alert.xhtml new file mode 100644 index 0000000000..8f7c706452 --- /dev/null +++ b/toolkit/components/alerts/alert.xhtml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!DOCTYPE window> + +<window + id="alertNotification" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + windowtype="alert:alert" + xmlns:xhtml="http://www.w3.org/1999/xhtml" + role="alert" + pack="start" + onload="onAlertLoad();" + onclick="onAlertClick();" + onbeforeunload="onAlertBeforeUnload();" +> + <linkset> + <xhtml:link + rel="stylesheet" + href="chrome://global/content/alerts/alert.css" + /> + <xhtml:link rel="stylesheet" href="chrome://global/skin/alert.css" /> + + <xhtml:link rel="localization" href="toolkit/global/alert.ftl" /> + </linkset> + + <script src="chrome://global/content/alerts/alert.js" /> + + <vbox id="alertBox"> + <box id="alertTitleBox"> + <image id="alertIcon" /> + <label id="alertTitleLabel" class="alertTitle plain" crop="end" /> + <vbox> + <toolbarbutton + class="close-icon" + data-l10n-id="alert-close" + onclick="event.stopPropagation();" + oncommand="onAlertClose();" + /> + </vbox> + </box> + <box> + <hbox + id="alertImageBox" + class="alertImageBox" + align="center" + pack="center" + > + <image id="alertImage" /> + </hbox> + + <vbox id="alertTextBox" class="alertTextBox"> + <label id="alertTextLabel" class="alertText plain" /> + <spacer flex="1" /> + <box id="alertFooter"> + <label id="alertSourceLabel" class="alertSource plain" /> + <button + type="menu" + id="alertSettings" + data-l10n-id="alert-settings-title" + > + <menupopup position="after_end"> + <menuitem id="doNotDisturbMenuItem" oncommand="doNotDisturb();" /> + <menuseparator /> + <menuitem + id="disableForOriginMenuItem" + oncommand="disableForOrigin();" + /> + <menuitem id="openSettingsMenuItem" oncommand="openSettings();" /> + </menupopup> + </button> + </box> + </vbox> + </box> + </vbox> + + <!-- This method is called inline because we want to make sure we establish the width + and height of the alert before we fire the onload handler. --> + <script> + /* eslint-disable no-undef */ + prefillAlertInfo(); + </script> +</window> |