|
1 <?xml version="1.0"?> |
|
2 |
|
3 # -*- Mode: HTML -*- |
|
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/. |
|
7 |
|
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"> |
|
14 <xul:stack> |
|
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"> |
|
18 <children/> |
|
19 </xul:hbox> |
|
20 <xul:label xbl:inherits="value=label,crop" class="plain"/> |
|
21 </xul:vbox> |
|
22 <xul:hbox class="ctrlTab-favicon-container" xbl:inherits="hidden=noicon"> |
|
23 <xul:image class="ctrlTab-favicon" xbl:inherits="src=image"/> |
|
24 </xul:hbox> |
|
25 </xul:stack> |
|
26 </content> |
|
27 <handlers> |
|
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);"/> |
|
31 #ifdef XP_MACOSX |
|
32 # Control+click is a right click on OS X |
|
33 <handler event="click" button="2" action="ctrlTab.pick(this);"/> |
|
34 #endif |
|
35 </handlers> |
|
36 </binding> |
|
37 </bindings> |