Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | - License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 5 | |
michael@0 | 6 | |
michael@0 | 7 | <bindings id="toolbarbuttonBindings" |
michael@0 | 8 | xmlns="http://www.mozilla.org/xbl" |
michael@0 | 9 | xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 10 | xmlns:xbl="http://www.mozilla.org/xbl"> |
michael@0 | 11 | |
michael@0 | 12 | <binding id="toolbarbutton" display="xul:button" role="xul:toolbarbutton" |
michael@0 | 13 | extends="chrome://global/content/bindings/button.xml#button-base"> |
michael@0 | 14 | <resources> |
michael@0 | 15 | <stylesheet src="chrome://global/skin/toolbarbutton.css"/> |
michael@0 | 16 | </resources> |
michael@0 | 17 | |
michael@0 | 18 | <content> |
michael@0 | 19 | <children includes="observes|template|menupopup|panel|tooltip"/> |
michael@0 | 20 | <xul:image class="toolbarbutton-icon" xbl:inherits="validate,src=image,label"/> |
michael@0 | 21 | <xul:label class="toolbarbutton-text" crop="right" flex="1" |
michael@0 | 22 | xbl:inherits="value=label,accesskey,crop,wrap"/> |
michael@0 | 23 | <xul:label class="toolbarbutton-multiline-text" flex="1" |
michael@0 | 24 | xbl:inherits="xbl:text=label,accesskey,wrap"/> |
michael@0 | 25 | </content> |
michael@0 | 26 | </binding> |
michael@0 | 27 | |
michael@0 | 28 | <binding id="menu" display="xul:menu" |
michael@0 | 29 | extends="chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton"> |
michael@0 | 30 | <content> |
michael@0 | 31 | <children includes="observes|template|menupopup|panel|tooltip"/> |
michael@0 | 32 | <xul:image class="toolbarbutton-icon" xbl:inherits="validate,src=image,label,type"/> |
michael@0 | 33 | <xul:label class="toolbarbutton-text" crop="right" flex="1" |
michael@0 | 34 | xbl:inherits="value=label,accesskey,crop,dragover-top,wrap"/> |
michael@0 | 35 | <xul:label class="toolbarbutton-multiline-text" flex="1" |
michael@0 | 36 | xbl:inherits="xbl:text=label,accesskey,wrap"/> |
michael@0 | 37 | <xul:dropmarker anonid="dropmarker" type="menu" |
michael@0 | 38 | class="toolbarbutton-menu-dropmarker" xbl:inherits="disabled,label"/> |
michael@0 | 39 | </content> |
michael@0 | 40 | </binding> |
michael@0 | 41 | |
michael@0 | 42 | <binding id="menu-vertical" display="xul:menu" |
michael@0 | 43 | extends="chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton"> |
michael@0 | 44 | <content> |
michael@0 | 45 | <children includes="observes|template|menupopup|panel|tooltip"/> |
michael@0 | 46 | <xul:hbox flex="1" align="center"> |
michael@0 | 47 | <xul:vbox flex="1" align="center"> |
michael@0 | 48 | <xul:image class="toolbarbutton-icon" xbl:inherits="validate,src=image,label"/> |
michael@0 | 49 | <xul:label class="toolbarbutton-text" crop="right" flex="1" |
michael@0 | 50 | xbl:inherits="value=label,accesskey,crop,dragover-top,wrap"/> |
michael@0 | 51 | <xul:label class="toolbarbutton-multiline-text" flex="1" |
michael@0 | 52 | xbl:inherits="xbl:text=label,accesskey,wrap"/> |
michael@0 | 53 | </xul:vbox> |
michael@0 | 54 | <xul:dropmarker anonid="dropmarker" type="menu" |
michael@0 | 55 | class="toolbarbutton-menu-dropmarker" xbl:inherits="disabled,label"/> |
michael@0 | 56 | </xul:hbox> |
michael@0 | 57 | </content> |
michael@0 | 58 | </binding> |
michael@0 | 59 | |
michael@0 | 60 | <binding id="menu-button" display="xul:menu" |
michael@0 | 61 | extends="chrome://global/content/bindings/button.xml#menu-button-base"> |
michael@0 | 62 | <resources> |
michael@0 | 63 | <stylesheet src="chrome://global/skin/toolbarbutton.css"/> |
michael@0 | 64 | </resources> |
michael@0 | 65 | |
michael@0 | 66 | <content> |
michael@0 | 67 | <children includes="observes|template|menupopup|panel|tooltip"/> |
michael@0 | 68 | <xul:toolbarbutton class="box-inherit toolbarbutton-menubutton-button" |
michael@0 | 69 | anonid="button" flex="1" allowevents="true" |
michael@0 | 70 | xbl:inherits="disabled,crop,image,label,accesskey,command,wrap, |
michael@0 | 71 | align,dir,pack,orient,tooltiptext=buttontooltiptext"/> |
michael@0 | 72 | <xul:dropmarker type="menu-button" class="toolbarbutton-menubutton-dropmarker" |
michael@0 | 73 | anonid="dropmarker" xbl:inherits="align,dir,pack,orient,disabled,label,open"/> |
michael@0 | 74 | </content> |
michael@0 | 75 | </binding> |
michael@0 | 76 | |
michael@0 | 77 | <binding id="toolbarbutton-image" |
michael@0 | 78 | extends="chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton"> |
michael@0 | 79 | <content> |
michael@0 | 80 | <xul:image class="toolbarbutton-icon" xbl:inherits="src=image"/> |
michael@0 | 81 | </content> |
michael@0 | 82 | </binding> |
michael@0 | 83 | </bindings> |