Merge pull request #3124 from mduan/issue3118-1

Update loading bar during onprogress of range requests
This commit is contained in:
Yury Delendik 2013-05-03 16:51:32 -07:00
commit a081c2d0f1
4 changed files with 56 additions and 8 deletions

View file

@ -479,6 +479,12 @@ var RangedChromeActions = (function RangedChromeActionsClosure() {
begin: args.begin,
chunk: args.chunk
}, '*');
},
onProgress: function RangedChromeActions_onProgress(evt) {
domWindow.postMessage({
pdfjsLoadAction: 'rangeProgress',
loaded: evt.loaded,
}, '*');
}
});
};