<?xml version="1.0"?>

<!DOCTYPE bindings [

<!ENTITY % tabBrowserDTD SYSTEM "chrome://browser/locale/tabbrowser.dtd">
%tabBrowserDTD;
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
%globalDTD;
<!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd">
%browserDTD;
<!ENTITY % undoclosetabDTD SYSTEM "chrome://undoclosedtabsbutton/locale/prefwindow.dtd">%undoclosetabDTD;]>

<bindings id="uctb-tab-button"
          xmlns="http://www.mozilla.org/xbl"
          xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
          xmlns:xbl="http://www.mozilla.org/xbl">

   <binding id="tabbrowser-tabs"
          extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tabs">

    <content>
      <xul:stack flex="1" class="tabs-stack">
        <xul:vbox>
          <xul:spacer flex="1"/>
          <xul:hbox class="tabs-bottom" align="center"/>
        </xul:vbox>
        <xul:hbox xbl:inherits="overflow" class="tabs-container">
          <xul:toolbarbutton class="uctb-tab-button"
                             tooltiptext="&undolastclosedtab.label;"
                             oncommand="undoCloseTab();"/>
          <xul:arrowscrollbox anonid="arrowscrollbox" orient="horizontal" flex="1"
                              style="min-width: 1px;"
                              clicktoscroll="true"
                              class="tabbrowser-arrowscrollbox">
            <children includes="tab"/>
            <children/>
            <xul:toolbarbutton class="tabs-newtab-button"
                               command="cmd_newNavigatorTab"
                               tooltiptext="&newTabButton.tooltip;"/>
          </xul:arrowscrollbox>
          <xul:toolbarbutton class="tabs-newtab-button" anonid="newtab-button"
                             command="cmd_newNavigatorTab"
                             tooltiptext="&newTabButton.tooltip;"/>
          <xul:toolbarbutton class="tabs-alltabs-button" anonid="alltabs-button"
                             type="menu"
                             tooltiptext="&listAllTabs.label;">
            <xul:menupopup class="tabs-alltabs-popup" anonid="alltabs-popup"
                           position="after_end"/>
          </xul:toolbarbutton>
          <xul:toolbarbutton anonid="tabs-closebutton"
                             class="close-button tabs-closebutton"/>
        </xul:hbox>
      </xul:stack>
    </content>
</binding>
</bindings>