From 6b0e58737240c58d7edecf37fcc2daee91ce0640 Mon Sep 17 00:00:00 2001 From: shilei Date: Mon, 13 Jun 2022 11:35:24 +0800 Subject: [PATCH] add window properties Signed-off-by: shilei Change-Id: Ibb75691d0612a317ddd29ce6201329545bae4c07 --- modulecheck/module.json | 71 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/modulecheck/module.json b/modulecheck/module.json index 11150e4f..dca192f1 100644 --- a/modulecheck/module.json +++ b/modulecheck/module.json @@ -230,7 +230,15 @@ "continuable", "startWindowIcon", "startWindowBackground", - "removeMissionAfterTerminate" + "removeMissionAfterTerminate", + "orientation", + "supportWindowMode", + "maxWindowRatio", + "minWindowRatio", + "maxWindowWidth", + "minWindowWidth", + "maxWindowHeight", + "minWindowHeight" ] }, "properties": { @@ -463,6 +471,67 @@ "description": "Specifies whether to remove the mission after the ability termination.", "type": "boolean", "default": false + }, + "orientation": { + "description": "Indicates the display orientation of the ability. This attribute is valid only for abilities using the Page template.", + "enum": [ + "unspecified", + "landscape", + "portrait", + "reverse_landscape", + "reverse_portrait", + "sensor", + "sensor_landscape", + "sensor_portrait", + "sensor_restricted", + "sensor_landscape_restricted", + "sensor_portrait_restricted", + "locked" + ], + "type": "string" + }, + "supportWindowMode": { + "description": "Specifies supported window modes", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string", + "enum": [ + "fullscreen", + "split", + "floating" + ] + } + }, + "maxWindowRatio": { + "description": "This tag identifies the max window ratio. The value is an number.", + "type": "number", + "minimum": 0 + }, + "minWindowRatio": { + "description": "This tag identifies the min window ratio. The value is an number.", + "type": "number", + "minimum": 0 + }, + "maxWindowWidth": { + "description": "This tag identifies the min window ratio. The value is an integer.", + "type": "integer", + "minimum": 0 + }, + "minWindowWidth": { + "description": "This tag identifies the min window ratio. The value is an integer.", + "type": "integer", + "minimum": 0 + }, + "maxWindowHeight": { + "description": "This tag identifies the min window ratio. The value is an integer.", + "type": "integer", + "minimum": 0 + }, + "minWindowHeight": { + "description": "This tag identifies the min window ratio. The value is an integer.", + "type": "integer", + "minimum": 0 } } } -- Gitee