downloadsViewOverlay.xul 1.6 KB

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