forked from mirrors/gecko-dev
		
	 dc104f14fc
			
		
	
	
		dc104f14fc
		
	
	
	
	
		
			
			Differential Revision: https://phabricator.services.mozilla.com/D53348 --HG-- extra : moz-landing-system : lando
		
			
				
	
	
		
			199 lines
		
	
	
	
		
			8.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			199 lines
		
	
	
	
		
			8.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!-- 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/. -->
 | |
| 
 | |
| #include downloadsStrings.inc.xhtml
 | |
| 
 | |
| <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_unblock"
 | |
|            oncommand="goDoCommand('downloadsCmd_unblock')"/>
 | |
|   <command id="downloadsCmd_chooseUnblock"
 | |
|            oncommand="goDoCommand('downloadsCmd_chooseUnblock')"/>
 | |
|   <command id="downloadsCmd_unblockAndOpen"
 | |
|            oncommand="goDoCommand('downloadsCmd_unblockAndOpen')"/>
 | |
|   <command id="downloadsCmd_confirmBlock"
 | |
|            oncommand="goDoCommand('downloadsCmd_confirmBlock')"/>
 | |
|   <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>
 | |
| 
 | |
| <!-- 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;"
 | |
|        class="panel-no-padding"
 | |
|        role="group"
 | |
|        type="arrow"
 | |
|        orient="vertical"
 | |
|        level="top"
 | |
|        onpopupshown="DownloadsPanel.onPopupShown(event);"
 | |
|        onpopuphidden="DownloadsPanel.onPopupHidden(event);"
 | |
|        hidden="true">
 | |
|   <!-- 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"
 | |
|              onpopupshown="DownloadsView.onContextPopupShown(event);"
 | |
|              onpopuphidden="DownloadsView.onContextPopupHidden(event);"
 | |
|              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_unblock"
 | |
|               class="downloadUnblockMenuItem"
 | |
|               label="&cmd.unblock2.label;"
 | |
|               accesskey="&cmd.unblock2.accesskey;"/>
 | |
|     <menuitem command="downloadsCmd_show"
 | |
|               class="downloadShowMenuItem"
 | |
| #ifdef XP_MACOSX
 | |
|               label="&cmd.showMac.label;"
 | |
|               accesskey="&cmd.showMac.accesskey;"
 | |
| #else
 | |
|               label="&cmd.show.label;"
 | |
|               accesskey="&cmd.show.accesskey;"
 | |
| #endif
 | |
|               />
 | |
| 
 | |
|     <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="cmd_delete"
 | |
|               class="downloadRemoveFromHistoryMenuItem"
 | |
|               label="&cmd.removeFromHistory.label;"
 | |
|               accesskey="&cmd.removeFromHistory.accesskey;"/>
 | |
|     <menuitem command="downloadsCmd_clearList"
 | |
|               label="&cmd.clearList2.label;"
 | |
|               accesskey="&cmd.clearList2.accesskey;"/>
 | |
|     <menuitem command="downloadsCmd_clearDownloads"
 | |
|               hidden="true"
 | |
|               label="&cmd.clearDownloads.label;"/>
 | |
|   </menupopup>
 | |
| 
 | |
|   <panelmultiview id="downloadsPanel-multiView"
 | |
|                   mainViewId="downloadsPanel-mainView">
 | |
| 
 | |
|     <panelview id="downloadsPanel-mainView">
 | |
|       <vbox class="panel-view-body-unscrollable">
 | |
|         <richlistbox id="downloadsListBox"
 | |
|                      style="width: &downloads.width;"
 | |
|                      context="downloadsContextMenu"
 | |
|                      onmouseover="DownloadsView.onDownloadMouseOver(event);"
 | |
|                      onmouseout="DownloadsView.onDownloadMouseOut(event);"
 | |
|                      oncontextmenu="DownloadsView.onDownloadContextMenu(event);"
 | |
|                      ondragstart="DownloadsView.onDownloadDragStart(event);"/>
 | |
|         <description id="emptyDownloads"
 | |
|                      value="&downloadsPanelEmpty.label;"/>
 | |
|       </vbox>
 | |
