1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/components/downloads/content/download.xml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,121 @@ 1.4 +<?xml version="1.0"?> 1.5 +<!-- -*- Mode: HTML; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- --> 1.6 +<!-- vim: set ts=2 et sw=2 tw=80: --> 1.7 + 1.8 +<!-- This Source Code Form is subject to the terms of the Mozilla Public 1.9 + - License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.10 + - You can obtain one at http://mozilla.org/MPL/2.0/. --> 1.11 + 1.12 +<!DOCTYPE bindings SYSTEM "chrome://browser/locale/downloads/downloads.dtd"> 1.13 + 1.14 +<bindings id="downloadBindings" 1.15 + xmlns="http://www.mozilla.org/xbl" 1.16 + xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.17 + xmlns:xbl="http://www.mozilla.org/xbl"> 1.18 + 1.19 + <binding id="download" 1.20 + extends="chrome://global/content/bindings/richlistbox.xml#richlistitem"> 1.21 + <content orient="horizontal" 1.22 + align="center" 1.23 + onclick="DownloadsView.onDownloadClick(event);"> 1.24 + <xul:image class="downloadTypeIcon" 1.25 + validate="always" 1.26 + xbl:inherits="src=image"/> 1.27 + <xul:image class="downloadTypeIcon blockedIcon"/> 1.28 + <xul:vbox pack="center" 1.29 + flex="1" 1.30 + class="downloadContainer" 1.31 + style="width: &downloadDetails.width;"> 1.32 + <!-- We're letting localizers put a min-width in here primarily 1.33 + because of the downloads summary at the bottom of the list of 1.34 + download items. An element in the summary has the same min-width 1.35 + on a description, and we don't want the panel to change size if the 1.36 + summary isn't being displayed, so we ensure that items share the 1.37 + same minimum width. 1.38 + --> 1.39 + <xul:description class="downloadTarget" 1.40 + crop="center" 1.41 + style="min-width: &downloadsSummary.minWidth2;" 1.42 + xbl:inherits="value=target,tooltiptext=target"/> 1.43 + <xul:progressmeter anonid="progressmeter" 1.44 + class="downloadProgress" 1.45 + min="0" 1.46 + max="100" 1.47 + xbl:inherits="mode=progressmode,value=progress"/> 1.48 + <xul:description class="downloadDetails" 1.49 + crop="end" 1.50 + xbl:inherits="value=status,tooltiptext=statusTip"/> 1.51 + </xul:vbox> 1.52 + <xul:stack> 1.53 + <xul:button class="downloadButton downloadCancel" 1.54 + tooltiptext="&cmd.cancel.label;" 1.55 + oncommand="DownloadsView.onDownloadCommand(event, 'downloadsCmd_cancel');"/> 1.56 + <xul:button class="downloadButton downloadRetry" 1.57 + tooltiptext="&cmd.retry.label;" 1.58 + oncommand="DownloadsView.onDownloadCommand(event, 'downloadsCmd_retry');"/> 1.59 + <xul:button class="downloadButton downloadShow" 1.60 +#ifdef XP_MACOSX 1.61 + tooltiptext="&cmd.showMac.label;" 1.62 +#else 1.63 + tooltiptext="&cmd.show.label;" 1.64 +#endif 1.65 + oncommand="DownloadsView.onDownloadCommand(event, 'downloadsCmd_show');"/> 1.66 + </xul:stack> 1.67 + </content> 1.68 + </binding> 1.69 + 1.70 + <binding id="download-full-ui" 1.71 + extends="chrome://global/content/bindings/richlistbox.xml#richlistitem"> 1.72 + <resources> 1.73 + <stylesheet src="chrome://browser/content/downloads/download.css"/> 1.74 + </resources> 1.75 + 1.76 + <content orient="horizontal" align="center"> 1.77 + <xul:image class="downloadTypeIcon" 1.78 + validate="always" 1.79 + xbl:inherits="src=image"/> 1.80 + <xul:image class="downloadTypeIcon blockedIcon"/> 1.81 + <xul:vbox pack="center" flex="1"> 1.82 + <xul:description class="downloadTarget" 1.83 + crop="center" 1.84 + xbl:inherits="value=displayName,tooltiptext=displayName"/> 1.85 + <xul:progressmeter anonid="progressmeter" 1.86 + class="downloadProgress" 1.87 + min="0" 1.88 + max="100" 1.89 + xbl:inherits="mode=progressmode,value=progress"/> 1.90 + <xul:description class="downloadDetails" 1.91 + style="width: &downloadDetails.width;" 1.92 + crop="end" 1.93 + xbl:inherits="value=status,tooltiptext=statusTip"/> 1.94 + </xul:vbox> 1.95 + 1.96 + <xul:button class="downloadButton downloadCancel" 1.97 + tooltiptext="&cmd.cancel.label;" 1.98 + oncommand="goDoCommand('downloadsCmd_cancel')"/> 1.99 + <xul:button class="downloadButton downloadRetry" 1.100 + tooltiptext="&cmd.retry.label;" 1.101 + oncommand="goDoCommand('downloadsCmd_retry')"/> 1.102 + <xul:button class="downloadButton downloadShow" 1.103 +#ifdef XP_MACOSX 1.104 + tooltiptext="&cmd.showMac.label;" 1.105 +#else 1.106 + tooltiptext="&cmd.show.label;" 1.107 +#endif 1.108 + oncommand="goDoCommand('downloadsCmd_show')"/> 1.109 + 1.110 + </content> 1.111 + </binding> 1.112 + 1.113 + <binding id="download-toolbarbutton" 1.114 + extends="chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton"> 1.115 + <content> 1.116 + <children /> 1.117 + <xul:image class="toolbarbutton-icon" xbl:inherits="validate,src=image,label"/> 1.118 + <xul:label class="toolbarbutton-text" crop="right" flex="1" 1.119 + xbl:inherits="value=label,accesskey,crop,wrap"/> 1.120 + <xul:label class="toolbarbutton-multiline-text" flex="1" 1.121 + xbl:inherits="xbl:text=label,accesskey,wrap"/> 1.122 + </content> 1.123 + </binding> 1.124 +</bindings>