mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
37 lines
1.1 KiB
XML
37 lines
1.1 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<bindings xmlns="http://www.mozilla.org/xbl"
|
|
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
<binding id="element-popup">
|
|
|
|
<implementation implements="nsIPopupBoxObject">
|
|
<method name="showPopup">
|
|
<parameter name="srcConent"/>
|
|
<parameter name="xpos"/>
|
|
<parameter name="ypos"/>
|
|
<parameter name="popupType"/>
|
|
<parameter name="anchorAlignment"/>
|
|
<parameter name="popupAlignment"/>
|
|
<body>
|
|
<![CDATA[
|
|
this.style.visibility = 'visible';
|
|
this.style.left = xpos + "px";
|
|
this.style.top = ypos + "px";
|
|
]]>
|
|
</body>
|
|
</method>
|
|
|
|
<method name="hidePopup">
|
|
<body>
|
|
<![CDATA[
|
|
this.style.visibility = 'hidden';
|
|
let event = document.createEvent("Events");
|
|
event.initEvent("popuphidden", true, false);
|
|
let dispatcher = this;
|
|
dispatcher.dispatchEvent(event);
|
|
]]>
|
|
</body>
|
|
</method>
|
|
</implementation>
|
|
</binding>
|
|
</bindings> |