summaryrefslogtreecommitdiff
path: root/browser/components/downloads/content/downloadsOverlay.xul
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2022-02-12 13:57:21 -0600
committerMatt A. Tobin <email@mattatobin.com>2022-02-12 13:57:21 -0600
commitba7d67bb0711c9066c71bd33e55d9a5d2f9b2cbf (patch)
treea5c0cfad71c17114c78d8a7d1f31112eb53896df /browser/components/downloads/content/downloadsOverlay.xul
parentc054e324210895e7e2c5b3e84437cba43f201ec8 (diff)
downloadpalemoon-gre-ba7d67bb0711c9066c71bd33e55d9a5d2f9b2cbf.tar.gz
Lay down Pale Moon 30
Diffstat (limited to 'browser/components/downloads/content/downloadsOverlay.xul')
-rw-r--r--browser/components/downloads/content/downloadsOverlay.xul135
1 files changed, 135 insertions, 0 deletions
diff --git a/browser/components/downloads/content/downloadsOverlay.xul b/browser/components/downloads/content/downloadsOverlay.xul
new file mode 100644
index 000000000..8dc8148bb
--- /dev/null
+++ b/browser/components/downloads/content/downloadsOverlay.xul
@@ -0,0 +1,135 @@
+<?xml version="1.0"?>
+<!-- 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/. -->
+
+<?xml-stylesheet href="chrome://browser/content/downloads/downloads.css"?>
+<?xml-stylesheet href="chrome://browser/skin/downloads/downloads.css"?>
+
+<!DOCTYPE overlay SYSTEM "chrome://browser/locale/downloads/downloads.dtd">
+
+<overlay xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ id="downloadsOverlay">
+
+ <commandset>
+ <command id="downloadsCmd_doDefault"
+ oncommand="goDoCommand('downloadsCmd_doDefault')"/>
+ <command id="downloadsCmd_pauseResume"
+ oncommand="goDoCommand('downloadsCmd_pauseResume')"/>
+ <command id="downloadsCmd_cancel"
+ oncommand="goDoCommand('downloadsCmd_cancel')"/>
+ <command id="downloadsCmd_open"
+ oncommand="goDoCommand('downloadsCmd_open')"/>
+ <command id="downloadsCmd_show"
+ oncommand="goDoCommand('downloadsCmd_show')"/>
+ <command id="downloadsCmd_retry"
+ oncommand="goDoCommand('downloadsCmd_retry')"/>
+ <command id="downloadsCmd_openReferrer"
+ oncommand="goDoCommand('downloadsCmd_openReferrer')"/>
+ <command id="downloadsCmd_copyLocation"
+ oncommand="goDoCommand('downloadsCmd_copyLocation')"/>
+ <command id="downloadsCmd_clearList"
+ oncommand="goDoCommand('downloadsCmd_clearList')"/>
+ </commandset>
+
+ <popupset id="mainPopupSet">
+ <!-- The panel has level="top" to ensure that it is never hidden by the
+ taskbar on Windows. See bug 672365. For accessibility to screen
+ readers, we use a label on the panel instead of the anchor because the
+ panel can also be displayed without an anchor. -->
+ <panel id="downloadsPanel"
+ aria-label="&downloads.title;"
+ role="group"
+ type="arrow"
+ orient="vertical"
+ level="top"
+ consumeoutsideclicks="true"
+ onpopupshown="DownloadsPanel.onPopupShown(event);"
+ onpopuphidden="DownloadsPanel.onPopupHidden(event);">
+ <!-- The following popup menu should be a child of the panel element,
+ otherwise flickering may occur when the cursor is moved over the area
+ of a disabled menu item that overlaps the panel. See bug 492960. -->
+ <menupopup id="downloadsContextMenu"
+ class="download-state">
+ <menuitem command="downloadsCmd_pauseResume"
+ class="downloadPauseMenuItem"
+ label="&cmd.pause.label;"
+ accesskey="&cmd.pause.accesskey;"/>
+ <menuitem command="downloadsCmd_pauseResume"
+ class="downloadResumeMenuItem"
+ label="&cmd.resume.label;"
+ accesskey="&cmd.resume.accesskey;"/>
+ <menuitem command="downloadsCmd_cancel"
+ class="downloadCancelMenuItem"
+ label="&cmd.cancel.label;"
+ accesskey="&cmd.cancel.accesskey;"/>
+ <menuitem command="cmd_delete"
+ class="downloadRemoveFromHistoryMenuItem"
+ label="&cmd.removeFromHistory.label;"
+ accesskey="&cmd.removeFromHistory.accesskey;"/>
+ <menuitem command="downloadsCmd_show"
+ class="downloadShowMenuItem"
+ label="&cmd.show.label;"
+ accesskey="&cmd.show.accesskey;"
+ />
+
+ <menuseparator class="downloadCommandsSeparator"/>
+
+ <menuitem command="downloadsCmd_openReferrer"
+ label="&cmd.goToDownloadPage.label;"
+ accesskey="&cmd.goToDownloadPage.accesskey;"/>
+ <menuitem command="downloadsCmd_copyLocation"
+ label="&cmd.copyDownloadLink.label;"
+ accesskey="&cmd.copyDownloadLink.accesskey;"/>
+
+ <menuseparator/>
+
+ <menuitem command="downloadsCmd_clearList"
+ label="&cmd.clearList.label;"
+ accesskey="&cmd.clearList.accesskey;"/>
+ </menupopup>
+
+ <richlistbox id="downloadsListBox"
+ class="plain"
+ flex="1"
+ context="downloadsContextMenu"
+ onmouseover="DownloadsView.onDownloadMouseOver(event);"
+ onmouseout="DownloadsView.onDownloadMouseOut(event);"
+ oncontextmenu="DownloadsView.onDownloadContextMenu(event);"
+ ondragstart="DownloadsView.onDownloadDragStart(event);"/>
+ <description id="emptyDownloads"
+ mousethrough="always">
+ &downloadsPanelEmpty.label;
+ </description>
+
+ <vbox id="downloadsFooter">
+ <hbox id="downloadsSummary"
+ align="center"
+ orient="horizontal"
+ onkeydown="DownloadsSummary.onKeyDown(event);"
+ onclick="DownloadsSummary.onClick(event);">
+ <image class="downloadTypeIcon" />
+ <vbox>
+ <description id="downloadsSummaryDescription"
+ style="min-width: &downloadsSummary.minWidth2;"/>
+ <progressmeter id="downloadsSummaryProgress"
+ class="downloadProgress"
+ min="0"
+ max="100"
+ mode="normal" />
+ <description id="downloadsSummaryDetails"
+ style="width: &downloadDetails.width;"
+ crop="end"/>
+ </vbox>
+ </hbox>
+
+ <button id="downloadsHistory"
+ class="plain"
+ label="&downloadsHistory.label;"
+ accesskey="&downloadsHistory.accesskey;"
+ oncommand="DownloadsPanel.showDownloadsHistory();"/>
+ </vbox>
+ </panel>
+ </popupset>
+</overlay>