1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/mozapps/extensions/content/blocklist.xml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,58 @@ 1.4 +<?xml version="1.0"?> 1.5 + 1.6 +<!-- This Source Code Form is subject to the terms of the Mozilla Public 1.7 + - License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 1.9 + 1.10 +<!DOCTYPE bindings [ 1.11 + <!ENTITY % blocklistDTD SYSTEM "chrome://mozapps/locale/extensions/blocklist.dtd" > 1.12 + %blocklistDTD; 1.13 +]> 1.14 + 1.15 +<bindings id="blocklistBindings" 1.16 + xmlns="http://www.mozilla.org/xbl" 1.17 + xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.18 + xmlns:xbl="http://www.mozilla.org/xbl"> 1.19 + 1.20 + <binding id="hardblockedaddon"> 1.21 + <content align="start"> 1.22 + <xul:image xbl:inherits="src=icon"/> 1.23 + <xul:vbox flex="1"> 1.24 + <xul:hbox class="addon-name-version"> 1.25 + <xul:label class="addonName" crop="end" xbl:inherits="value=name"/> 1.26 + <xul:label class="addonVersion" xbl:inherits="value=version"/> 1.27 + </xul:hbox> 1.28 + <xul:hbox> 1.29 + <xul:spacer flex="1"/> 1.30 + <xul:label class="blockedLabel" value="&blocklist.blocked.label;"/> 1.31 + </xul:hbox> 1.32 + </xul:vbox> 1.33 + </content> 1.34 + </binding> 1.35 + 1.36 + <binding id="softblockedaddon"> 1.37 + <content align="start"> 1.38 + <xul:image xbl:inherits="src=icon"/> 1.39 + <xul:vbox flex="1"> 1.40 + <xul:hbox class="addon-name-version"> 1.41 + <xul:label class="addonName" crop="end" xbl:inherits="value=name"/> 1.42 + <xul:label class="addonVersion" xbl:inherits="value=version"/> 1.43 + </xul:hbox> 1.44 + <xul:hbox> 1.45 + <xul:spacer flex="1"/> 1.46 + <xul:checkbox class="disableCheckbox" checked="true" label="&blocklist.checkbox.label;"/> 1.47 + </xul:hbox> 1.48 + </xul:vbox> 1.49 + </content> 1.50 + <implementation> 1.51 + <field name="_checkbox"> 1.52 + document.getAnonymousElementByAttribute(this, "class", "disableCheckbox") 1.53 + </field> 1.54 + <property name="checked" readonly="true"> 1.55 + <getter> 1.56 + return this._checkbox.checked; 1.57 + </getter> 1.58 + </property> 1.59 + </implementation> 1.60 + </binding> 1.61 +</bindings>