summaryrefslogtreecommitdiffstats
path: root/application/basilisk/components/downloads/content/download.xml
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-06-04 15:50:03 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-06-04 15:50:03 +0200
commite3b7744bee37c3d4a026d2193bed5e9439c40ff3 (patch)
treef3f7b07ca9bd78bf7ac2d76dd55b61b2a8bb549e /application/basilisk/components/downloads/content/download.xml
parentcbce4f0b6a337f8250b62cae028f1c6d4cce51df (diff)
parent031afcafe288bf0f46c0c5caae20dd3db8bd0297 (diff)
downloadUXP-e3b7744bee37c3d4a026d2193bed5e9439c40ff3.tar
UXP-e3b7744bee37c3d4a026d2193bed5e9439c40ff3.tar.gz
UXP-e3b7744bee37c3d4a026d2193bed5e9439c40ff3.tar.lz
UXP-e3b7744bee37c3d4a026d2193bed5e9439c40ff3.tar.xz
UXP-e3b7744bee37c3d4a026d2193bed5e9439c40ff3.zip
Merge branch 'move-basilisk'
Diffstat (limited to 'application/basilisk/components/downloads/content/download.xml')
-rw-r--r--application/basilisk/components/downloads/content/download.xml99
1 files changed, 99 insertions, 0 deletions
diff --git a/application/basilisk/components/downloads/content/download.xml b/application/basilisk/components/downloads/content/download.xml
new file mode 100644
index 000000000..29a1530fd
--- /dev/null
+++ b/application/basilisk/components/downloads/content/download.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<!-- -*- Mode: HTML; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- -->
+<!-- vim: set ts=2 et sw=2 tw=80: -->
+
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ - You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<!DOCTYPE bindings SYSTEM "chrome://browser/locale/downloads/downloads.dtd">
+
+<bindings id="downloadBindings"
+ 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="download"
+ extends="chrome://global/content/bindings/richlistbox.xml#richlistitem">
+ <content orient="horizontal"
+ onclick="DownloadsView.onDownloadClick(event);">
+ <xul:hbox class="downloadMainArea"
+ flex="1"
+ align="center">
+ <xul:stack>
+ <xul:image class="downloadTypeIcon"
+ validate="always"
+ xbl:inherits="src=image"/>
+ <xul:image class="downloadBlockedBadge" />
+ </xul:stack>
+ <xul:vbox pack="center"
+ flex="1"
+ class="downloadContainer"
+ style="width: &downloadDetails.width;">
+ <!-- We're letting localizers put a min-width in here primarily
+ because of the downloads summary at the bottom of the list of
+ download items. An element in the summary has the same min-width
+ on a description, and we don't want the panel to change size if the
+ summary isn't being displayed, so we ensure that items share the
+ same minimum width.
+ -->
+ <xul:description class="downloadTarget"
+ crop="center"
+ style="min-width: &downloadsSummary.minWidth2;"
+ xbl:inherits="value=displayName,tooltiptext=displayName"/>
+ <xul:progressmeter anonid="progressmeter"
+ class="downloadProgress"
+ min="0"
+ max="100"
+ xbl:inherits="mode=progressmode,value=progress,paused=progresspaused"/>
+ <xul:description class="downloadDetails"
+ crop="end"
+ xbl:inherits="value=status,tooltiptext=statusTip"/>
+ </xul:vbox>
+ </xul:hbox>
+ <xul:toolbarseparator />
+ <xul:stack class="downloadButtonArea">
+ <xul:button class="downloadButton downloadCancel downloadIconCancel"
+ tooltiptext="&cmd.cancel.label;"
+ oncommand="DownloadsView.onDownloadCommand(event, 'downloadsCmd_cancel');"/>
+ <xul:button class="downloadButton downloadRetry downloadIconRetry"
+ tooltiptext="&cmd.retry.label;"
+ oncommand="DownloadsView.onDownloadCommand(event, 'downloadsCmd_retry');"/>
+ <xul:button class="downloadButton downloadShow downloadIconShow"
+#ifdef XP_MACOSX
+ tooltiptext="&cmd.showMac.label;"
+#else
+ tooltiptext="&cmd.show.label;"
+#endif
+ oncommand="DownloadsView.onDownloadCommand(event, 'downloadsCmd_show');"/>
+ <xul:button class="downloadButton downloadConfirmBlock downloadIconCancel"
+ tooltiptext="&cmd.removeFile.label;"
+ oncommand="DownloadsView.onDownloadCommand(event, 'downloadsCmd_confirmBlock');"/>
+ <xul:button class="downloadButton downloadChooseUnblock downloadIconShow"
+ tooltiptext="&cmd.chooseUnblock.label;"
+ oncommand="DownloadsView.onDownloadCommand(event, 'downloadsCmd_chooseUnblock');"/>
+ <xul:button class="downloadButton downloadChooseOpen downloadIconShow"
+ tooltiptext="&cmd.chooseOpen.label;"
+ oncommand="DownloadsView.onDownloadCommand(event, 'downloadsCmd_chooseOpen');"/>
+ <xul:button class="downloadButton downloadShowBlockedInfo"
+ tooltiptext="&cmd.chooseUnblock.label;"
+ oncommand="DownloadsView.onDownloadCommand(event, 'downloadsCmd_showBlockedInfo');"/>
+ </xul:stack>
+ </content>
+ </binding>
+
+ <binding id="download-toolbarbutton"
+ extends="chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton-badged">
+ <content>
+ <xul:stack class="toolbarbutton-badge-stack">
+ <children />
+ <xul:image class="toolbarbutton-icon" xbl:inherits="validate,src=image,label,consumeanchor"/>
+ <xul:label class="toolbarbutton-badge" xbl:inherits="value=badge" top="0" end="0" crop="none"/>
+ </xul:stack>
+ <xul:label class="toolbarbutton-text" crop="right" flex="1"
+ xbl:inherits="value=label,accesskey,crop,wrap"/>
+ <xul:label class="toolbarbutton-multiline-text" flex="1"
+ xbl:inherits="xbl:text=label,accesskey,wrap"/>
+ </content>
+ </binding>
+</bindings>