[Pkg-javascript-commits] [pdf.js] 138/204: Merge pull request #5295 from yurydelendik/pdfviewer

David Prévot taffit at moszumanska.debian.org
Sat Oct 25 18:50:43 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 1145eb8c093dc0b12c3ad8573532ac701af0249a
Merge: 744c8e8 44779f1
Author: Brendan Dahl <brendan.dahl at gmail.com>
Date:   Mon Sep 29 15:23:35 2014 -0700

    Merge pull request #5295 from yurydelendik/pdfviewer
    
    Refactoring to move page display code into separate class

 web/chromecom.js                 |   12 +-
 web/document_attachments_view.js |   10 +-
 web/document_outline_view.js     |   15 +-
 web/document_properties.js       |   12 +-
 web/interfaces.js                |   81 +++
 web/page_view.js                 |  160 ++----
 web/pdf_find_controller.js       |   25 +-
 web/pdf_history.js               |   24 +-
 web/pdf_rendering_queue.js       |  176 +++++++
 web/pdf_viewer.js                |  571 +++++++++++++++++++++
 web/presentation_mode.js         |   40 +-
 web/secondary_toolbar.js         |   14 +-
 web/text_layer_builder.js        |   12 +
 web/thumbnail_view.js            |  164 +++++-
 web/ui_utils.js                  |   93 ++++
 web/viewer.html                  |    4 +-
 web/viewer.js                    | 1048 +++++++++++++-------------------------
 17 files changed, 1601 insertions(+), 860 deletions(-)

diff --cc web/viewer.js
index 7cb31cc,80b8a53..87416c8
--- a/web/viewer.js
+++ b/web/viewer.js
@@@ -509,17 -371,8 +371,12 @@@ var PDFViewerApplication = 
      return bar;
    },
  
-   get isHorizontalScrollbarEnabled() {
-     return (PresentationMode.active ? false :
-             (this.container.scrollWidth > this.container.clientWidth));
-   },
- 
  //#if (FIREFOX || MOZCENTRAL)
    initPassiveLoading: function pdfViewInitPassiveLoading() {
 +    var pdfDataRangeTransportReadyResolve;
 +    var pdfDataRangeTransportReady = new Promise(function (resolve) {
 +      pdfDataRangeTransportReadyResolve = resolve;
 +    });
      var pdfDataRangeTransport = {
        rangeListeners: [],
        progressListeners: [],
@@@ -601,11 -432,8 +459,11 @@@
          case 'rangeProgress':
            pdfDataRangeTransport.onDataProgress(args.loaded);
            break;
 +        case 'progressiveRead':
 +          pdfDataRangeTransport.onDataProgressiveRead(args.chunk);
 +          break;
          case 'progress':
-           PDFView.progress(args.loaded / args.total);
+           PDFViewerApplication.progress(args.loaded / args.total);
            break;
          case 'complete':
            if (!args.data) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list