зеркало из https://github.com/mozilla/gecko-dev.git
Bug #35035 add a widget for email addresses in the message pane. this helps make the message pane skinnable.
This commit is contained in:
Родитель
8264f1f968
Коммит
c20c51d9a9
|
@ -4,6 +4,42 @@
|
|||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<!-- Message Pane Widgets -->
|
||||
<binding id="mail-emailaddress" extends="resource:/chrome/xulBindings.xml#basetext">
|
||||
<content excludes="observes,template">
|
||||
<xul:box inherits="orient" autostretch="never" flex="1">
|
||||
<xul:box orient="vertical" autostretch="never" flex="1">
|
||||
<xul:text class="emailDisplayButton" popup="emailAddressPopup" inherits="value,accesskey,crop"/>
|
||||
</xul:box>
|
||||
<xul:image class="emailDisplayImage" inherits="src"/>
|
||||
</xul:box>
|
||||
</content>
|
||||
|
||||
<interface>
|
||||
<method name="setTextAttribute">
|
||||
<argument name="attributeName"/>
|
||||
<argument name="attributeValue"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
var textNode = this.anonymousContent[0].firstChild.firstChild;
|
||||
textNode.setAttribute(attributeName, attributeValue);
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="getTextAttribute">
|
||||
<argument name="attributeName"/>
|
||||
<argument name="attributeValue"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
var textNode = this.anonymousContent[0].firstChild.firstChild;
|
||||
return textNode.getAttribute(attributeName, attributeValue);
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
</interface>
|
||||
</binding>
|
||||
|
||||
<binding id="search-menulist-abstract" extends="xul:box">
|
||||
<content>
|
||||
<xul:menulist inherits="flex" oncommand="this.parentNode.onSelect(event)">
|
||||
|
|
Загрузка…
Ссылка в новой задаче