browser/components/places/content/downloadsViewOverlay.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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/. -->
     5 <?xul-overlay href="chrome://browser/content/downloads/allDownloadsViewOverlay.xul"?>
     7 <!DOCTYPE overlay [
     8 <!ENTITY % downloadsDTD SYSTEM "chrome://browser/locale/downloads/downloads.dtd">
     9 %downloadsDTD;
    10 ]>
    12 <overlay id="downloadsViewOverlay"
    13          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    15   <script type="application/javascript"><![CDATA[
    16     const DOWNLOADS_QUERY = "place:transition=" +
    17       Components.interfaces.nsINavHistoryService.TRANSITION_DOWNLOAD +
    18       "&sort=" +
    19       Components.interfaces.nsINavHistoryQueryOptions.SORT_BY_DATE_DESCENDING;
    21     ContentArea.setContentViewForQueryString(DOWNLOADS_QUERY,
    22       function() new DownloadsPlacesView(document.getElementById("downloadsRichListBox"), false),
    23       { showDetailsPane: false,
    24         toolbarSet: "back-button, forward-button, organizeButton, clearDownloadsButton, libraryToolbarSpacer, searchFilter" });
    25   ]]></script>
    27   <window id="places">
    28     <commandset id="downloadCommands"/>
    29     <menupopup id="downloadsContextMenu"/>
    30   </window>
    32   <deck id="placesViewsDeck">
    33     <richlistbox id="downloadsRichListBox"/>
    34   </deck>
    36   <toolbar id="placesToolbar">
    37     <toolbarbutton id="clearDownloadsButton"
    38 #ifdef XP_MACOSX
    39                    class="tabbable"
    40 #endif
    41                    insertbefore="libraryToolbarSpacer"
    42                    label="&clearDownloadsButton.label;"
    43                    command="downloadsCmd_clearDownloads"
    44                    tooltiptext="&clearDownloadsButton.tooltip;"/>
    45   </toolbar>
    47 </overlay>

mercurial