toolkit/obsolete/content/globalOverlay.xul
author Marco Castelluccio <mar.castelluccio@studenti.unina.it>
Fri, 18 Nov 2011 17:00:37 +1300
changeset 82066 215593486382ba9710ee70056a94f44b1ab846c7
parent 44124 1be071f3b9cbd470bb31f612b6a6354d6260be93
child 98529 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 699258 - Get skia backend compiling and running on Windows. r=mattwoodrow

<?xml version="1.0"?> 

<overlay id="globalOverlay"
		 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
  <script type="application/javascript"><![CDATA[

    function FillInTooltip ( tipElement )
    {
      var retVal = false;
      var textNode = document.getElementById("TOOLTIP-tooltipText");
      if (textNode) {
        while (textNode.hasChildNodes())
          textNode.removeChild(textNode.firstChild);
        var tipText = tipElement.getAttribute("tooltiptext");
        if (tipText) {
          var node = document.createTextNode(tipText);
          textNode.appendChild(node);
          retVal = true;
        }
      }
      return retVal;
    }

  ]]></script>

  <popupset id="aTooltipSet">
    <tooltip id="aTooltip" class="tooltip" onpopupshowing="return FillInTooltip(document.tooltipNode);">
      <label id="TOOLTIP-tooltipText" class="tooltip-label" flex="1"/>
    </tooltip>
  </popupset>

</overlay>