interfaces.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. function IPDFLinkService() {}
  17. IPDFLinkService.prototype = {
  18. get page() {},
  19. set page(value) {},
  20. navigateTo: function (dest) {},
  21. getDestinationHash: function (dest) {},
  22. getAnchorUrl: function (hash) {},
  23. setHash: function (hash) {},
  24. executeNamedAction: function (action) {},
  25. cachePageRef: function (pageNum, pageRef) {}
  26. };
  27. function IPDFHistory() {}
  28. IPDFHistory.prototype = {
  29. forward: function () {},
  30. back: function () {},
  31. push: function (params) {},
  32. updateNextHashParam: function (hash) {}
  33. };
  34. function IRenderableView() {}
  35. IRenderableView.prototype = {
  36. get renderingId() {},
  37. get renderingState() {},
  38. draw: function () {},
  39. resume: function () {}
  40. };
  41. function IPDFTextLayerFactory() {}
  42. IPDFTextLayerFactory.prototype = {
  43. createTextLayerBuilder: function (textLayerDiv, pageIndex, viewport, enhanceTextSelection) {}
  44. };
  45. function IPDFAnnotationLayerFactory() {}
  46. IPDFAnnotationLayerFactory.prototype = {
  47. createAnnotationLayerBuilder: function (pageDiv, pdfPage, renderInteractiveForms) {}
  48. };