Refactor InputStream API.

This commit is contained in:
Michael Jumper
2014-02-28 10:03:01 -08:00
parent 4478e91c8a
commit beb9e5c684
3 changed files with 220 additions and 47 deletions

View File

@@ -815,7 +815,9 @@ GuacUI.Client.attach = function(guac) {
}
guac.onfile = function(filename, stream) {
guac.onfile = function(mimetype, filename) {
var stream = new Guacamole.BlobInputStream(mimetype);
var download = new GuacUI.Download(filename);
download.updateProgress(getSizeString(0));
@@ -843,6 +845,8 @@ GuacUI.Client.attach = function(guac) {
GuacUI.Client.notification_area.removeChild(download.getElement());
};
return stream;
};
/*