1 /* 2 * Copyright (c) 2024 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 16 #ifndef INTERFACES_INNER_API_ACE_CONSTANTS_H 17 #define INTERFACES_INNER_API_ACE_CONSTANTS_H 18 19 namespace OHOS::Ace { 20 enum UIContentErrorCode : uint16_t { 21 NO_ERRORS = 0, 22 NULL_WINDOW, 23 NULL_POINTER, 24 PARSE_MANIFEST_FAILED, 25 NULL_PAGE_ROUTER, 26 STAGING_PAGE_EXIST, 27 NULL_CARD_CALLBACK, 28 NULL_CARD_RES, 29 CARD_PAGE_NOT_READY, 30 INVALID_PAGE_ID, 31 NULL_URL, 32 WRONG_PAGE_ROUTER, 33 NO_STAGE, 34 INVALID_URL, 35 }; 36 37 enum class ContentInfoType : int32_t { 38 NONE = 0, // invalid contentInfo 39 CONTINUATION = 1, // distribute 40 APP_RECOVERY = 2, // app recovery 41 RESOURCESCHEDULE_RECOVERY = 3, // app is killed due to resource schedule 42 }; 43 44 enum class UIContentType { 45 UNDEFINED, 46 NORMA, // app 47 FORM, // form 48 UI_EXTENSION, // ui extension 49 SECURITY_UI_EXTENSION, // security ui extension 50 }; 51 } // namespace OHOS::Ace 52 53 #endif // INTERFACES_INNER_API_ACE_CONSTANTS_H 54