75 Commits (fe9a561d45de33e8db7d1d25a3193f94d88e91f0)

Author SHA1 Message Date
Jonas Jenwald a96b0f80dd Convert the only remaining consumer (in `hand_tool.js`) of the 'localized' event to use the `localized` Promise instead, and only re-dispatch the 'localized' event on the `eventBus` for `GENERIC` builds 8 years ago
Jonas Jenwald 648024f5d0 Don't call `bindEvents()` until `PDFViewerApplication` has been initialized, and move binding of `window` event listeners to a helper method, to prevent errors if an event manages to arrive too soon 8 years ago
Jonas Jenwald 849f5dde9d Move the `Preferences` initialization/fetching code to the top of `PDFViewerApplication.initialize`, to enable using them when initializing e.g. the viewer components 8 years ago
Jonas Jenwald 2c1436f6cb Refactor `PDFViewerApplication.initialize` into two methods, one that reads the Preferences and one that initializes the various viewer components 8 years ago
Jonas Jenwald 48696a8d06 Make the keyboard shortcuts `Ctrl + Up/Down` behave as `Home/End` (issue 7852) 9 years ago
Yury Delendik f7d6f3a739 Adds SVG rendering capabilities to the PDFViewer. 9 years ago
Yury Delendik a4402c84de Refactor toolbar (and secondary toolbar). 9 years ago
Shain Lafazan 7fec8de502 Additional check to ensure pdfViewer object is defined before handleMouseWheel event accesses its property isInPresentationMode 9 years ago
Jonas Jenwald f461fd64aa Add support for PageLabels in the viewer 9 years ago
Jonas Jenwald d284cfd5eb [api-minor] Add support for relative URLs, in both annotations and the outline, by adding a `docBaseUrl` parameter to `PDFJS.getDocument` (bug 766086) 9 years ago
Yury Delendik 0576c9c6c6 Replaces all preprocessor directives with PDFJSDev calls. 9 years ago
Jonas Jenwald 885ba83624 Add the number of `textDivs` to the `textlayerrendered` event, to avoid having to manually get that information in the event handler 9 years ago
Jonas Jenwald 3904be8889 Ensure that we cancel any pending `textLayer` rendering operations when the viewer is closed (issue 7274) 9 years ago
Jonas Jenwald a824c6c4f6 Ensure that any pending rendering operations in `PDFViewer`/`PDFThumbnailViewer` are cancelled when the viewer is closed 9 years ago
Yury Delendik c09f634bb6 Removes mozPrintCallback polyfill, converts canvas to PNG. 9 years ago
Yury Delendik 24a7a58da7 Moves mozPrintCallback specific code to firefox_printservice.js 9 years ago
Yury Delendik 223a18ccc8 Simplified wheel processing. 9 years ago
Jonas Jenwald 1a2f142a14 Prevent errors if the 'resize' event is fired before the `eventBus` has been initialized 9 years ago
Tim van der Meij 2da2c45889 Interactive forms: remove global PDFJS usage 9 years ago
Jonas Jenwald 6e126b31dc Only update the `max-height` of the `SecondaryToolbar` when it's actually visible 9 years ago
Jonas Jenwald e12c48b73f Add a `enhanceTextSelection` preference 9 years ago
Tim van der Meij e686db250c Render interactive form (AcroForm) text widget annotations 9 years ago
Tim van der Meij eb2ba3287a Revert "Move the `Preferences` initialization/fetching code to the top of `PDFViewerApplication.initialize`, to enable using them when initializing the viewer components" 9 years ago
Tim van der Meij a2525a8ba3 Revert "Add a `enhanceTextSelection` preference to the viewer" 9 years ago
Jonas Jenwald 15e45d772f Add a `enhanceTextSelection` preference to the viewer 9 years ago
Jonas Jenwald ffb876fdf4 Move the `Preferences` initialization/fetching code to the top of `PDFViewerApplication.initialize`, to enable using them when initializing the viewer components 9 years ago
Jonas Jenwald 0db76dc58c Change the `GoToPage` Named Action to select the contents of the `pageNumber` input, rather than just focusing the element 9 years ago
Jeremy Press 6faa84abdb Continuing fairexpand #6663 9 years ago
Jonas Jenwald f3b7fa091d Ensure that the zoom buttons are disabled correctly if the `scale` is smaller/larger than `MIN_SCALE/MAX_SCALE` in `PDFViewerApplication._updateUIToolbar` 9 years ago
Jonas Jenwald 076e25f1ca Prevent destinations with bad left/top values from scrolling the wrong page into view (bug 874482) 9 years ago
Jonas Jenwald 7706cfa9fe Log an error when the value passed to `set currentPageNumber` is out of bounds (PR 7502 followup) 9 years ago
Jonas Jenwald b7cb44af88 Remove the `previousPageNumber` parameter from the `pagechanging`/pagechange` events, and stop dispatching the events if the input is out of bounds 9 years ago
Jonas Jenwald cb6a7e5503 Remove handling of fallback arguments from `PDFViewerApplication.open` 9 years ago
Jonas Jenwald 2f127df97b Add back moz-specific fullscreen support code for ´MOZCENTRAL` builds (bug 1268749, PR 7273 follow-up) 9 years ago
Jonas Jenwald dd0fe10a52 Consolidate updating of various Toolbar state (e.g. page and scale) in one method in `PDFViewerApplication` 9 years ago
jazzy-em 0a347ec04d Added multiple term search functionality (with default phrase search) 9 years ago
Jonas Jenwald b354682dd6 [api-minor] Let `LinkAnnotation`/`PDFLinkService_getDestinationHash` return a stringified version of the destination array for explicit destinations 9 years ago
Tim van der Meij f4ae277355 Convert the secondary toolbar to a class 9 years ago
Tim van der Meij 6a7012aaca Remove unused variables 9 years ago
Yury Delendik a4c81c203b Enables debugger only when needed. 9 years ago
Jonas Jenwald 9dd6017901 Prevent "Prefixed Fullscreen API is deprecated." warnings in the MOZCENTRAL version (issue 7270) 9 years ago
Yury Delendik 4a2c76a34f Adds pre and post UI control change events. 9 years ago
Yury Delendik eb3d1ca003 Removes circular dependency of secondary toolbar on app.js. 9 years ago
Yury Delendik 3e6e294fd4 Refactors PDFFindBar and FirefoxCom find events. 9 years ago
Yury Delendik 7fd3db9977 Adds EventBus. 9 years ago
Yury Delendik 5568a19ee3 Moves bundle target/task to gulpfile.js 9 years ago
Yury Delendik 3132941948 Removes app.js dependency on mozPrintCallback_polyfill.js. 9 years ago
Yury Delendik 3b21b51716 Refactors preferences and PDF opening related chromecom code. 9 years ago
Yury Delendik 148102b626 Refactors firefoxcom dependency on app and l10n. 9 years ago
Yury Delendik 81fc46e666 Refactors FindController dependencies. 9 years ago