1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/components/places/content/downloadsViewOverlay.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,47 @@ 1.4 +<!-- This Source Code Form is subject to the terms of the Mozilla Public 1.5 + - License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 1.7 + 1.8 +<?xul-overlay href="chrome://browser/content/downloads/allDownloadsViewOverlay.xul"?> 1.9 + 1.10 +<!DOCTYPE overlay [ 1.11 +<!ENTITY % downloadsDTD SYSTEM "chrome://browser/locale/downloads/downloads.dtd"> 1.12 +%downloadsDTD; 1.13 +]> 1.14 + 1.15 +<overlay id="downloadsViewOverlay" 1.16 + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 1.17 + 1.18 + <script type="application/javascript"><![CDATA[ 1.19 + const DOWNLOADS_QUERY = "place:transition=" + 1.20 + Components.interfaces.nsINavHistoryService.TRANSITION_DOWNLOAD + 1.21 + "&sort=" + 1.22 + Components.interfaces.nsINavHistoryQueryOptions.SORT_BY_DATE_DESCENDING; 1.23 + 1.24 + ContentArea.setContentViewForQueryString(DOWNLOADS_QUERY, 1.25 + function() new DownloadsPlacesView(document.getElementById("downloadsRichListBox"), false), 1.26 + { showDetailsPane: false, 1.27 + toolbarSet: "back-button, forward-button, organizeButton, clearDownloadsButton, libraryToolbarSpacer, searchFilter" }); 1.28 + ]]></script> 1.29 + 1.30 + <window id="places"> 1.31 + <commandset id="downloadCommands"/> 1.32 + <menupopup id="downloadsContextMenu"/> 1.33 + </window> 1.34 + 1.35 + <deck id="placesViewsDeck"> 1.36 + <richlistbox id="downloadsRichListBox"/> 1.37 + </deck> 1.38 + 1.39 + <toolbar id="placesToolbar"> 1.40 + <toolbarbutton id="clearDownloadsButton" 1.41 +#ifdef XP_MACOSX 1.42 + class="tabbable" 1.43 +#endif 1.44 + insertbefore="libraryToolbarSpacer" 1.45 + label="&clearDownloadsButton.label;" 1.46 + command="downloadsCmd_clearDownloads" 1.47 + tooltiptext="&clearDownloadsButton.tooltip;"/> 1.48 + </toolbar> 1.49 + 1.50 +</overlay>