Jonas Jenwald
2dc1af8028
Break dependencies between PresentationMode and other code, and add PresentationMode related utility methods to PDFViewer
...
This patch:
- Adds a couple of utility methods to `PDFViewer` to enable checking `presentationModeState` without cumbersome comparisons.
- Disentangles `PresentationMode` from `PDFHistory` and `HandTool`, by adding event listeners for `presentationmodechanged` to both of them.
- Adds a utility function to `PDFViewerApplication` for requesting PresentationMode.
- Prevents initialization of `PresentationMode` if the browser does not support the fullscreen API.
2015-04-21 16:02:32 +02:00
Jonas Jenwald
4a3b0d9c64
Add a |PDFViewer| option to remove the border shadow around pages (issue 5559)
2015-03-16 12:28:28 +01:00
Yury Delendik
a0a94344d7
Merge pull request #5721 from Snuffleupagus/move-findController-resolveFirstPage
...
Move the call to |PDFFindController.resolveFirstPage| into PDFViewer
2015-02-27 06:33:15 -06:00
Jonas Jenwald
a495ab0d13
Fix regression that prevents resetting the zoom level to "Automatic" when using the |Ctrl + 0| keys
2015-02-19 17:37:02 +01:00
Jonas Jenwald
8131440f9e
Move the call to |PDFFindController.resolveFirstPage| into PDFViewer
...
From reading IRC scrollback, it became clear that having to manually call `PDFFindController.resolveFirstPage` in order for the find functionality to work isn't particulary good. Hence this PR, which moves that code into `PDFViewer.setDocument` to make life easier for third-party implementations.
2015-02-11 14:22:24 +01:00
Jonas Jenwald
95dd9ee185
Move the |pagerendered| event to pdf_page_view.js
...
Also deprecates the |pagerender| event, except for GENERIC builds.
2015-01-06 21:44:22 +01:00
Yury Delendik
2ac7ac4678
Removes lastScrollSource and isViewerInPresentationMode from TextLayerBuilderOptions
2014-12-20 11:14:13 -06:00
Yury Delendik
b930228788
Refactors Cache into PDFPageViewBuffer
2014-12-19 16:54:32 -06:00
Yury Delendik
22c62685b0
Removes Stats dependency from PDFPageView.
2014-12-19 13:07:28 -06:00
Yury Delendik
9f384bbb41
Creates AnnotationsLayerBuilder.
2014-12-19 13:07:28 -06:00
Yury Delendik
fe4ac86781
Removes PDFPageSource
2014-12-19 09:55:11 -06:00
Yury Delendik
7663942ee5
Creates IPDFTextLayerFactory interface
2014-12-17 15:21:54 -06:00
Yury Delendik
f68678086d
Simple restructuring PageView into PDFPageView
2014-12-17 15:21:54 -06:00
Yury Delendik
863d583ae1
Renames page_view.js file.
2014-12-17 10:32:07 -06:00
Jonas Jenwald
670b842e09
Fix "Automatic Zoom" for landscape documents with very wide pages (issue 5398)
2014-10-12 02:25:35 +02:00
Jonas Jenwald
5f83739190
Fix |cleanup| regression in the viewer
2014-10-02 00:24:01 +02:00
Yury Delendik
5740b96020
Introduces 'pagesinit' event.
2014-09-30 12:41:53 -05:00
Yury Delendik
b16a406f3a
Packages PDFViewer as a UI component.
2014-09-30 12:41:53 -05:00
Yury Delendik
374b94381d
Moves scrollPageIntoView to the PDFViewer.
2014-09-30 07:13:46 -05:00
Yury Delendik
504d2c19e0
Fixes typo/regression of #5295 for presentation mode
2014-09-29 20:17:26 -05:00
Yury Delendik
a89bba35b2
Adds types definitions (jsdoc) for the PDFViewer code.
2014-09-28 10:39:56 -05:00
Yury Delendik
3773972dce
Marks some private methods in PDFViewer and PDFThumbnailViewer
...
Conflicts:
web/pdf_viewer.js
2014-09-28 10:39:56 -05:00
Yury Delendik
a1eca2084d
Moves constants to avoid dependency on PDFView
2014-09-21 12:47:26 -05:00
Yury Delendik
f1851c6393
Removes any usage of PDFView in the PageView
2014-09-21 12:47:26 -05:00
Yury Delendik
fbd7eedce8
Removes PresentationMode dependency from PDFViewer
2014-09-21 12:47:26 -05:00
Yury Delendik
a06a974f78
Moves rendering queue logic from PDFView
2014-09-21 12:47:26 -05:00
Yury Delendik
7642c39734
Moves pdfDocument.getPage/getTextContent requests out of PDFView
2014-09-21 12:47:26 -05:00
Yury Delendik
7af8748151
Moves viewer code into PDFViewer and some code from PageView.
2014-09-21 12:47:07 -05:00