downloadsPanel.inc.xhtml (9083B)
1 <!-- This Source Code Form is subject to the terms of the Mozilla Public 2 - License, v. 2.0. If a copy of the MPL was not distributed with this 3 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 4 5 <!-- The commands are handled by DownloadsPanel.handleEvent --> 6 <commandset commandupdater="true" events="richlistbox-select" 7 id="downloadPanelCommands"> 8 <command id="downloadsCmd_doDefault" /> 9 <command id="downloadsCmd_pauseResume" /> 10 <command id="downloadsCmd_cancel" /> 11 <command id="downloadsCmd_unblock" /> 12 <command id="downloadsCmd_chooseUnblock" /> 13 <command id="downloadsCmd_unblockAndOpen" /> 14 <command id="downloadsCmd_unblockAndSave" /> 15 <command id="downloadsCmd_confirmBlock" /> 16 <command id="downloadsCmd_open" /> 17 <command id="downloadsCmd_open:current" /> 18 <command id="downloadsCmd_open:tab" /> 19 <command id="downloadsCmd_open:tabshifted" /> 20 <command id="downloadsCmd_open:window" /> 21 <command id="downloadsCmd_show" /> 22 <command id="downloadsCmd_retry" /> 23 <command id="downloadsCmd_openReferrer" /> 24 <command id="downloadsCmd_copyLocation" /> 25 <command id="downloadsCmd_clearList" /> 26 <command id="downloadsCmd_openInSystemViewer" /> 27 <command id="downloadsCmd_alwaysOpenInSystemViewer" /> 28 <command id="downloadsCmd_alwaysOpenSimilarFiles" /> 29 <command id="downloadsCmd_deleteFile" /> 30 <command id="downloadsCmd_deletePrivate"/> 31 <command id="downloadsCmd_dismissDeletePrivate"/> 32 </commandset> 33 34 <!-- For accessibility to screen readers, we use a label on the panel instead 35 of the anchor because the panel can also be displayed without an anchor. --> 36 <panel id="downloadsPanel" 37 data-l10n-id="downloads-panel" 38 class="cui-widget-panel panel-no-padding" 39 role="group" 40 type="arrow" 41 orient="vertical" 42 hidden="true"> 43 44 <linkset> 45 <html:link rel="localization" href="browser/downloads.ftl" /> 46 </linkset> 47 48 <!-- The following popup menu should be a child of the panel element, 49 otherwise flickering may occur when the cursor is moved over the area 50 of a disabled menu item that overlaps the panel. See bug 492960. --> 51 <menupopup id="downloadsContextMenu" 52 class="download-state"> 53 <menuitem command="downloadsCmd_pauseResume" 54 class="downloadPauseMenuItem" 55 data-l10n-id="downloads-cmd-pause"/> 56 <menuitem command="downloadsCmd_pauseResume" 57 class="downloadResumeMenuItem" 58 data-l10n-id="downloads-cmd-resume"/> 59 <menuitem command="downloadsCmd_unblock" 60 class="downloadUnblockMenuItem" 61 data-l10n-id="downloads-cmd-unblock"/> 62 <menuitem command="downloadsCmd_openInSystemViewer" 63 class="downloadUseSystemDefaultMenuItem" 64 data-l10n-id="downloads-cmd-use-system-default"/> 65 <menuitem command="downloadsCmd_alwaysOpenInSystemViewer" 66 type="checkbox" 67 class="downloadAlwaysUseSystemDefaultMenuItem" 68 data-l10n-id="downloads-cmd-always-use-system-default"/> 69 <menuitem command="downloadsCmd_alwaysOpenSimilarFiles" 70 type="checkbox" 71 class="downloadAlwaysOpenSimilarFilesMenuItem" 72 data-l10n-id="downloads-cmd-always-open-similar-files"/> 73 <menuitem command="downloadsCmd_show" 74 class="downloadShowMenuItem" 75 data-l10n-id="downloads-cmd-show-menuitem-2"/> 76 77 <menuseparator class="downloadCommandsSeparator"/> 78 79 <menuitem command="downloadsCmd_openReferrer" 80 class="downloadOpenReferrerMenuItem" 81 data-l10n-id="downloads-cmd-go-to-download-page"/> 82 <menuitem command="downloadsCmd_copyLocation" 83 class="downloadCopyLocationMenuItem" 84 data-l10n-id="downloads-cmd-copy-download-link"/> 85 86 <menuseparator/> 87 88 <menuitem command="downloadsCmd_deleteFile" 89 class="downloadDeleteFileMenuItem" 90 data-l10n-id="downloads-cmd-delete-file"/> 91 <menuitem command="cmd_delete" 92 class="downloadRemoveFromHistoryMenuItem" 93 data-l10n-id="downloads-cmd-remove-from-history"/> 94 <menuitem command="downloadsCmd_clearList" 95 data-l10n-id="downloads-cmd-clear-list"/> 96 <menuitem command="downloadsCmd_clearDownloads" 97 hidden="true" 98 data-l10n-id="downloads-cmd-clear-downloads"/> 99 </menupopup> 100 101 <panelmultiview id="downloadsPanel-multiView" 102 mainViewId="downloadsPanel-mainView" 103 disablekeynav="true"> 104 105 <panelview id="downloadsPanel-mainView"> 106 <!-- We add a wrapper around the #downloadsPanelTorWarning and give it the 107 - same Fluent ID as #downloadsListBox. This Fluent message allows 108 - Firefox localisers to set the width of the #downloadsListBox using 109 - the style attribute. We want the same width set for our downloads 110 - warning. Otherwise the warning will occupy its max-content width. 111 - NOTE: We require a wrapper element since #downloadsPanelTorWarning 112 - needs its own Fluent attributes. 113 - NOTE: This only works if #downloadsPanelTorWarningWrapper and 114 - #downloadsListBox share the same padding relative to their common 115 - ancestor. 116 - See tor-browser#43312. --> 117 <html:div 118 id="downloadsPanelTorWarningWrapper" 119 data-l10n-id="downloads-panel-items" 120 data-l10n-attrs="style" 121 > 122 <html:moz-message-bar id="downloadsPanelTorWarning"> 123 </html:moz-message-bar> 124 </html:div> 125 <vbox class="panel-view-body-unscrollable"> 126 <richlistbox id="downloadsListBox" 127 data-l10n-id="downloads-panel-items" 128 data-l10n-attrs="style" 129 context="downloadsContextMenu"/> 130 <description id="emptyDownloads" 131 data-l10n-id="downloads-panel-empty"/> 132 </vbox> 133 <vbox id="downloadsFooter"> 134 <stack> 135 <hbox id="downloadsSummary" 136 align="center" 137 orient="horizontal"> 138 <image class="downloadTypeIcon" /> 139 <vbox pack="center" 140 flex="1" 141 class="downloadContainer"> 142 <description id="downloadsSummaryDescription"/> 143 <html:progress id="downloadsSummaryProgress" 144 class="downloadProgress" 145 max="100"/> 146 <description id="downloadsSummaryDetails" 147 crop="end"/> 148 </vbox> 149 </hbox> 150 <vbox id="downloadsFooterButtons"> 151 <toolbarseparator /> 152 <button id="downloadsHistory" 153 data-l10n-id="downloads-history" 154 class="downloadsPanelFooterButton subviewbutton panel-subview-footer-button toolbarbutton-1" 155 flex="1" 156 pack="start"/> 157 </vbox> 158 </stack> 159 </vbox> 160 </panelview> 161 162 <panelview id="downloadsPanel-blockedSubview" 163 data-l10n-id="downloads-details" 164 class="PanelUI-subView"> 165 <vbox class="panel-view-body-unscrollable"> 166 <hbox class="downloadsPanel-blockedSubview-title-box"> 167 <description id="downloadsPanel-blockedSubview-title"/> 168 <image class="downloadsPanel-blockedSubview-image"/> 169 </hbox> 170 <description id="downloadsPanel-blockedSubview-details1"/> 171 <description id="downloadsPanel-blockedSubview-details2"/> 172 </vbox> 173 <html:moz-button-group id="downloadsPanel-blockedSubview-buttons" 174 class="panel-footer"> 175 <button id="downloadsPanel-blockedSubview-unblockButton" 176 class="footer-button" 177 command="downloadsCmd_unblockAndOpen"/> 178 <button id="downloadsPanel-blockedSubview-deleteButton" 179 class="footer-button" 180 default="true"/> 181 </html:moz-button-group> 182 </panelview> 183 184 <panelview id="downloadsPanel-privateBrowsing" 185 class="PanelUI-subview" 186 data-l10n-id="downloads-private-browsing-details" 187 no-panelview-transition="true" 188 has-custom-header="true" 189 no-back-button="true"> 190 <box class="panel-header panel-header-with-additional-element"> 191 <html:h1> 192 <html:span/> 193 </html:h1> 194 </box> 195 <vbox class="panel-view-body-unscrollable"> 196 <description data-l10n-id="downloads-private-browsing-message"/> 197 </vbox> 198 <html:moz-button-group 199 class="panel-footer"> 200 <button class="footer-button secondary" 201 command="downloadsCmd_deletePrivate" 202 data-l10n-id="downloads-private-browsing-delete-button"/> 203 <button class="footer-button primary" 204 default="true" 205 command="downloadsCmd_dismissDeletePrivate" 206 data-l10n-id="downloads-private-browsing-accept-button"/> 207 </html:moz-button-group> 208 </panelview> 209 </panelmultiview> 210 211 </panel>