interfaces.js 4.7 KB

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