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.

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

mercurial