1 /*
2  * Copyright (C) 2022 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 
17 package com.android.wm.shell.freeform;
18 
19 import android.window.WindowContainerTransaction;
20 
21 /**
22  * The interface around {@link FreeformTaskTransitionHandler} for task listeners to start freeform
23  * task transitions.
24  */
25 public interface FreeformTaskTransitionStarter {
26 
27     /**
28      * Starts a windowing mode transition.
29      *
30      * @param targetWindowingMode the target windowing mode
31      * @param wct the {@link WindowContainerTransaction} that changes the windowing mode
32      *
33      */
startWindowingModeTransition(int targetWindowingMode, WindowContainerTransaction wct)34     void startWindowingModeTransition(int targetWindowingMode, WindowContainerTransaction wct);
35 
36     /**
37      * Starts window minimization transition
38      *
39      * @param wct the {@link WindowContainerTransaction} that changes the windowing mode
40      *
41      */
startMinimizedModeTransition(WindowContainerTransaction wct)42     void startMinimizedModeTransition(WindowContainerTransaction wct);
43 
44     /**
45      * Starts close window transition
46      *
47      * @param wct the {@link WindowContainerTransaction} that closes the task
48      *
49      */
startRemoveTransition(WindowContainerTransaction wct)50     void startRemoveTransition(WindowContainerTransaction wct);
51 }