|
|
@ -19,7 +19,7 @@ |
|
|
|
PDFHistory, Preferences, SidebarView, ViewHistory, Stats, |
|
|
|
PDFHistory, Preferences, SidebarView, ViewHistory, Stats, |
|
|
|
PDFThumbnailViewer, URL, noContextMenuHandler, SecondaryToolbar, |
|
|
|
PDFThumbnailViewer, URL, noContextMenuHandler, SecondaryToolbar, |
|
|
|
PasswordPrompt, PDFPresentationMode, HandTool, Promise, |
|
|
|
PasswordPrompt, PDFPresentationMode, HandTool, Promise, |
|
|
|
DocumentProperties, PDFOutlineView, PDFAttachmentView, |
|
|
|
PDFDocumentProperties, PDFOutlineView, PDFAttachmentView, |
|
|
|
OverlayManager, PDFFindController, PDFFindBar, getVisibleElements, |
|
|
|
OverlayManager, PDFFindController, PDFFindBar, getVisibleElements, |
|
|
|
watchScroll, PDFViewer, PDFRenderingQueue, PresentationModeState, |
|
|
|
watchScroll, PDFViewer, PDFRenderingQueue, PresentationModeState, |
|
|
|
RenderingStates, DEFAULT_SCALE, UNKNOWN_SCALE, |
|
|
|
RenderingStates, DEFAULT_SCALE, UNKNOWN_SCALE, |
|
|
@ -88,7 +88,7 @@ var mozL10n = document.mozL10n || document.webL10n; |
|
|
|
//#include hand_tool.js
|
|
|
|
//#include hand_tool.js
|
|
|
|
//#include overlay_manager.js
|
|
|
|
//#include overlay_manager.js
|
|
|
|
//#include password_prompt.js
|
|
|
|
//#include password_prompt.js
|
|
|
|
//#include document_properties.js
|
|
|
|
//#include pdf_document_properties.js
|
|
|
|
//#include pdf_viewer.js
|
|
|
|
//#include pdf_viewer.js
|
|
|
|
//#include pdf_thumbnail_viewer.js
|
|
|
|
//#include pdf_thumbnail_viewer.js
|
|
|
|
//#include pdf_outline_view.js
|
|
|
|
//#include pdf_outline_view.js
|
|
|
@ -185,7 +185,7 @@ var PDFViewerApplication = { |
|
|
|
lastPage: document.getElementById('lastPage'), |
|
|
|
lastPage: document.getElementById('lastPage'), |
|
|
|
pageRotateCw: document.getElementById('pageRotateCw'), |
|
|
|
pageRotateCw: document.getElementById('pageRotateCw'), |
|
|
|
pageRotateCcw: document.getElementById('pageRotateCcw'), |
|
|
|
pageRotateCcw: document.getElementById('pageRotateCcw'), |
|
|
|
documentProperties: DocumentProperties, |
|
|
|
documentProperties: PDFDocumentProperties, |
|
|
|
documentPropertiesButton: document.getElementById('documentProperties') |
|
|
|
documentPropertiesButton: document.getElementById('documentProperties') |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -216,7 +216,7 @@ var PDFViewerApplication = { |
|
|
|
passwordCancel: document.getElementById('passwordCancel') |
|
|
|
passwordCancel: document.getElementById('passwordCancel') |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
DocumentProperties.initialize({ |
|
|
|
PDFDocumentProperties.initialize({ |
|
|
|
overlayName: 'documentPropertiesOverlay', |
|
|
|
overlayName: 'documentPropertiesOverlay', |
|
|
|
closeButton: document.getElementById('documentPropertiesClose'), |
|
|
|
closeButton: document.getElementById('documentPropertiesClose'), |
|
|
|
fileNameField: document.getElementById('fileNameField'), |
|
|
|
fileNameField: document.getElementById('fileNameField'), |
|
|
@ -410,7 +410,7 @@ var PDFViewerApplication = { |
|
|
|
pdfDataRangeTransport); |
|
|
|
pdfDataRangeTransport); |
|
|
|
|
|
|
|
|
|
|
|
if (args.length) { |
|
|
|
if (args.length) { |
|
|
|
DocumentProperties.setFileSize(args.length); |
|
|
|
PDFDocumentProperties.setFileSize(args.length); |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'range': |
|
|
|
case 'range': |
|
|
@ -556,7 +556,7 @@ var PDFViewerApplication = { |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
if (args && args.length) { |
|
|
|
if (args && args.length) { |
|
|
|
DocumentProperties.setFileSize(args.length); |
|
|
|
PDFDocumentProperties.setFileSize(args.length); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -853,9 +853,9 @@ var PDFViewerApplication = { |
|
|
|
|
|
|
|
|
|
|
|
this.pdfDocument = pdfDocument; |
|
|
|
this.pdfDocument = pdfDocument; |
|
|
|
|
|
|
|
|
|
|
|
DocumentProperties.url = this.url; |
|
|
|
PDFDocumentProperties.url = this.url; |
|
|
|
DocumentProperties.pdfDocument = pdfDocument; |
|
|
|
PDFDocumentProperties.pdfDocument = pdfDocument; |
|
|
|
DocumentProperties.resolveDataAvailable(); |
|
|
|
PDFDocumentProperties.resolveDataAvailable(); |
|
|
|
|
|
|
|
|
|
|
|
var downloadedPromise = pdfDocument.getDownloadInfo().then(function() { |
|
|
|
var downloadedPromise = pdfDocument.getDownloadInfo().then(function() { |
|
|
|
self.downloadComplete = true; |
|
|
|
self.downloadComplete = true; |
|
|
|