toolkit/components/alerts/resources/content/alert.xul
author Jared Wein <jwein@mozilla.com>
Wed, 03 Oct 2012 23:59:36 -0700
changeset 109325 d946b507ebc2a6fb46ff4c17f8ff533b43adea92
parent 95919 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 109660 a5551c001a2110aed561416b16f6823d0ee0f1b6
permissions -rw-r--r--
Bug 786125 - Alert showing/hiding animation is janky (nsIAlertsService). r=Unfocused

<?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/. -->

<?xml-stylesheet href="chrome://global/content/alerts/alert.css" type="text/css"?>
<?xml-stylesheet href="chrome://global/skin/alerts/alert.css" type="text/css"?>

<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"
        xhtml:role="alert"
        pack="start"
        onload="onAlertLoad()"
        onclick="onAlertClick();">

  <script type="application/javascript" src="chrome://global/content/alerts/alert.js"/>

  <box id="alertBox" class="alertBox">
    
    <hbox class="alertImageBox" align="center" pack="center">
      <image id="alertImage"/>
    </hbox>

    <vbox id="alertTextBox" class="alertTextBox">
      <label id="alertTitleLabel" class="alertTitle plain"/>
      <label id="alertTextLabel" class="alertText plain"/>
    </vbox>

  </box>

  <!-- 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 type="application/javascript">prefillAlertInfo();</script>
</window>