browser/metro/base/content/bindings/popup.xml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/metro/base/content/bindings/popup.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +<?xml version="1.0"?>
     1.5 +
     1.6 +<bindings xmlns="http://www.mozilla.org/xbl"
     1.7 +          xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     1.8 +  <binding id="element-popup">
     1.9 +
    1.10 +    <implementation implements="nsIPopupBoxObject">
    1.11 +      <method name="showPopup">
    1.12 +        <parameter name="srcConent"/>
    1.13 +        <parameter name="xpos"/>
    1.14 +        <parameter name="ypos"/>
    1.15 +        <parameter name="popupType"/>
    1.16 +        <parameter name="anchorAlignment"/>
    1.17 +        <parameter name="popupAlignment"/>
    1.18 +        <body>
    1.19 +          <![CDATA[
    1.20 +            this.style.visibility = 'visible';
    1.21 +            this.style.left = xpos + "px";
    1.22 +            this.style.top = ypos + "px";
    1.23 +          ]]>
    1.24 +        </body>
    1.25 +      </method>
    1.26 +
    1.27 +      <method name="hidePopup">
    1.28 +        <body>
    1.29 +          <![CDATA[
    1.30 +            this.style.visibility = 'hidden';
    1.31 +            let event = document.createEvent("Events");
    1.32 +            event.initEvent("popuphidden", true, false);
    1.33 +            let dispatcher = this;
    1.34 +            dispatcher.dispatchEvent(event);
    1.35 +          ]]>
    1.36 +        </body>
    1.37 +      </method>
    1.38 +    </implementation>
    1.39 +  </binding>
    1.40 +</bindings>
    1.41 \ No newline at end of file

mercurial