1/**
2 * Copyright (c) 2022-2022 Huawei Device Co., Ltd.
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
16import { BaseRemoteAnimationHandler } from './BaseRemoteAnimationHandler';
17
18/**
19 * close app base class
20 */
21export abstract class BaseCloseAppHandler extends BaseRemoteAnimationHandler {
22    constructor() {
23        super();
24    }
25
26    /**
27   * calculate app icon position.
28   */
29    protected calculateAppIconPosition(): void {
30    }
31
32    /**
33     * get app icon info
34     *
35     * @param windowTarget close window target
36     */
37    public getAppIconInfo(windowTarget): void {
38    }
39
40    /**
41     * set close app icon info.
42     */
43    public setAppIconInfo(): void {
44        super.setAppIconInfo();
45        AppStorage.setOrCreate('closeAppIconInfo', {
46            appIconSize: this.mAppIconSize,
47            appIconHeight: this.mAppIconHeight,
48            appIconPositionX: this.mAppIconPositionX,
49            appIconPositionY: this.mAppIconPositionY
50        });
51    }
52}
53