Files
SysTray-X/webext/schema_windowEvent.json
2023-11-13 20:14:30 +01:00

60 lines
1.3 KiB
JSON

[
{
"namespace": "windowEvent",
"functions": [
{
"name": "setCloseType",
"type": "function",
"description": "Set the close type.",
"async": true,
"parameters": [
{
"type": "integer",
"name": "type",
"minimum": 0,
"maximum": 4
}
]
},
{
"name": "setMainWindowId",
"type": "function",
"description": "Set the main window id.",
"async": true,
"parameters": [
{
"type": "integer",
"name": "type"
}
]
},
{
"name": "forceClose",
"type": "function",
"description": "Really close the window.",
"async": true,
"parameters": [
{
"type": "integer",
"name": "type"
}
]
}
],
"events": [
{
"name": "onNewWindow",
"type": "function",
"description": "Fires when the user opens a new window.",
"parameters": []
},
{
"name": "onCloseButtonClick",
"type": "function",
"description": "Fires when the user clicks on the close button of a window.",
"parameters": []
}
]
}
]