interfaces.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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: 'cachePageRef',
  39. value: function cachePageRef(pageNum, pageRef) {}
  40. }, {
  41. key: 'page',
  42. get: function get() {},
  43. set: function set(value) {}
  44. }]);
  45. return IPDFLinkService;
  46. }();
  47. var IPDFHistory = function () {
  48. function IPDFHistory() {
  49. _classCallCheck(this, IPDFHistory);
  50. }
  51. _createClass(IPDFHistory, [{
  52. key: 'forward',
  53. value: function forward() {}
  54. }, {
  55. key: 'back',
  56. value: function back() {}
  57. }, {
  58. key: 'push',
  59. value: function push(params) {}
  60. }, {
  61. key: 'updateNextHashParam',
  62. value: function updateNextHashParam(hash) {}
  63. }]);
  64. return IPDFHistory;
  65. }();
  66. var IRenderableView = function () {
  67. function IRenderableView() {
  68. _classCallCheck(this, IRenderableView);
  69. }
  70. _createClass(IRenderableView, [{
  71. key: 'draw',
  72. value: function draw() {}
  73. }, {
  74. key: 'resume',
  75. value: function resume() {}
  76. }, {
  77. key: 'renderingId',
  78. get: function get() {}
  79. }, {
  80. key: 'renderingState',
  81. get: function get() {}
  82. }]);
  83. return IRenderableView;
  84. }();
  85. var IPDFTextLayerFactory = function () {
  86. function IPDFTextLayerFactory() {
  87. _classCallCheck(this, IPDFTextLayerFactory);
  88. }
  89. _createClass(IPDFTextLayerFactory, [{
  90. key: 'createTextLayerBuilder',
  91. value: function createTextLayerBuilder(textLayerDiv, pageIndex, viewport) {
  92. var enhanceTextSelection = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  93. }
  94. }]);
  95. return IPDFTextLayerFactory;
  96. }();
  97. var IPDFAnnotationLayerFactory = function () {
  98. function IPDFAnnotationLayerFactory() {
  99. _classCallCheck(this, IPDFAnnotationLayerFactory);
  100. }
  101. _createClass(IPDFAnnotationLayerFactory, [{
  102. key: 'createAnnotationLayerBuilder',
  103. value: function createAnnotationLayerBuilder(pageDiv, pdfPage) {
  104. var renderInteractiveForms = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  105. var l10n = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
  106. }
  107. }]);
  108. return IPDFAnnotationLayerFactory;
  109. }();
  110. var IL10n = function () {
  111. function IL10n() {
  112. _classCallCheck(this, IL10n);
  113. }
  114. _createClass(IL10n, [{
  115. key: 'getDirection',
  116. value: function getDirection() {}
  117. }, {
  118. key: 'get',
  119. value: function get(key, args, fallback) {}
  120. }, {
  121. key: 'translate',
  122. value: function translate(element) {}
  123. }]);
  124. return IL10n;
  125. }();