1/*
2 * Copyright (C) 2024 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17const FIRST_CUSTOM = 1000;
18
19export enum TransitionType {
20  UNDEFINED = -1,
21  NONE = 0,
22  OPEN = 1,
23  CLOSE = 2,
24  TO_FRONT = 3,
25  TO_BACK = 4,
26  RELAUNCH = 5,
27  CHANGE = 6,
28  KEYGUARD_GOING_AWAY = 7,
29  KEYGUARD_OCCLUDE = 8,
30  KEYGUARD_UNOCCLUDE = 9,
31  PIP = 10,
32  WAKE = 11,
33  SLEEP = 12,
34
35  FRST_CUSTOM = FIRST_CUSTOM,
36  EXIT_PIP = FIRST_CUSTOM + 1,
37  EXIT_PIP_TO_SPLIT = FIRST_CUSTOM + 2,
38  REMOVE_PIP = FIRST_CUSTOM + 3,
39  SPLIT_SCREEN_PAIR_OPEN = FIRST_CUSTOM + 4,
40  SPLIT_SCREEN_OPEN_TO_SIDE = FIRST_CUSTOM + 5,
41  SPLIT_DISMISS_SNAP = FIRST_CUSTOM + 6,
42  SPLIT_DISMISS = FIRST_CUSTOM + 7,
43  MAXIMIZE = FIRST_CUSTOM + 8,
44  RESTORE_FROM_MAXIMIZE = FIRST_CUSTOM + 9,
45  ENTER_FREEFORM = FIRST_CUSTOM + 10,
46  ENTER_DESKTOP_MODE = FIRST_CUSTOM + 11,
47  EXIT_DESKTOP_MODE = FIRST_CUSTOM + 12,
48}
49