Browse Source

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

Expose a few non-classes on `PDFViewerApplication`
Jonas Jenwald 9 years ago
parent
commit
7f90f5bfed
  1. 6
      web/app.js

6
web/app.js

@ -194,6 +194,7 @@ var PDFViewerApplication = { @@ -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 = { @@ -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 = { @@ -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 = { @@ -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'),

Loading…
Cancel
Save