1 /* 2 * Copyright (C) 2020 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.systemui.wmshell; 18 19 import com.android.systemui.car.wm.CarSystemUIProxyImpl; 20 import com.android.systemui.car.wm.taskview.RemoteCarTaskViewTransitions; 21 import com.android.systemui.dagger.WMComponent; 22 import com.android.systemui.wm.DisplaySystemBarsController; 23 import com.android.systemui.wm.MDSystemBarsController; 24 import com.android.wm.shell.RootTaskDisplayAreaOrganizer; 25 import com.android.wm.shell.dagger.WMSingleton; 26 27 import dagger.Subcomponent; 28 29 import java.util.Optional; 30 31 32 /** 33 * Dagger Subcomponent for WindowManager. 34 */ 35 @WMSingleton 36 @Subcomponent(modules = {CarWMShellModule.class}) 37 public interface CarWMComponent extends WMComponent { 38 39 /** 40 * Builder for a SysUIComponent. 41 */ 42 @Subcomponent.Builder 43 interface Builder extends WMComponent.Builder { build()44 CarWMComponent build(); 45 } 46 47 @WMSingleton getRootTaskDisplayAreaOrganizer()48 RootTaskDisplayAreaOrganizer getRootTaskDisplayAreaOrganizer(); 49 50 @WMSingleton getDisplaySystemBarsController()51 DisplaySystemBarsController getDisplaySystemBarsController(); 52 53 /** 54 * gets the SystemBarController for Inset events. 55 */ 56 @WMSingleton getMDSystemBarController()57 Optional<MDSystemBarsController> getMDSystemBarController(); 58 59 /** 60 * Returns the implementation of car system ui proxy which will be used by other apps to 61 * interact with the car system ui. 62 */ 63 @WMSingleton getCarSystemUIProxy()64 CarSystemUIProxyImpl getCarSystemUIProxy(); 65 66 /** 67 * Returns the RemoteCarTaskViewTransitions used for transitions stuff related to task views. 68 */ 69 @WMSingleton getRemoteCarTaskViewTransitions()70 RemoteCarTaskViewTransitions getRemoteCarTaskViewTransitions(); 71 } 72