<?xml version="1.0"?>
<!DOCTYPE bindings [
<!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
%browserDTD;
<!ENTITY % tabBrowserDTD SYSTEM "chrome://global/locale/tabbrowser.dtd" >
%tabBrowserDTD;
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
%globalDTD;
]>

<bindings id="myFireFoxGoButton-bindings"
   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">
  <!-- 本功能由FlyWorld设计 -->
  <!-- 为了兼容firefox3与3.1b3，在转到中的onclick中加入了try -->  
  <binding  id="myGoButton" >
    <content>
		<children/>
		<xul:hbox id="go-button-stack"  >
		   <xul:toolbarbutton id="reload-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
				label="&reloadCmd.label;" command="Browser:Reload" tooltiptext="&reloadButton.tooltip;"/> 		
		   <xul:toolbarbutton id="stop-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
				label="&stopCmd.label;" command="Browser:Stop" tooltiptext="&stopButton.tooltip;"/>
		</xul:hbox> 
    </content>
  </binding>

  <binding  id="myUrlbar" extends="chrome://browser/content/urlbarBindings.xml#urlbar">
    <content sizetopopup="pref">
	<xul:hbox class="myUrlbar-left-corner" width="3px" pack="end" align="center">
		<xul:hbox class="myUrlbar-Middle" width="1px" height="22px"/>
	</xul:hbox>
	
	<xul:stack id="myUrlbarStack" class="fission-progress-stack" flex="1">
		<children includes="progressmeter"/>
		<xul:hbox class="autocomplete-textbox-container-fission" >  
			<xul:hbox id="myUrlBox" flex="1" 
			onmousedown ="if(!gBrowser.getAttribute('myFirefoxLoad')){			
				document.loadOverlay('chrome://global/skin/myFirefoxTab/myLoadJs.xul', null);	
				gBrowser.setAttribute('myFirefoxLoad','true') ; }
				this.onmousedown=null ;
			">
				<xul:hbox class="autocomplete-textbox-container" flex="1" xbl:inherits="focused">
					<children includes="image|deck|stack|box">
						<xul:image class="autocomplete-icon" allowevents="true"/>
					</children>  
			
					<xul:hbox id="myInputBox" flex="1" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
							anonid="textbox-input-box" class="textbox-input-box"  
							xbl:inherits="tooltiptext=inputtooltiptext" 
							xmlns:xbl="http://www.mozilla.org/xbl" 
							context="_child">
						<children/>	
						<html:input xmlns:html="http://www.w3.org/1999/xhtml" 
							anonid="input" class="autocomplete-textbox textbox-input" flex="1"  
							allowevents="true" style="padding:1px !important;margin:0 !important;" 
							xbl:inherits="tooltiptext=inputtooltiptext,onfocus,onblur,value,type,maxlength,disabled,size,readonly,userAction" />
					</xul:hbox>         
			
				</xul:hbox>
				<children includes="hbox"/> 
				<xul:dropmarker anonid="historydropmarker" class="autocomplete-history-dropmarker"
					allowevents="true"
					xbl:inherits="open,enablehistory,parentfocused=focused"/>
				<xul:popupset anonid="popupset" class="autocomplete-result-popupset"/> 
			</xul:hbox>
			<xul:toolbarbutton id="urlSecurity-button" class="statusbarpanel-iconic-text"
					onclick="myFirefoxUrlBar.SecurityButtonCmd(event,this);"/>				
			<xul:hbox id="myGoBox">
				<xul:image id="go-button" chromedir="&locale.dir;" class="urlbar-icon" 
					tooltiptext="&goEndCap.tooltip;" 
					onclick="try{handleURLBarCommand(event);} catch(e){gURLBar.handleCommand(event);}" />
			</xul:hbox>
			<xul:toolbarbutton id="reload-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
				label="&reloadCmd.label;"
				oncommand="if (event.shiftKey) BrowserReloadSkipCache(); else BrowserReload();
				document.getElementById('main-window').focus();"
				tooltiptext="&reloadButton.tooltip;"/> 
			<xul:hbox id="myUrlbarSpace" />
		</xul:hbox>
	</xul:stack>
	<xul:hbox class="myUrlbar-right-corner" width="3px" pack="start" align="center">
		<xul:hbox class="myUrlbar-Middle" width="1px" height="22px"/>
	</xul:hbox>
			 
    </content>
  </binding>
  
  <binding  id="mySecurityButton" extends="chrome://global/content/bindings/general.xml#statusbarpanel">
    <content>
      <xul:hbox class="end"/>
	  <xul:hbox class="middle" pack="start" align="center" >
		<xul:image class="button-icon" xbl:inherits="src=image" /> 	  
	    <xul:label class="statusbarpanel-text" xbl:inherits="value=label,crop" crop="right" flex="1"/>
	  </xul:hbox>
      <xul:hbox class="start"/>	  
    </content>
  </binding>	
</bindings>


