browser/components/downloads/content/downloadsOverlay.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <?xml version="1.0"?>
michael@0 2 # -*- Mode: HTML; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
michael@0 3 # vim: set ts=2 et sw=2 tw=80:
michael@0 4 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 5 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 6 # You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 7
michael@0 8 <?xml-stylesheet href="chrome://browser/content/downloads/downloads.css"?>
michael@0 9 <?xml-stylesheet href="chrome://browser/skin/downloads/downloads.css"?>
michael@0 10
michael@0 11 <!DOCTYPE overlay SYSTEM "chrome://browser/locale/downloads/downloads.dtd">
michael@0 12
michael@0 13 <overlay xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
michael@0 14 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 15 id="downloadsOverlay">
michael@0 16
michael@0 17 <commandset>
michael@0 18 <command id="downloadsCmd_doDefault"
michael@0 19 oncommand="goDoCommand('downloadsCmd_doDefault')"/>
michael@0 20 <command id="downloadsCmd_pauseResume"
michael@0 21 oncommand="goDoCommand('downloadsCmd_pauseResume')"/>
michael@0 22 <command id="downloadsCmd_cancel"
michael@0 23 oncommand="goDoCommand('downloadsCmd_cancel')"/>
michael@0 24 <command id="downloadsCmd_open"
michael@0 25 oncommand="goDoCommand('downloadsCmd_open')"/>
michael@0 26 <command id="downloadsCmd_show"
michael@0 27 oncommand="goDoCommand('downloadsCmd_show')"/>
michael@0 28 <command id="downloadsCmd_retry"
michael@0 29 oncommand="goDoCommand('downloadsCmd_retry')"/>
michael@0 30 <command id="downloadsCmd_openReferrer"
michael@0 31 oncommand="goDoCommand('downloadsCmd_openReferrer')"/>
michael@0 32 <command id="downloadsCmd_copyLocation"
michael@0 33 oncommand="goDoCommand('downloadsCmd_copyLocation')"/>
michael@0 34 <command id="downloadsCmd_clearList"
michael@0 35 oncommand="goDoCommand('downloadsCmd_clearList')"/>
michael@0 36 </commandset>
michael@0 37
michael@0 38 <popupset>
michael@0 39 <!-- The panel has level="top" to ensure that it is never hidden by the
michael@0 40 taskbar on Windows. See bug 672365. For accessibility to screen
michael@0 41 readers, we use a label on the panel instead of the anchor because the
michael@0 42 panel can also be displayed without an anchor. -->
michael@0 43 <panel id="downloadsPanel"
michael@0 44 aria-label="&downloads.title;"
michael@0 45 role="group"
michael@0 46 type="arrow"
michael@0 47 orient="vertical"
michael@0 48 level="top"
michael@0 49 onpopupshown="DownloadsPanel.onPopupShown(event);"
michael@0 50 onpopuphidden="DownloadsPanel.onPopupHidden(event);">
michael@0 51 <!-- The following popup menu should be a child of the panel element,
michael@0 52 otherwise flickering may occur when the cursor is moved over the area
michael@0 53 of a disabled menu item that overlaps the panel. See bug 492960. -->
michael@0 54 <menupopup id="downloadsContextMenu"
michael@0 55 class="download-state">
michael@0 56 <menuitem command="downloadsCmd_pauseResume"
michael@0 57 class="downloadPauseMenuItem"
michael@0 58 label="&cmd.pause.label;"
michael@0 59 accesskey="&cmd.pause.accesskey;"/>
michael@0 60 <menuitem command="downloadsCmd_pauseResume"
michael@0 61 class="downloadResumeMenuItem"
michael@0 62 label="&cmd.resume.label;"
michael@0 63 accesskey="&cmd.resume.accesskey;"/>
michael@0 64 <menuitem command="downloadsCmd_cancel"
michael@0 65 class="downloadCancelMenuItem"
michael@0 66 label="&cmd.cancel.label;"
michael@0 67 accesskey="&cmd.cancel.accesskey;"/>
michael@0 68 <menuitem command="cmd_delete"
michael@0 69 class="downloadRemoveFromHistoryMenuItem"
michael@0 70 label="&cmd.removeFromHistory.label;"
michael@0 71 accesskey="&cmd.removeFromHistory.accesskey;"/>
michael@0 72 <menuitem command="downloadsCmd_show"
michael@0 73 class="downloadShowMenuItem"
michael@0 74 #ifdef XP_MACOSX
michael@0 75 label="&cmd.showMac.label;"
michael@0 76 accesskey="&cmd.showMac.accesskey;"
michael@0 77 #else
michael@0 78 label="&cmd.show.label;"
michael@0 79 accesskey="&cmd.show.accesskey;"
michael@0 80 #endif
michael@0 81 />
michael@0 82
michael@0 83 <menuseparator class="downloadCommandsSeparator"/>
michael@0 84
michael@0 85 <menuitem command="downloadsCmd_openReferrer"
michael@0 86 label="&cmd.goToDownloadPage.label;"
michael@0 87 accesskey="&cmd.goToDownloadPage.accesskey;"/>
michael@0 88 <menuitem command="downloadsCmd_copyLocation"
michael@0 89 label="&cmd.copyDownloadLink.label;"
michael@0 90 accesskey="&cmd.copyDownloadLink.accesskey;"/>
michael@0 91
michael@0 92 <menuseparator/>
michael@0 93
michael@0 94 <menuitem command="downloadsCmd_clearList"
michael@0 95 label="&cmd.clearList.label;"
michael@0 96 accesskey="&cmd.clearList.accesskey;"/>
michael@0 97 </menupopup>
michael@0 98
michael@0 99 <richlistbox id="downloadsListBox"
michael@0 100 class="plain"
michael@0 101 flex="1"
michael@0 102 context="downloadsContextMenu"
michael@0 103 onmouseover="DownloadsView.onDownloadMouseOver(event);"
michael@0 104 onmouseout="DownloadsView.onDownloadMouseOut(event);"
michael@0 105 oncontextmenu="DownloadsView.onDownloadContextMenu(event);"
michael@0 106 ondragstart="DownloadsView.onDownloadDragStart(event);"/>
michael@0 107 <description id="emptyDownloads"
michael@0 108 mousethrough="always">
michael@0 109 &downloadsPanelEmpty.label;
michael@0 110 </description>
michael@0 111
michael@0 112 <vbox id="downloadsFooter">
michael@0 113 <hbox id="downloadsSummary"
michael@0 114 align="center"
michael@0 115 orient="horizontal"
michael@0 116 onkeydown="DownloadsSummary.onKeyDown(event);"
michael@0 117 onclick="DownloadsSummary.onClick(event);">
michael@0 118 <image class="downloadTypeIcon" />
michael@0 119 <vbox>
michael@0 120 <description id="downloadsSummaryDescription"
michael@0 121 style="min-width: &downloadsSummary.minWidth2;"/>
michael@0 122 <progressmeter id="downloadsSummaryProgress"
michael@0 123 class="downloadProgress"
michael@0 124 min="0"
michael@0 125 max="100"
michael@0 126 mode="normal" />
michael@0 127 <description id="downloadsSummaryDetails"
michael@0 128 style="width: &downloadDetails.width;"
michael@0 129 crop="end"/>
michael@0 130 </vbox>
michael@0 131 </hbox>
michael@0 132
michael@0 133 <button id="downloadsHistory"
michael@0 134 class="plain"
michael@0 135 label="&downloadsHistory.label;"
michael@0 136 accesskey="&downloadsHistory.accesskey;"
michael@0 137 oncommand="DownloadsPanel.showDownloadsHistory();"/>
michael@0 138 </vbox>
michael@0 139 </panel>
michael@0 140 </popupset>
michael@0 141 </overlay>

mercurial