mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Rename the presentation_mode.js file and adjust the function names
Also moves the |fullscreenchange| event listeners into PDFPresentationMode.
This commit is contained in:
parent
e7fd5b4d4d
commit
f15d5c8cfe
3 changed files with 59 additions and 58 deletions
|
@ -18,7 +18,7 @@
|
|||
DownloadManager, getFileName, getPDFFileNameFromURL,
|
||||
PDFHistory, Preferences, SidebarView, ViewHistory, Stats,
|
||||
PDFThumbnailViewer, URL, noContextMenuHandler, SecondaryToolbar,
|
||||
PasswordPrompt, PresentationMode, HandTool, Promise,
|
||||
PasswordPrompt, PDFPresentationMode, HandTool, Promise,
|
||||
DocumentProperties, PDFOutlineView, PDFAttachmentView,
|
||||
OverlayManager, PDFFindController, PDFFindBar, getVisibleElements,
|
||||
watchScroll, PDFViewer, PDFRenderingQueue, PresentationModeState,
|
||||
|
@ -84,7 +84,7 @@ var mozL10n = document.mozL10n || document.webL10n;
|
|||
//#include pdf_find_controller.js
|
||||
//#include pdf_history.js
|
||||
//#include secondary_toolbar.js
|
||||
//#include presentation_mode.js
|
||||
//#include pdf_presentation_mode.js
|
||||
//#include hand_tool.js
|
||||
//#include overlay_manager.js
|
||||
//#include password_prompt.js
|
||||
|
@ -189,7 +189,7 @@ var PDFViewerApplication = {
|
|||
|
||||
if (this.supportsFullscreen) {
|
||||
var toolbar = SecondaryToolbar;
|
||||
PresentationMode.initialize({
|
||||
PDFPresentationMode.initialize({
|
||||
container: container,
|
||||
pdfThumbnailViewer: this.pdfThumbnailViewer,
|
||||
contextMenuItems: [
|
||||
|
@ -1344,14 +1344,14 @@ var PDFViewerApplication = {
|
|||
if (!this.supportsFullscreen) {
|
||||
return;
|
||||
}
|
||||
PresentationMode.request();
|
||||
PDFPresentationMode.request();
|
||||
},
|
||||
|
||||
scrollPresentationMode: function pdfViewScrollPresentationMode(delta) {
|
||||
if (!this.supportsFullscreen) {
|
||||
return;
|
||||
}
|
||||
PresentationMode.mouseScroll(delta);
|
||||
PDFPresentationMode.mouseScroll(delta);
|
||||
}
|
||||
};
|
||||
//#if GENERIC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue