| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | /* Copyright 2017 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var IPDFLinkService = function () { function IPDFLinkService() { _classCallCheck(this, IPDFLinkService); } _createClass(IPDFLinkService, [{ key: 'navigateTo', value: function navigateTo(dest) {} }, { key: 'getDestinationHash', value: function getDestinationHash(dest) {} }, { key: 'getAnchorUrl', value: function getAnchorUrl(hash) {} }, { key: 'setHash', value: function setHash(hash) {} }, { key: 'executeNamedAction', value: function executeNamedAction(action) {} }, { key: 'onFileAttachmentAnnotation', value: function onFileAttachmentAnnotation(_ref) { var id = _ref.id, filename = _ref.filename, content = _ref.content; } }, { key: 'cachePageRef', value: function cachePageRef(pageNum, pageRef) {} }, { key: 'page', get: function get() {}, set: function set(value) {} }, { key: 'rotation', get: function get() {}, set: function set(value) {} }]); return IPDFLinkService; }(); var IPDFHistory = function () { function IPDFHistory() { _classCallCheck(this, IPDFHistory); } _createClass(IPDFHistory, [{ key: 'initialize', value: function initialize(fingerprint) { var resetHistory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; } }, { key: 'push', value: function push(_ref2) { var namedDest = _ref2.namedDest, explicitDest = _ref2.explicitDest, pageNumber = _ref2.pageNumber; } }, { key: 'pushCurrentPosition', value: function pushCurrentPosition() {} }, { key: 'back', value: function back() {} }, { key: 'forward', value: function forward() {} }]); return IPDFHistory; }(); var IRenderableView = function () { function IRenderableView() { _classCallCheck(this, IRenderableView); } _createClass(IRenderableView, [{ key: 'draw', value: function draw() {} }, { key: 'resume', value: function resume() {} }, { key: 'renderingId', get: function get() {} }, { key: 'renderingState', get: function get() {} }]); return IRenderableView; }(); var IPDFTextLayerFactory = function () { function IPDFTextLayerFactory() { _classCallCheck(this, IPDFTextLayerFactory); } _createClass(IPDFTextLayerFactory, [{ key: 'createTextLayerBuilder', value: function createTextLayerBuilder(textLayerDiv, pageIndex, viewport) { var enhanceTextSelection = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; } }]); return IPDFTextLayerFactory; }(); var IPDFAnnotationLayerFactory = function () { function IPDFAnnotationLayerFactory() { _classCallCheck(this, IPDFAnnotationLayerFactory); } _createClass(IPDFAnnotationLayerFactory, [{ key: 'createAnnotationLayerBuilder', value: function createAnnotationLayerBuilder(pageDiv, pdfPage) { var renderInteractiveForms = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; var l10n = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined; } }]); return IPDFAnnotationLayerFactory; }(); var IL10n = function () { function IL10n() { _classCallCheck(this, IL10n); } _createClass(IL10n, [{ key: 'getDirection', value: function getDirection() {} }, { key: 'get', value: function get(key, args, fallback) {} }, { key: 'translate', value: function translate(element) {} }]); return IL10n; }(); |