interfaces.js 4.9 KB

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