4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 <bindings id="tabPreviews"
9 xmlns="http://www.mozilla.org/xbl"
10 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
11 xmlns:xbl="http://www.mozilla.org/xbl">
12 <binding id="ctrlTab-preview" extends="chrome://global/content/bindings/button.xml#button-base">
13 <content pack="center">
15 <xul:vbox class="ctrlTab-preview-inner" align="center" pack="center"
16 xbl:inherits="width=canvaswidth">
17 <xul:hbox class="tabPreview-canvas" xbl:inherits="style=canvasstyle">
20 <xul:label xbl:inherits="value=label,crop" class="plain"/>
22 <xul:hbox class="ctrlTab-favicon-container" xbl:inherits="hidden=noicon">
23 <xul:image class="ctrlTab-favicon" xbl:inherits="src=image"/>
28 <handler event="mouseover" action="ctrlTab._mouseOverFocus(this);"/>
29 <handler event="command" action="ctrlTab.pick(this);"/>
30 <handler event="click" button="1" action="ctrlTab.remove(this);"/>
32 # Control+click is a right click on OS X
33 <handler event="click" button="2" action="ctrlTab.pick(this);"/>