2
0

interfaces.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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: 'forward',
  60. value: function forward() {}
  61. }, {
  62. key: 'back',
  63. value: function back() {}
  64. }, {
  65. key: 'push',
  66. value: function push(params) {}
  67. }, {
  68. key: 'updateNextHashParam',
  69. value: function updateNextHashParam(hash) {}
  70. }]);
  71. return IPDFHistory;
  72. }();
  73. var IRenderableView = function () {
  74. function IRenderableView() {
  75. _classCallCheck(this, IRenderableView);
  76. }
  77. _createClass(IRenderableView, [{
  78. key: 'draw',
  79. value: function draw() {}
  80. }, {
  81. key: 'resume',
  82. value: function resume() {}
  83. }, {
  84. key: 'renderingId',
  85. get: function get() {}
  86. }, {
  87. key: 'renderingState',
  88. get: function get() {}
  89. }]);
  90. return IRenderableView;
  91. }();
  92. var IPDFTextLayerFactory = function () {
  93. function IPDFTextLayerFactory() {
  94. _classCallCheck(this, IPDFTextLayerFactory);
  95. }
  96. _createClass(IPDFTextLayerFactory, [{
  97. key: 'createTextLayerBuilder',
  98. value: function createTextLayerBuilder(textLayerDiv, pageIndex, viewport) {
  99. var enhanceTextSelection = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  100. }
  101. }]);
  102. return IPDFTextLayerFactory;
  103. }();
  104. var IPDFAnnotationLayerFactory = function () {
  105. function IPDFAnnotationLayerFactory() {
  106. _classCallCheck(this, IPDFAnnotationLayerFactory);
  107. }
  108. _createClass(IPDFAnnotationLayerFactory, [{
  109. key: 'createAnnotationLayerBuilder',
  110. value: function createAnnotationLayerBuilder(pageDiv, pdfPage) {
  111. var renderInteractiveForms = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  112. var l10n = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
  113. }
  114. }]);
  115. return IPDFAnnotationLayerFactory;
  116. }();
  117. var IL10n = function () {
  118. function IL10n() {
  119. _classCallCheck(this, IL10n);
  120. }
  121. _createClass(IL10n, [{
  122. key: 'getDirection',
  123. value: function getDirection() {}
  124. }, {
  125. key: 'get',
  126. value: function get(key, args, fallback) {}
  127. }, {
  128. key: 'translate',
  129. value: function translate(element) {}
  130. }]);
  131. return IL10n;
  132. }();