toolkit/components/alerts/resources/content/alert.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/components/alerts/resources/content/alert.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,50 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.8 +
     1.9 +<!DOCTYPE window [
    1.10 +<!ENTITY % alertDTD SYSTEM "chrome://alerts/locale/alert.dtd">
    1.11 +%alertDTD;
    1.12 +]>
    1.13 +
    1.14 +<?xml-stylesheet href="chrome://global/content/alerts/alert.css" type="text/css"?>
    1.15 +<?xml-stylesheet href="chrome://global/skin/alerts/alert.css" type="text/css"?>
    1.16 +
    1.17 +<window id="alertNotification"
    1.18 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.19 +        windowtype="alert:alert"
    1.20 +        xmlns:xhtml="http://www.w3.org/1999/xhtml"
    1.21 +        xhtml:role="alert"
    1.22 +        pack="start"
    1.23 +        onload="onAlertLoad();"
    1.24 +        onclick="onAlertClick();"
    1.25 +        onbeforeunload="onAlertBeforeUnload();">
    1.26 +
    1.27 +  <script type="application/javascript" src="chrome://global/content/alerts/alert.js"/>
    1.28 +
    1.29 +  <box id="alertBox" class="alertBox">
    1.30 +    <box>
    1.31 +      <hbox id="alertImageBox" class="alertImageBox" align="center" pack="center">
    1.32 +        <image id="alertImage"/>
    1.33 +      </hbox>
    1.34 +
    1.35 +      <vbox id="alertTextBox" class="alertTextBox">
    1.36 +        <label id="alertTitleLabel" class="alertTitle plain"/>
    1.37 +        <label id="alertTextLabel" class="alertText plain"/>
    1.38 +      </vbox>
    1.39 +    </box>
    1.40 +
    1.41 +    <vbox class="alertCloseBox">
    1.42 +      <toolbarbutton class="alertCloseButton close-icon"
    1.43 +                     tooltiptext="&closeAlert.tooltip;"
    1.44 +                     onclick="event.stopPropagation();"
    1.45 +                     oncommand="close();"/>
    1.46 +    </vbox>
    1.47 +  </box>
    1.48 +
    1.49 +  <!-- This method is called inline because we want to make sure we establish the width
    1.50 +       and height of the alert before we fire the onload handler. -->
    1.51 +  <script type="application/javascript">prefillAlertInfo();</script>
    1.52 +</window>
    1.53 +

mercurial