interfaces.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. }
  18. IPDFLinkService.prototype = {
  19. get page() {
  20. },
  21. set page(value) {
  22. },
  23. navigateTo: function (dest) {
  24. },
  25. getDestinationHash: function (dest) {
  26. },
  27. getAnchorUrl: function (hash) {
  28. },
  29. setHash: function (hash) {
  30. },
  31. executeNamedAction: function (action) {
  32. },
  33. cachePageRef: function (pageNum, pageRef) {
  34. }
  35. };
  36. function IPDFHistory() {
  37. }
  38. IPDFHistory.prototype = {
  39. forward: function () {
  40. },
  41. back: function () {
  42. },
  43. push: function (params) {
  44. },
  45. updateNextHashParam: function (hash) {
  46. }
  47. };
  48. function IRenderableView() {
  49. }
  50. IRenderableView.prototype = {
  51. get renderingId() {
  52. },
  53. get renderingState() {
  54. },
  55. draw: function () {
  56. },
  57. resume: function () {
  58. }
  59. };
  60. function IPDFTextLayerFactory() {
  61. }
  62. IPDFTextLayerFactory.prototype = {
  63. createTextLayerBuilder: function (textLayerDiv, pageIndex, viewport, enhanceTextSelection) {
  64. }
  65. };
  66. function IPDFAnnotationLayerFactory() {
  67. }
  68. IPDFAnnotationLayerFactory.prototype = {
  69. createAnnotationLayerBuilder: function (pageDiv, pdfPage, renderInteractiveForms) {
  70. }
  71. };