2
0

interfaces.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. key: 'rotation',
  53. get: function get() {},
  54. set: function set(value) {}
  55. }]);
  56. return IPDFLinkService;
  57. }();
  58. var IPDFHistory = function () {
  59. function IPDFHistory() {
  60. _classCallCheck(this, IPDFHistory);
  61. }
  62. _createClass(IPDFHistory, [{
  63. key: 'initialize',
  64. value: function initialize(fingerprint) {
  65. var resetHistory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  66. }
  67. }, {
  68. key: 'push',
  69. value: function push(_ref2) {
  70. var namedDest = _ref2.namedDest,
  71. explicitDest = _ref2.explicitDest,
  72. pageNumber = _ref2.pageNumber;
  73. }
  74. }, {
  75. key: 'pushCurrentPosition',
  76. value: function pushCurrentPosition() {}
  77. }, {
  78. key: 'back',
  79. value: function back() {}
  80. }, {
  81. key: 'forward',
  82. value: function forward() {}
  83. }]);
  84. return IPDFHistory;
  85. }();
  86. var IRenderableView = function () {
  87. function IRenderableView() {
  88. _classCallCheck(this, IRenderableView);
  89. }
  90. _createClass(IRenderableView, [{
  91. key: 'draw',
  92. value: function draw() {}
  93. }, {
  94. key: 'resume',
  95. value: function resume() {}
  96. }, {
  97. key: 'renderingId',
  98. get: function get() {}
  99. }, {
  100. key: 'renderingState',
  101. get: function get() {}
  102. }]);
  103. return IRenderableView;
  104. }();
  105. var IPDFTextLayerFactory = function () {
  106. function IPDFTextLayerFactory() {
  107. _classCallCheck(this, IPDFTextLayerFactory);
  108. }
  109. _createClass(IPDFTextLayerFactory, [{
  110. key: 'createTextLayerBuilder',
  111. value: function createTextLayerBuilder(textLayerDiv, pageIndex, viewport) {
  112. var enhanceTextSelection = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  113. }
  114. }]);
  115. return IPDFTextLayerFactory;
  116. }();
  117. var IPDFAnnotationLayerFactory = function () {
  118. function IPDFAnnotationLayerFactory() {
  119. _classCallCheck(this, IPDFAnnotationLayerFactory);
  120. }
  121. _createClass(IPDFAnnotationLayerFactory, [{
  122. key: 'createAnnotationLayerBuilder',
  123. value: function createAnnotationLayerBuilder(pageDiv, pdfPage) {
  124. var renderInteractiveForms = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  125. var l10n = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
  126. }
  127. }]);
  128. return IPDFAnnotationLayerFactory;
  129. }();
  130. var IL10n = function () {
  131. function IL10n() {
  132. _classCallCheck(this, IL10n);
  133. }
  134. _createClass(IL10n, [{
  135. key: 'getDirection',
  136. value: function getDirection() {}
  137. }, {
  138. key: 'get',
  139. value: function get(key, args, fallback) {}
  140. }, {
  141. key: 'translate',
  142. value: function translate(element) {}
  143. }]);
  144. return IL10n;
  145. }();