On 28/08/2013 19.17, sam foster wrote:
> However, although Downloads.jsm itself is importable from toolkit,
> DownloadsCommon.jsm - which implements a lot of the goodies around it - is
> not. Looking though it I see only a couple of methods and
> specific-to-desktop-UI references that would prevent it moving to toolkit.
> Would you be interested in refactoring a little to enable it to move?
Most of the code and objects from DownloadsCommon.jsm will be completely
removed - ideally, up to the point where we have only Desktop front-end
code there. For example, what is currently a DownloadDataItem will
become a plain Download object.
We want to implement features like the DownloadSummary directly in
Downloads.jsm, as they make sense for all platforms:
Downloads.getPublicDownloadSummary().then(summary => summary.addView({
onSummaryChanged: function () {
setUIProgressElement(summary.progress);
},
}));
> I happy to help where I can.
> Drop into #windev or ping me (sfoster) in #fx-team when you can to discuss.
I'd _really_ welcome your help here! We can talk about the needs of the
Metro browser and what we can each do to help.
Cheers,
Paolo
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform