1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/components/downloads/content/downloadsOverlay.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,141 @@ 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 +# 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 file, 1.9 +# You can obtain one at http://mozilla.org/MPL/2.0/. 1.10 + 1.11 +<?xml-stylesheet href="chrome://browser/content/downloads/downloads.css"?> 1.12 +<?xml-stylesheet href="chrome://browser/skin/downloads/downloads.css"?> 1.13 + 1.14 +<!DOCTYPE overlay SYSTEM "chrome://browser/locale/downloads/downloads.dtd"> 1.15 + 1.16 +<overlay xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 1.17 + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.18 + id="downloadsOverlay"> 1.19 + 1.20 + <commandset> 1.21 + <command id="downloadsCmd_doDefault" 1.22 + oncommand="goDoCommand('downloadsCmd_doDefault')"/> 1.23 + <command id="downloadsCmd_pauseResume" 1.24 + oncommand="goDoCommand('downloadsCmd_pauseResume')"/> 1.25 + <command id="downloadsCmd_cancel" 1.26 + oncommand="goDoCommand('downloadsCmd_cancel')"/> 1.27 + <command id="downloadsCmd_open" 1.28 + oncommand="goDoCommand('downloadsCmd_open')"/> 1.29 + <command id="downloadsCmd_show" 1.30 + oncommand="goDoCommand('downloadsCmd_show')"/> 1.31 + <command id="downloadsCmd_retry" 1.32 + oncommand="goDoCommand('downloadsCmd_retry')"/> 1.33 + <command id="downloadsCmd_openReferrer" 1.34 + oncommand="goDoCommand('downloadsCmd_openReferrer')"/> 1.35 + <command id="downloadsCmd_copyLocation" 1.36 + oncommand="goDoCommand('downloadsCmd_copyLocation')"/> 1.37 + <command id="downloadsCmd_clearList" 1.38 + oncommand="goDoCommand('downloadsCmd_clearList')"/> 1.39 + </commandset> 1.40 + 1.41 + <popupset> 1.42 + <!-- The panel has level="top" to ensure that it is never hidden by the 1.43 + taskbar on Windows. See bug 672365. For accessibility to screen 1.44 + readers, we use a label on the panel instead of the anchor because the 1.45 + panel can also be displayed without an anchor. --> 1.46 + <panel id="downloadsPanel" 1.47 + aria-label="&downloads.title;" 1.48 + role="group" 1.49 + type="arrow" 1.50 + orient="vertical" 1.51 + level="top" 1.52 + onpopupshown="DownloadsPanel.onPopupShown(event);" 1.53 + onpopuphidden="DownloadsPanel.onPopupHidden(event);"> 1.54 + <!-- The following popup menu should be a child of the panel element, 1.55 + otherwise flickering may occur when the cursor is moved over the area 1.56 + of a disabled menu item that overlaps the panel. See bug 492960. --> 1.57 + <menupopup id="downloadsContextMenu" 1.58 + class="download-state"> 1.59 + <menuitem command="downloadsCmd_pauseResume" 1.60 + class="downloadPauseMenuItem" 1.61 + label="&cmd.pause.label;" 1.62 + accesskey="&cmd.pause.accesskey;"/> 1.63 + <menuitem command="downloadsCmd_pauseResume" 1.64 + class="downloadResumeMenuItem" 1.65 + label="&cmd.resume.label;" 1.66 + accesskey="&cmd.resume.accesskey;"/> 1.67 + <menuitem command="downloadsCmd_cancel" 1.68 + class="downloadCancelMenuItem" 1.69 + label="&cmd.cancel.label;" 1.70 + accesskey="&cmd.cancel.accesskey;"/> 1.71 + <menuitem command="cmd_delete" 1.72 + class="downloadRemoveFromHistoryMenuItem" 1.73 + label="&cmd.removeFromHistory.label;" 1.74 + accesskey="&cmd.removeFromHistory.accesskey;"/> 1.75 + <menuitem command="downloadsCmd_show" 1.76 + class="downloadShowMenuItem" 1.77 +#ifdef XP_MACOSX 1.78 + label="&cmd.showMac.label;" 1.79 + accesskey="&cmd.showMac.accesskey;" 1.80 +#else 1.81 + label="&cmd.show.label;" 1.82 + accesskey="&cmd.show.accesskey;" 1.83 +#endif 1.84 + /> 1.85 + 1.86 + <menuseparator class="downloadCommandsSeparator"/> 1.87 + 1.88 + <menuitem command="downloadsCmd_openReferrer" 1.89 + label="&cmd.goToDownloadPage.label;" 1.90 + accesskey="&cmd.goToDownloadPage.accesskey;"/> 1.91 + <menuitem command="downloadsCmd_copyLocation" 1.92 + label="&cmd.copyDownloadLink.label;" 1.93 + accesskey="&cmd.copyDownloadLink.accesskey;"/> 1.94 + 1.95 + <menuseparator/> 1.96 + 1.97 + <menuitem command="downloadsCmd_clearList" 1.98 + label="&cmd.clearList.label;" 1.99 + accesskey="&cmd.clearList.accesskey;"/> 1.100 + </menupopup> 1.101 + 1.102 + <richlistbox id="downloadsListBox" 1.103 + class="plain" 1.104 + flex="1" 1.105 + context="downloadsContextMenu" 1.106 + onmouseover="DownloadsView.onDownloadMouseOver(event);" 1.107 + onmouseout="DownloadsView.onDownloadMouseOut(event);" 1.108 + oncontextmenu="DownloadsView.onDownloadContextMenu(event);" 1.109 + ondragstart="DownloadsView.onDownloadDragStart(event);"/> 1.110 + <description id="emptyDownloads" 1.111 + mousethrough="always"> 1.112 + &downloadsPanelEmpty.label; 1.113 + </description> 1.114 + 1.115 + <vbox id="downloadsFooter"> 1.116 + <hbox id="downloadsSummary" 1.117 + align="center" 1.118 + orient="horizontal" 1.119 + onkeydown="DownloadsSummary.onKeyDown(event);" 1.120 + onclick="DownloadsSummary.onClick(event);"> 1.121 + <image class="downloadTypeIcon" /> 1.122 + <vbox> 1.123 + <description id="downloadsSummaryDescription" 1.124 + style="min-width: &downloadsSummary.minWidth2;"/> 1.125 + <progressmeter id="downloadsSummaryProgress" 1.126 + class="downloadProgress" 1.127 + min="0" 1.128 + max="100" 1.129 + mode="normal" /> 1.130 + <description id="downloadsSummaryDetails" 1.131 + style="width: &downloadDetails.width;" 1.132 + crop="end"/> 1.133 + </vbox> 1.134 + </hbox> 1.135 + 1.136 + <button id="downloadsHistory" 1.137 + class="plain" 1.138 + label="&downloadsHistory.label;" 1.139 + accesskey="&downloadsHistory.accesskey;" 1.140 + oncommand="DownloadsPanel.showDownloadsHistory();"/> 1.141 + </vbox> 1.142 + </panel> 1.143 + </popupset> 1.144 +</overlay>