blob: 92aa02050d2895fc16d89d03b2c131fe6bd75c64 [file] [log] [blame]
Winson Chung29a78652017-02-09 18:35:26 -08001/*
2 * Copyright (C) 2017 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
17package com.android.systemui.pip;
18
19import android.content.Context;
Winson Chung0c5a5922017-05-22 17:41:06 -070020import android.content.res.Configuration;
Winson Chung29a78652017-02-09 18:35:26 -080021
Fabian Kozynski5ca7a512019-10-16 19:56:11 +000022import com.android.systemui.broadcast.BroadcastDispatcher;
Winson Chung95c9fca2020-01-22 09:48:40 -080023import com.android.systemui.wm.DisplayController;
Fabian Kozynski5ca7a512019-10-16 19:56:11 +000024
Winson Chung29a78652017-02-09 18:35:26 -080025import java.io.PrintWriter;
26
Winson Chung2dbcf092018-10-24 13:00:41 -070027public interface BasePipManager {
Hongwei Wangebf18082019-09-26 14:25:11 -070028 void initialize(Context context, BroadcastDispatcher broadcastDispatcher,
Winson Chung95c9fca2020-01-22 09:48:40 -080029 DisplayController displayController);
Winson Chungac52f282017-03-30 14:44:52 -070030 void showPictureInPictureMenu();
Winson Chung2dbcf092018-10-24 13:00:41 -070031 default void expandPip() {}
32 default void hidePipMenu(Runnable onStartCallback, Runnable onEndCallback) {}
Winson Chung0c5a5922017-05-22 17:41:06 -070033 void onConfigurationChanged(Configuration newConfig);
Hongwei Wang9b751802019-09-11 12:13:21 -070034 default void setShelfHeight(boolean visible, int height) {}
Winson Chung2dbcf092018-10-24 13:00:41 -070035 default void dump(PrintWriter pw) {}
Winson Chung29a78652017-02-09 18:35:26 -080036}