1 
2 /*
3  * Copyright (c) 2023 Huawei Device Co., Ltd.
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 #ifndef FRAMEWORKS_BRIDGE_DECLARATIVE_FRONTEND_ENGINE_JSI_NATIVEMODULE_ARKTS_NATIVE_PROGRESS_BRIDGE_H
18 #define FRAMEWORKS_BRIDGE_DECLARATIVE_FRONTEND_ENGINE_JSI_NATIVEMODULE_ARKTS_NATIVE_PROGRESS_BRIDGE_H
19 
20 #include "bridge/declarative_frontend/engine/jsi/nativeModule/arkts_native_api_bridge.h"
21 #include "bridge/declarative_frontend/engine/jsi/nativeModule/arkts_native_common_bridge.h"
22 
23 namespace OHOS::Ace::NG {
24 class ProgressBridge : public CommonBridge {
25 public:
26     static ArkUINativeModuleValue SetProgressValue(ArkUIRuntimeCallInfo* runtimeCallInfo);
27     static ArkUINativeModuleValue ResetProgressValue(ArkUIRuntimeCallInfo* runtimeCallInfo);
28     static ArkUINativeModuleValue SetProgressColor(ArkUIRuntimeCallInfo* runtimeCallInfo);
29     static ArkUINativeModuleValue ResetProgressColor(ArkUIRuntimeCallInfo* runtimeCallInfo);
30     static ArkUINativeModuleValue ResetProgressStyle(ArkUIRuntimeCallInfo* runtimeCallInfo);
31     static ArkUINativeModuleValue SetProgressStyle(ArkUIRuntimeCallInfo* runtimeCallInfo);
32     static ArkUINativeModuleValue SetProgressBackgroundColor(ArkUIRuntimeCallInfo* runtimeCallInfo);
33     static ArkUINativeModuleValue ResetProgressBackgroundColor(ArkUIRuntimeCallInfo* runtimeCallInfo);
34     static ArkUINativeModuleValue SetContentModifierBuilder(ArkUIRuntimeCallInfo* runtimeCallInfo);
35     static ArkUINativeModuleValue SetProgressInitialize(ArkUIRuntimeCallInfo* runtimeCallInfo);
36     static ArkUINativeModuleValue ResetProgressInitialize(ArkUIRuntimeCallInfo* runtimeCallInfo);
37 };
38 } // namespace OHOS::Ace::NG
39 
40 #endif // FRAMEWORKS_BRIDGE_DECLARATIVE_FRONTEND_ENGINE_JSI_NATIVEMODULE_ARKTS_NATIVE_PROGRESS_BRIDGE_H
41