[Pkg-javascript-commits] [pdf.js] 85/119: Rename DocumentProperties to PDFDocumentProperties

David Prévot taffit at moszumanska.debian.org
Wed May 13 21:27:44 UTC 2015


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

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

commit ca8f842d8785088c9d65333833a6def2768a0458
Author: Tim van der Meij <timvandermeij at gmail.com>
Date:   Fri Apr 24 20:35:11 2015 +0200

    Rename DocumentProperties to PDFDocumentProperties
---
 ...cument_properties.js => pdf_document_properties.js} |  2 +-
 web/viewer.html                                        |  2 +-
 web/viewer.js                                          | 18 +++++++++---------
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/web/document_properties.js b/web/pdf_document_properties.js
similarity index 99%
rename from web/document_properties.js
rename to web/pdf_document_properties.js
index 810a627..cd862c5 100644
--- a/web/document_properties.js
+++ b/web/pdf_document_properties.js
@@ -18,7 +18,7 @@
 
 'use strict';
 
-var DocumentProperties = {
+var PDFDocumentProperties = {
   overlayName: null,
   rawFileSize: 0,
 
diff --git a/web/viewer.html b/web/viewer.html
index 70144eb..e7dad91 100644
--- a/web/viewer.html
+++ b/web/viewer.html
@@ -86,7 +86,7 @@ http://sourceforge.net/adobe/cmap/wiki/License/
     <script src="hand_tool.js"></script>
     <script src="overlay_manager.js"></script>
     <script src="password_prompt.js"></script>
-    <script src="document_properties.js"></script>
+    <script src="pdf_document_properties.js"></script>
 <!--#endif-->
 
 <!--#if !MINIFIED -->
diff --git a/web/viewer.js b/web/viewer.js
index 33e11f1..7308976 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -19,7 +19,7 @@
            PDFHistory, Preferences, SidebarView, ViewHistory, Stats,
            PDFThumbnailViewer, URL, noContextMenuHandler, SecondaryToolbar,
            PasswordPrompt, PDFPresentationMode, HandTool, Promise,
-           DocumentProperties, PDFOutlineView, PDFAttachmentView,
+           PDFDocumentProperties, PDFOutlineView, PDFAttachmentView,
            OverlayManager, PDFFindController, PDFFindBar, getVisibleElements,
            watchScroll, PDFViewer, PDFRenderingQueue, PresentationModeState,
            RenderingStates, DEFAULT_SCALE, UNKNOWN_SCALE,
@@ -88,7 +88,7 @@ var mozL10n = document.mozL10n || document.webL10n;
 //#include hand_tool.js
 //#include overlay_manager.js
 //#include password_prompt.js
-//#include document_properties.js
+//#include pdf_document_properties.js
 //#include pdf_viewer.js
 //#include pdf_thumbnail_viewer.js
 //#include pdf_outline_view.js
@@ -185,7 +185,7 @@ var PDFViewerApplication = {
       lastPage: document.getElementById('lastPage'),
       pageRotateCw: document.getElementById('pageRotateCw'),
       pageRotateCcw: document.getElementById('pageRotateCcw'),
-      documentProperties: DocumentProperties,
+      documentProperties: PDFDocumentProperties,
       documentPropertiesButton: document.getElementById('documentProperties')
     });
 
@@ -216,7 +216,7 @@ var PDFViewerApplication = {
       passwordCancel: document.getElementById('passwordCancel')
     });
 
-    DocumentProperties.initialize({
+    PDFDocumentProperties.initialize({
       overlayName: 'documentPropertiesOverlay',
       closeButton: document.getElementById('documentPropertiesClose'),
       fileNameField: document.getElementById('fileNameField'),
@@ -410,7 +410,7 @@ var PDFViewerApplication = {
                                     pdfDataRangeTransport);
 
           if (args.length) {
-            DocumentProperties.setFileSize(args.length);
+            PDFDocumentProperties.setFileSize(args.length);
           }
           break;
         case 'range':
@@ -556,7 +556,7 @@ var PDFViewerApplication = {
     );
 
     if (args && args.length) {
-      DocumentProperties.setFileSize(args.length);
+      PDFDocumentProperties.setFileSize(args.length);
     }
   },
 
@@ -853,9 +853,9 @@ var PDFViewerApplication = {
 
     this.pdfDocument = pdfDocument;
 
-    DocumentProperties.url = this.url;
-    DocumentProperties.pdfDocument = pdfDocument;
-    DocumentProperties.resolveDataAvailable();
+    PDFDocumentProperties.url = this.url;
+    PDFDocumentProperties.pdfDocument = pdfDocument;
+    PDFDocumentProperties.resolveDataAvailable();
 
     var downloadedPromise = pdfDocument.getDownloadInfo().then(function() {
       self.downloadComplete = true;

-- 
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