browser/base/content/browser-tabPreviews.xml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/base/content/browser-tabPreviews.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +<?xml version="1.0"?>
     1.5 +
     1.6 +# -*- Mode: HTML -*-
     1.7 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.8 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.9 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
    1.10 +
    1.11 +<bindings id="tabPreviews"
    1.12 +          xmlns="http://www.mozilla.org/xbl"
    1.13 +          xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.14 +          xmlns:xbl="http://www.mozilla.org/xbl">
    1.15 +  <binding id="ctrlTab-preview" extends="chrome://global/content/bindings/button.xml#button-base">
    1.16 +    <content pack="center">
    1.17 +      <xul:stack>
    1.18 +        <xul:vbox class="ctrlTab-preview-inner" align="center" pack="center"
    1.19 +                  xbl:inherits="width=canvaswidth">
    1.20 +          <xul:hbox class="tabPreview-canvas" xbl:inherits="style=canvasstyle">
    1.21 +            <children/>
    1.22 +          </xul:hbox>
    1.23 +          <xul:label xbl:inherits="value=label,crop" class="plain"/>
    1.24 +        </xul:vbox>
    1.25 +        <xul:hbox class="ctrlTab-favicon-container" xbl:inherits="hidden=noicon">
    1.26 +          <xul:image class="ctrlTab-favicon" xbl:inherits="src=image"/>
    1.27 +        </xul:hbox>
    1.28 +      </xul:stack>
    1.29 +    </content>
    1.30 +    <handlers>
    1.31 +      <handler event="mouseover" action="ctrlTab._mouseOverFocus(this);"/>
    1.32 +      <handler event="command" action="ctrlTab.pick(this);"/>
    1.33 +      <handler event="click" button="1" action="ctrlTab.remove(this);"/>
    1.34 +#ifdef XP_MACOSX
    1.35 +# Control+click is a right click on OS X
    1.36 +      <handler event="click" button="2" action="ctrlTab.pick(this);"/>
    1.37 +#endif
    1.38 +    </handlers>
    1.39 +  </binding>
    1.40 +</bindings>

mercurial