schema.json 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. [
  2. {
  3. "namespace": "WindowListener",
  4. "functions": [
  5. {
  6. "name": "registerDefaultPrefs",
  7. "type": "function",
  8. "parameters": [
  9. {
  10. "name": "aPath",
  11. "type": "string",
  12. "description": "Relative path to the default file."
  13. }
  14. ]
  15. },
  16. {
  17. "name": "registerOptionsPage",
  18. "type": "function",
  19. "parameters": [
  20. {
  21. "name": "aPath",
  22. "type": "string",
  23. "description": "Path to the options page, which should be made accessible in the (legacy) Add-On Options menu."
  24. }
  25. ]
  26. },
  27. {
  28. "name": "registerChromeUrl",
  29. "type": "function",
  30. "description": "Register folders which should be available as chrome:// urls (as defined in the legacy chrome.manifest)",
  31. "parameters": [
  32. {
  33. "name": "data",
  34. "type": "array",
  35. "items": {
  36. "type": "array",
  37. "items" : {
  38. "type": "string"
  39. }
  40. },
  41. "description": "Array of manifest url definitions (content, locale, resource)"
  42. }
  43. ]
  44. },
  45. {
  46. "name": "startListening",
  47. "type": "function",
  48. "async": true,
  49. "parameters": []
  50. },
  51. {
  52. "name": "registerWindow",
  53. "type": "function",
  54. "parameters": [
  55. {
  56. "name": "windowHref",
  57. "type": "string",
  58. "description": "Url of the window, which should be listen for."
  59. },
  60. {
  61. "name": "jsFile",
  62. "type": "string",
  63. "description": "Path to the JavaScript file, which should be loaded into the window."
  64. }
  65. ]
  66. },
  67. {
  68. "name": "registerStartupScript",
  69. "type": "function",
  70. "parameters": [
  71. {
  72. "name": "aPath",
  73. "type": "string",
  74. "description": "Path to a JavaScript file, which should be executed on add-on startup. The script will be executed after the main application window has been sucessfully loaded."
  75. }
  76. ]
  77. },
  78. {
  79. "name": "registerShutdownScript",
  80. "type": "function",
  81. "parameters": [
  82. {
  83. "name": "aPath",
  84. "type": "string",
  85. "description": "Path to a JavaScript file, which should be executed on add-on shutdown."
  86. }
  87. ]
  88. }
  89. ]
  90. }
  91. ]