2
0

interfaces.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. function IPDFLinkService() {}
  19. IPDFLinkService.prototype = {
  20. get page() {},
  21. set page(value) {},
  22. navigateTo: function navigateTo(dest) {},
  23. getDestinationHash: function getDestinationHash(dest) {},
  24. getAnchorUrl: function getAnchorUrl(hash) {},
  25. setHash: function setHash(hash) {},
  26. executeNamedAction: function executeNamedAction(action) {},
  27. cachePageRef: function cachePageRef(pageNum, pageRef) {}
  28. };
  29. function IPDFHistory() {}
  30. IPDFHistory.prototype = {
  31. forward: function forward() {},
  32. back: function back() {},
  33. push: function push(params) {},
  34. updateNextHashParam: function updateNextHashParam(hash) {}
  35. };
  36. function IRenderableView() {}
  37. IRenderableView.prototype = {
  38. get renderingId() {},
  39. get renderingState() {},
  40. draw: function draw() {},
  41. resume: function resume() {}
  42. };
  43. function IPDFTextLayerFactory() {}
  44. IPDFTextLayerFactory.prototype = {
  45. createTextLayerBuilder: function createTextLayerBuilder(textLayerDiv, pageIndex, viewport) {
  46. var enhanceTextSelection = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  47. }
  48. };
  49. var IPDFAnnotationLayerFactory = function () {
  50. function IPDFAnnotationLayerFactory() {
  51. _classCallCheck(this, IPDFAnnotationLayerFactory);
  52. }
  53. _createClass(IPDFAnnotationLayerFactory, [{
  54. key: 'createAnnotationLayerBuilder',
  55. value: function createAnnotationLayerBuilder(pageDiv, pdfPage) {
  56. var renderInteractiveForms = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  57. }
  58. }]);
  59. return IPDFAnnotationLayerFactory;
  60. }();