toolkit/obsolete/content/globalOverlay.xul
author Mike Hommey <mh+mozilla@glandium.org>
Fri, 30 Oct 2015 11:31:14 +0900
changeset 306652 8f3b9c2b450c44d6835e88bf991fdf492c0185b0
parent 98529 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 1222323 - Avoid passing extra defines to the compiler from config.mk. r=gps C/C++ code should not be relying on XPI_NAME or AB_CD being defined, so moving them out works.

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


<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>