|       <vbox id="downloadsFooter">
 | |
|         <stack>
 | |
|           <hbox id="downloadsSummary"
 | |
|                 align="center"
 | |
|                 orient="horizontal"
 | |
|                 onkeydown="DownloadsSummary.onKeyDown(event);"
 | |
|                 onclick="DownloadsSummary.onClick(event);">
 | |
|             <image class="downloadTypeIcon" />
 | |
|             <vbox pack="center"
 | |
|                   flex="1"
 | |
|                   class="downloadContainer">
 | |
|               <description id="downloadsSummaryDescription"/>
 | |
|               <html:progress id="downloadsSummaryProgress"
 | |
|                              class="downloadProgress"
 | |
|                              max="100"/>
 | |
|               <description id="downloadsSummaryDetails"
 | |
|                            crop="end"/>
 | |
|             </vbox>
 | |
|           </hbox>
 | |
|           <hbox id="downloadsFooterButtons"
 | |
|                 class="panel-footer">
 | |
|             <button id="downloadsHistory"
 | |
|                     class="downloadsPanelFooterButton"
 | |
|                     label="&downloadsHistory.label;"
 | |
|                     accesskey="&downloadsHistory.accesskey;"
 | |
|                     flex="1"
 | |
|                     oncommand="DownloadsPanel.showDownloadsHistory();"
 | |
|                     pack="start"/>
 | |
|           </hbox>
 | |
|         </stack>
 | |
|       </vbox>
 | |
|     </panelview>
 | |
| 
 | |
|     <panelview id="downloadsPanel-blockedSubview"
 | |
|                descriptionheightworkaround="true"
 | |
|                class="PanelUI-subView"
 | |
|                title="&downloadDetails.label;">
 | |
|       <vbox class="panel-view-body-unscrollable">
 | |
|         <description id="downloadsPanel-blockedSubview-title"/>
 | |
|         <description id="downloadsPanel-blockedSubview-details1"/>
 | |
|         <description id="downloadsPanel-blockedSubview-details2"/>
 | |
|       </vbox>
 | |
|       <hbox id="downloadsPanel-blockedSubview-buttons"
 | |
|             class="panel-footer"
 | |
|             align="stretch">
 | |
|         <button id="downloadsPanel-blockedSubview-openButton"
 | |
|                 class="downloadsPanelFooterButton"
 | |
|                 command="downloadsCmd_unblockAndOpen"
 | |
|                 flex="1"/>
 | |
|         <button id="downloadsPanel-blockedSubview-deleteButton"
 | |
|                 class="downloadsPanelFooterButton"
 | |
|                 oncommand="DownloadsBlockedSubview.confirmBlock();"
 | |
|                 default="true"
 | |
|                 flex="1"/>
 | |
|       </hbox>
 | |
|     </panelview>
 | |
| 
 | |
|     <panelview id="PanelUI-downloads" class="PanelUI-subView">
 | |
|       <vbox class="panel-subview-body">
 | |
|         <toolbarbutton id="appMenu-library-downloads-show-button"
 | |
|                        class="subviewbutton subviewbutton-iconic"
 | |
|                        label="&cmd.showDownloads.label;"
 | |
|                        closemenu="none"
 | |
|                        oncommand="DownloadsSubview.onShowDownloads(this);"/>
 | |
|         <toolbarseparator/>
 | |
|         <toolbaritem id="panelMenu_downloadsMenu"
 | |
|                      orient="vertical"
 | |
|                      smoothscroll="false"
 | |
|                      flatList="true"
 | |
|                      tooltip="bhTooltip">
 | |
|           <!-- downloads menu items will go here -->
 | |
|         </toolbaritem>
 | |
|       </vbox>
 | |
|       <toolbarbutton id="PanelUI-downloadsMore"
 | |
|                      class="panel-subview-footer subviewbutton"
 | |
|                      label="&downloadsHistory.label;"
 | |
|                      oncommand="BrowserDownloadsUI(); CustomizableUI.hidePanelForNode(this);"/>
 | |
|     </panelview>
 | |
| 
 | |
|   </panelmultiview>
 | |
| 
 | |
| </panel>
 |