|
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 |
|
5 <?xul-overlay href="chrome://browser/content/downloads/allDownloadsViewOverlay.xul"?> |
|
6 |
|
7 <!DOCTYPE overlay [ |
|
8 <!ENTITY % downloadsDTD SYSTEM "chrome://browser/locale/downloads/downloads.dtd"> |
|
9 %downloadsDTD; |
|
10 ]> |
|
11 |
|
12 <overlay id="downloadsViewOverlay" |
|
13 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
|
14 |
|
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; |
|
20 |
|
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> |
|
26 |
|
27 <window id="places"> |
|
28 <commandset id="downloadCommands"/> |
|
29 <menupopup id="downloadsContextMenu"/> |
|
30 </window> |
|
31 |
|
32 <deck id="placesViewsDeck"> |
|
33 <richlistbox id="downloadsRichListBox"/> |
|
34 </deck> |
|
35 |
|
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> |
|
46 |
|
47 </overlay> |