1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/components/preferences/handlers.xml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,81 @@ 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 overlay [ 1.11 + <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd"> 1.12 + <!ENTITY % applicationsDTD SYSTEM "chrome://browser/locale/preferences/applications.dtd"> 1.13 + %brandDTD; 1.14 + %applicationsDTD; 1.15 +]> 1.16 + 1.17 +<bindings id="handlerBindings" 1.18 + xmlns="http://www.mozilla.org/xbl" 1.19 + xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.20 + xmlns:xbl="http://www.mozilla.org/xbl"> 1.21 + 1.22 + <binding id="handler-base" extends="chrome://global/content/bindings/richlistbox.xml#richlistitem"> 1.23 + <implementation> 1.24 + <property name="type" readonly="true"> 1.25 + <getter> 1.26 + return this.getAttribute("type"); 1.27 + </getter> 1.28 + </property> 1.29 + </implementation> 1.30 + </binding> 1.31 + 1.32 + <binding id="handler" extends="chrome://browser/content/preferences/handlers.xml#handler-base"> 1.33 + <content> 1.34 + <xul:hbox flex="1" equalsize="always"> 1.35 + <xul:hbox flex="1" align="center" xbl:inherits="tooltiptext=typeDescription"> 1.36 + <xul:image src="moz-icon://goat?size=16" class="typeIcon" 1.37 + xbl:inherits="src=typeIcon" height="16" width="16"/> 1.38 + <xul:label flex="1" crop="end" xbl:inherits="value=typeDescription"/> 1.39 + </xul:hbox> 1.40 + <xul:hbox flex="1" align="center" xbl:inherits="tooltiptext=actionDescription"> 1.41 + <xul:image xbl:inherits="src=actionIcon" height="16" width="16" class="actionIcon"/> 1.42 + <xul:label flex="1" crop="end" xbl:inherits="value=actionDescription"/> 1.43 + </xul:hbox> 1.44 + </xul:hbox> 1.45 + </content> 1.46 + </binding> 1.47 + 1.48 + <binding id="handler-selected" extends="chrome://browser/content/preferences/handlers.xml#handler-base"> 1.49 + <content> 1.50 + <xul:hbox flex="1" equalsize="always"> 1.51 + <xul:hbox flex="1" align="center" xbl:inherits="tooltiptext=typeDescription"> 1.52 + <xul:image src="moz-icon://goat?size=16" class="typeIcon" 1.53 + xbl:inherits="src=typeIcon" height="16" width="16"/> 1.54 + <xul:label flex="1" crop="end" xbl:inherits="value=typeDescription"/> 1.55 + </xul:hbox> 1.56 + <xul:hbox flex="1"> 1.57 + <xul:menulist class="actionsMenu" flex="1" crop="end" selectedIndex="1" 1.58 + xbl:inherits="tooltiptext=actionDescription" 1.59 + oncommand="gApplicationsPane.onSelectAction(event.originalTarget)"> 1.60 + <xul:menupopup/> 1.61 + </xul:menulist> 1.62 + </xul:hbox> 1.63 + </xul:hbox> 1.64 + </content> 1.65 + 1.66 + <implementation> 1.67 + <constructor> 1.68 + gApplicationsPane.rebuildActionsMenu(); 1.69 + </constructor> 1.70 + </implementation> 1.71 + 1.72 + </binding> 1.73 + 1.74 + <binding id="offlineapp" 1.75 + extends="chrome://global/content/bindings/listbox.xml#listitem"> 1.76 + <content> 1.77 + <children> 1.78 + <xul:listcell xbl:inherits="label=host"/> 1.79 + <xul:listcell xbl:inherits="label=usage"/> 1.80 + </children> 1.81 + </content> 1.82 + </binding> 1.83 + 1.84 +</bindings>