add mock ahout window

Signed-off-by: zhouyaoying <zhouyaoying@huawei.com>
Change-Id: I93bb9b2d1a5efdfe6eefa503b04676d6d3ebd946
This commit is contained in:
binny1024
2022-08-03 11:02:38 +08:00
parent de58e46173
commit c5ebaf3cf1
@@ -30,7 +30,10 @@ export const WindowType = {
TYPE_LAUNCHER_RECENT: 11,
TYPE_LAUNCHER_DOCK: 12,
TYPE_VOICE_INTERACTION: 13,
TYPE_POINTER: 14
TYPE_POINTER: 14,
TYPE_FLOAT_CAMERA: 15,
TYPE_DIALOG: 16,
TYPE_SCREENSHOT: 17
}
export const AvoidAreaType= {
@@ -286,6 +289,10 @@ export const Window = {
})
}
},
setWakeUpScreen: function(...args) {
console.warn("Window.setWakeUpScreen interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.")
},
setDimBehind: function(...args) {
console.warn("Window.setDimBehind interface mocked in the Previewer. How this interface works on the" +
" Previewer may be different from that on a real device.")