forked from mirrors/gecko-dev
This overlay was used in two places: places.xul and contentAreaDownloadsView.xul. Move the commandset, menuppop and downloadsRichListBox into include files. Inline the scripts and DTDs. MozReview-Commit-ID: LroiQlRTE2T --HG-- rename : browser/components/downloads/content/allDownloadsViewOverlay.js => browser/components/downloads/content/allDownloadsView.js rename : browser/components/downloads/content/allDownloadsViewOverlay.xul => browser/components/downloads/content/downloadsCommands.inc.xul rename : browser/components/downloads/content/allDownloadsViewOverlay.xul => browser/components/downloads/content/downloadsContextMenu.inc.xul rename : browser/components/downloads/content/allDownloadsViewOverlay.xul => browser/components/downloads/content/downloadsRichListBox.inc.xul rename : browser/themes/linux/downloads/allDownloadsViewOverlay.css => browser/themes/linux/downloads/allDownloadsView.css rename : browser/themes/osx/downloads/allDownloadsViewOverlay.css => browser/themes/osx/downloads/allDownloadsView.css rename : browser/themes/shared/downloads/allDownloadsViewOverlay.inc.css => browser/themes/shared/downloads/allDownloadsView.inc.css rename : browser/themes/windows/downloads/allDownloadsViewOverlay.css => browser/themes/windows/downloads/allDownloadsView.css extra : rebase_source : 978d2ddd1e177374b0fc354ca46f11bfc447fe59
19 lines
761 B
JavaScript
19 lines
761 B
JavaScript
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
/* import-globals-from allDownloadsView.js */
|
|
|
|
ChromeUtils.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
|
|
|
|
var ContentAreaDownloadsView = {
|
|
init() {
|
|
let view = new DownloadsPlacesView(document.getElementById("downloadsRichListBox"));
|
|
// Do not display the Places downloads in private windows
|
|
if (!PrivateBrowsingUtils.isContentWindowPrivate(window)) {
|
|
view.place = "place:transition=7&sort=4";
|
|
}
|
|
// Set focus to Downloads list once it is created
|
|
document.getElementById("downloadsRichListBox").focus();
|
|
},
|
|
};
|