Reimplement downloadItem.getFilename API.
authorHaojian Wu <hokein.wu@gmail.com>
Thu, 24 Sep 2015 08:31:41 +0000 (16:31 +0800)
committerHaojian Wu <hokein.wu@gmail.com>
Thu, 24 Sep 2015 08:39:02 +0000 (16:39 +0800)
commit1879392c7baaef8c51e2e90b6cce125b94ade572
tree718708931453b9272c4060ce5cf48e17c54e41a8
parent0861d5d44bb0e2692535aa63cb46eed303524ac4
Reimplement downloadItem.getFilename API.

Previously, the suggested file name(Always 'empty') returned by
'download_item->GetSuggestedFilename' is not the same with the default one saved
in local disk.

The patch reimplement this API allowing it to return the default file name, which
is more expected from user.
atom/browser/api/atom_api_download_item.cc
atom/browser/api/atom_api_download_item.h
atom/browser/api/lib/app.coffee
docs/api/download-item.md
spec/api-session-spec.coffee
spec/static/main.js