* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef INTERFACES_INNER_API_ACE_CONSTANTS_H
#define INTERFACES_INNER_API_ACE_CONSTANTS_H
namespace OHOS::Ace {
enum UIContentErrorCode : uint16_t {
NO_ERRORS = 0,
NULL_WINDOW,
NULL_POINTER,
PARSE_MANIFEST_FAILED,
NULL_PAGE_ROUTER,
STAGING_PAGE_EXIST,
NULL_CARD_CALLBACK,
NULL_CARD_RES,
CARD_PAGE_NOT_READY,
INVALID_PAGE_ID,
NULL_URL,
WRONG_PAGE_ROUTER,
NO_STAGE,
INVALID_URL,
};
enum class ContentInfoType : int32_t {
NONE = 0,
CONTINUATION = 1,
APP_RECOVERY = 2,
RESOURCESCHEDULE_RECOVERY = 3,
};
enum class UIContentType {
UNDEFINED,
NORMA,
FORM,
UI_EXTENSION,
SECURITY_UI_EXTENSION,
ISOLATED_COMPONENT,
DYNAMIC_COMPONENT,
PREVIEW_UI_EXTENSION,
MODAL_UI_EXTENSION = 10,
};
enum class VMType {
NORMAL = 0,
ARK_NATIVE,
};
}
#endif