1 /* 2 * Copyright (c) 2021 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 #ifndef OHOS_ABILITY_RUNTIME_ABILITY_WINDOW_CONFIGURATION_H 16 #define OHOS_ABILITY_RUNTIME_ABILITY_WINDOW_CONFIGURATION_H 17 18 namespace OHOS { 19 namespace AAFwk { 20 enum AbilityWindowConfiguration { 21 /** 22 * Indicates that the Page ability is in an undefined window display mode. 23 */ 24 MULTI_WINDOW_DISPLAY_UNDEFINED = 0, 25 /** 26 * Indicates that the Page ability is in the fullscreen display mode. 27 */ 28 MULTI_WINDOW_DISPLAY_FULLSCREEN = 1, 29 /** 30 * Indicates that the Page ability is displayed in the primary window when it is in split-screen mode. 31 * The primary window, which triggers the split-screen mode, refers to the top window in the 32 * top/bottom split-screen mode or the left window in the left/right screen mode. 33 */ 34 MULTI_WINDOW_DISPLAY_PRIMARY = 100, 35 /** 36 * Indicates that the Page ability is displayed in the secondary window when it is in split-screen mode. 37 * The secondary window refers to the bottom window in the top/bottom split-screen mode or 38 * the right window in the left/right screen mode. 39 */ 40 MULTI_WINDOW_DISPLAY_SECONDARY = 101, 41 /** 42 * Indicates that the Page ability is in floating window display mode. 43 */ 44 MULTI_WINDOW_DISPLAY_FLOATING = 102 45 }; 46 } // namespace AAFwk 47 } // namespace OHOS 48 #endif // OHOS_ABILITY_RUNTIME_ABILITY_WINDOW_CONFIGURATION_H 49