2008-09-07 05:12:05 -07:00
|
|
|
<?xml version="1.0"?>
|
2009-05-29 18:28:12 -07:00
|
|
|
<!DOCTYPE bindings [
|
|
|
|
<!ENTITY % notificationDTD SYSTEM
|
|
|
|
"chrome://browser/locale/notification.dtd">
|
|
|
|
%notificationDTD;
|
|
|
|
]>
|
2008-09-07 05:12:05 -07:00
|
|
|
|
|
|
|
<bindings
|
|
|
|
xmlns="http://www.mozilla.org/xbl"
|
|
|
|
xmlns:xbl="http://www.mozilla.org/xbl"
|
|
|
|
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
|
|
|
|
<binding id="notification" extends="chrome://global/content/bindings/notification.xml#notification">
|
|
|
|
<resources>
|
|
|
|
<stylesheet src="chrome://browser/skin/notification.css"/>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<content>
|
|
|
|
<xul:hbox class="notification-inner outset" flex="1" xbl:inherits="type">
|
2008-09-24 09:08:52 -07:00
|
|
|
<xul:vbox flex="1">
|
2008-09-07 05:12:05 -07:00
|
|
|
<xul:hbox anonid="details" align="center" flex="1">
|
|
|
|
<xul:image anonid="messageImage" class="messageImage" xbl:inherits="src=image"/>
|
|
|
|
<xul:description anonid="messageText" class="messageText" flex="1" xbl:inherits="xbl:text=label"/>
|
|
|
|
<xul:spacer flex="1"/>
|
|
|
|
</xul:hbox>
|
|
|
|
<xul:hbox pack="center"
|
|
|
|
oncommand="document.getBindingParent(this)._doButtonCommand(event);">
|
|
|
|
<children/>
|
|
|
|
</xul:hbox>
|
|
|
|
</xul:vbox>
|
2008-12-22 10:25:52 -08:00
|
|
|
<xul:toolbarbutton ondblclick="event.stopPropagation();"
|
|
|
|
class="messageCloseButton tabbable"
|
|
|
|
xbl:inherits="hidden=hideclose"
|
|
|
|
oncommand="document.getBindingParent(this).close();"/>
|
2008-09-07 05:12:05 -07:00
|
|
|
</xul:hbox>
|
|
|
|
</content>
|
|
|
|
</binding>
|
|
|
|
|
2009-05-29 18:28:12 -07:00
|
|
|
<binding id="geo-notification" extends="chrome://global/content/bindings/notification.xml#notification">
|
|
|
|
|
|
|
|
<resources>
|
|
|
|
<stylesheet src="chrome://browser/skin/notification.css"/>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<content>
|
|
|
|
<xul:vbox class="notification-inner outset" flex="1" xbl:inherits="type">
|
|
|
|
<xul:hbox anonid="details">
|
|
|
|
<xul:image anonid="messageImage" class="messageImage" xbl:inherits="src=image"/>
|
|
|
|
<xul:description anonid="messageText" class="messageText" flex="1" xbl:inherits="xbl:text=label"/>
|
|
|
|
<xul:spacer flex="1"/>
|
|
|
|
<xul:label anonid="learnMore"
|
|
|
|
class="text-link"
|
|
|
|
value="&geolocation.learnMore;"
|
|
|
|
onclick="Browser.addTab(this.href, true); return false;"/>
|
|
|
|
</xul:hbox>
|
|
|
|
|
|
|
|
<xul:hbox pack="center"
|
|
|
|
oncommand="document.getBindingParent(this)._doButtonCommand(event);">
|
|
|
|
<children/>
|
|
|
|
</xul:hbox>
|
|
|
|
</xul:vbox>
|
|
|
|
</content>
|
|
|
|
|
|
|
|
<implementation>
|
|
|
|
<constructor>
|
|
|
|
<![CDATA[
|
|
|
|
var formatter = Cc["@mozilla.org/toolkit/URLFormatterService;1"].getService(Ci.nsIURLFormatter);
|
|
|
|
var href = formatter.formatURLPref("browser.geolocation.warning.infoURL");
|
|
|
|
document.getAnonymousElementByAttribute(this, "anonid", "learnMore").href = href;
|
|
|
|
]]>
|
|
|
|
</constructor>
|
|
|
|
|
|
|
|
<field name="_checkbox">
|
|
|
|
document.getAnonymousElementByAttribute(this, "anonid", "rememberChoice")
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<property name="rememberChoice"
|
|
|
|
onget="return this._checkbox.checked;"
|
|
|
|
readonly="true"/>
|
|
|
|
|
|
|
|
</implementation>
|
|
|
|
</binding>
|
|
|
|
|
2008-09-07 05:12:05 -07:00
|
|
|
<binding id="notification-button"
|
|
|
|
extends="chrome://global/content/bindings/button.xml#button-base">
|
|
|
|
<resources>
|
|
|
|
<stylesheet src="chrome://browser/skin/notification.css"/>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<content orient="vertical">
|
|
|
|
<xul:image class="sn-button-icon" xbl:inherits="src=image"/>
|
|
|
|
<xul:label class="sn-button-text" xbl:inherits="value=label,accesskey,crop"/>
|
|
|
|
<xul:label class="sn-button-extra-text" xbl:inherits="value=sublabel"/>
|
|
|
|
</content>
|
|
|
|
</binding>
|
|
|
|
|
|
|
|
</bindings>
|