Refactor PDFViewer to extend an abstract BaseViewer class

This patch introduces an abstract `BaseViewer` class, that the existing `PDFViewer` then extends. *Please note:* This lays the necessary foundation for the next patch.
This commit is contained in:
Jonas Jenwald 2017-08-01 14:11:28 +02:00
parent d7198d3e17
commit 5fa9cca8dd
5 changed files with 138 additions and 78 deletions

View file

@ -25,6 +25,13 @@ const MAX_AUTO_SCALE = 1.25;
const SCROLLBAR_PADDING = 40;
const VERTICAL_PADDING = 5;
const PresentationModeState = {
UNKNOWN: 0,
NORMAL: 1,
CHANGING: 2,
FULLSCREEN: 3,
};
const RendererType = {
CANVAS: 'canvas',
SVG: 'svg',
@ -661,6 +668,7 @@ export {
VERTICAL_PADDING,
isValidRotation,
cloneObj,
PresentationModeState,
RendererType,
mozL10n,
NullL10n,