1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #7206 from Snuffleupagus/viewer-expose-non-classes-on-PDFViewerApplication

Expose a few non-classes on `PDFViewerApplication`
This commit is contained in:
Jonas Jenwald 2016-04-16 16:43:22 +02:00
commit 7f90f5bfed

View file

@ -194,6 +194,7 @@ var PDFViewerApplication = {
pdfRenderingQueue.setThumbnailViewer(this.pdfThumbnailViewer);
Preferences.initialize();
this.preferences = Preferences;
this.pdfHistory = new PDFHistory({
linkService: pdfLinkService
@ -222,10 +223,13 @@ var PDFViewerApplication = {
this.findController.setFindBar(this.findBar);
this.overlayManager = OverlayManager;
HandTool.initialize({
container: container,
toggleHandTool: document.getElementById('toggleHandTool')
});
this.handTool = HandTool;
this.pdfDocumentProperties = new PDFDocumentProperties({
overlayName: 'documentPropertiesOverlay',
@ -261,6 +265,7 @@ var PDFViewerApplication = {
pageRotateCcw: document.getElementById('pageRotateCcw'),
documentPropertiesButton: document.getElementById('documentProperties')
});
this.secondaryToolbar = SecondaryToolbar;
if (this.supportsFullscreen) {
var toolbar = SecondaryToolbar;
@ -288,6 +293,7 @@ var PDFViewerApplication = {
passwordSubmit: document.getElementById('passwordSubmit'),
passwordCancel: document.getElementById('passwordCancel')
});
this.passwordPrompt = PasswordPrompt;
this.pdfOutlineViewer = new PDFOutlineViewer({
container: document.getElementById('outlineView'),