1 /* 2 * Copyright (c) 2025 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 FRAMEWORKS_BRIDGE_DECLARATIVE_FRONTEND_ENGINE_JSI_NATIVEMODULE_ARKTS_NATIVE_WEB_BRIDGE_H 17 #define FRAMEWORKS_BRIDGE_DECLARATIVE_FRONTEND_ENGINE_JSI_NATIVEMODULE_ARKTS_NATIVE_WEB_BRIDGE_H 18 19 #include "bridge/declarative_frontend/engine/jsi/nativeModule/arkts_native_api_bridge.h" 20 21 namespace OHOS::Ace::NG { 22 class WebBridge { 23 public: 24 static ArkUINativeModuleValue SetJavaScriptAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 25 static ArkUINativeModuleValue ResetJavaScriptAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 26 static ArkUINativeModuleValue SetFileAccessEnabled(ArkUIRuntimeCallInfo* runtimeCallInfo); 27 static ArkUINativeModuleValue ResetFileAccessEnabled(ArkUIRuntimeCallInfo* runtimeCallInfo); 28 static ArkUINativeModuleValue SetDomStorageAccessEnabled(ArkUIRuntimeCallInfo* runtimeCallInfo); 29 static ArkUINativeModuleValue ResetDomStorageAccessEnabled(ArkUIRuntimeCallInfo* runtimeCallInfo); 30 static ArkUINativeModuleValue SetMixedMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 31 static ArkUINativeModuleValue ResetMixedMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 32 static ArkUINativeModuleValue SetZoomAccessEnabled(ArkUIRuntimeCallInfo* runtimeCallInfo); 33 static ArkUINativeModuleValue ResetZoomAccessEnabled(ArkUIRuntimeCallInfo* runtimeCallInfo); 34 static ArkUINativeModuleValue SetCacheMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 35 static ArkUINativeModuleValue ResetCacheMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 36 static ArkUINativeModuleValue SetDarkMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 37 static ArkUINativeModuleValue ResetDarkMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 38 static ArkUINativeModuleValue SetMultiWindowAccessEnabled(ArkUIRuntimeCallInfo* runtimeCallInfo); 39 static ArkUINativeModuleValue ResetMultiWindowAccessEnabled(ArkUIRuntimeCallInfo* runtimeCallInfo); 40 static ArkUINativeModuleValue SetAllowWindowOpenMethod(ArkUIRuntimeCallInfo* runtimeCallInfo); 41 static ArkUINativeModuleValue ResetAllowWindowOpenMethod(ArkUIRuntimeCallInfo* runtimeCallInfo); 42 static ArkUINativeModuleValue SetKeyboardAvoidMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 43 static ArkUINativeModuleValue ResetKeyboardAvoidMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 44 static ArkUINativeModuleValue SetOnControllerAttached(ArkUIRuntimeCallInfo* runtimeCallInfo); 45 static ArkUINativeModuleValue ResetOnControllerAttached(ArkUIRuntimeCallInfo* runtimeCallInfo); 46 static ArkUINativeModuleValue SetVerticalScrollBarAccessEnabled(ArkUIRuntimeCallInfo* runtimeCallInfo); 47 static ArkUINativeModuleValue ResetVerticalScrollBarAccessEnabled(ArkUIRuntimeCallInfo* runtimeCallInfo); 48 static ArkUINativeModuleValue SetHorizontalScrollBarAccessEnabled(ArkUIRuntimeCallInfo* runtimeCallInfo); 49 static ArkUINativeModuleValue ResetHorizontalScrollBarAccessEnabled(ArkUIRuntimeCallInfo* runtimeCallInfo); 50 static ArkUINativeModuleValue SetTextZoomRatio(ArkUIRuntimeCallInfo* runtimeCallInfo); 51 static ArkUINativeModuleValue ResetTextZoomRatio(ArkUIRuntimeCallInfo* runtimeCallInfo); 52 static ArkUINativeModuleValue SetInitialScale(ArkUIRuntimeCallInfo* runtimeCallInfo); 53 static ArkUINativeModuleValue ResetInitialScale(ArkUIRuntimeCallInfo* runtimeCallInfo); 54 static ArkUINativeModuleValue SetOnScroll(ArkUIRuntimeCallInfo* runtimeCallInfo); 55 static ArkUINativeModuleValue ResetOnScroll(ArkUIRuntimeCallInfo* runtimeCallInfo); 56 static ArkUINativeModuleValue SetOnOverScroll(ArkUIRuntimeCallInfo* runtimeCallInfo); 57 static ArkUINativeModuleValue ResetOnOverScroll(ArkUIRuntimeCallInfo* runtimeCallInfo); 58 static ArkUINativeModuleValue SetOnScaleChange(ArkUIRuntimeCallInfo* runtimeCallInfo); 59 static ArkUINativeModuleValue ResetOnScaleChange(ArkUIRuntimeCallInfo* runtimeCallInfo); 60 static ArkUINativeModuleValue SetOnRequestSelected(ArkUIRuntimeCallInfo* runtimeCallInfo); 61 static ArkUINativeModuleValue RetsetOnRequestSelected(ArkUIRuntimeCallInfo* runtimeCallInfo); 62 static ArkUINativeModuleValue SetOnContextMenuHide(ArkUIRuntimeCallInfo* runtimeCallInfo); 63 static ArkUINativeModuleValue ResetOnContextMenuHide(ArkUIRuntimeCallInfo* runtimeCallInfo); 64 static ArkUINativeModuleValue SetGeolocationAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 65 static ArkUINativeModuleValue ResetGeolocationAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 66 static ArkUINativeModuleValue SetDatabaseAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 67 static ArkUINativeModuleValue ResetDatabaseAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 68 static ArkUINativeModuleValue SetOverviewModeAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 69 static ArkUINativeModuleValue ResetOverviewModeAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 70 static ArkUINativeModuleValue SetForceDarkAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 71 static ArkUINativeModuleValue ResetForceDarkAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 72 static ArkUINativeModuleValue SetPinchSmooth(ArkUIRuntimeCallInfo* runtimeCallInfo); 73 static ArkUINativeModuleValue ResetPinchSmooth(ArkUIRuntimeCallInfo* runtimeCallInfo); 74 static ArkUINativeModuleValue SetMetaViewport(ArkUIRuntimeCallInfo* runtimeCallInfo); 75 static ArkUINativeModuleValue ResetMetaViewport(ArkUIRuntimeCallInfo* runtimeCallInfo); 76 static ArkUINativeModuleValue SetEnableFollowSystemFontWeight(ArkUIRuntimeCallInfo* runtimeCallInfo); 77 static ArkUINativeModuleValue ResetEnableFollowSystemFontWeight(ArkUIRuntimeCallInfo* runtimeCallInfo); 78 static ArkUINativeModuleValue SetEnableNativeEmbedMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 79 static ArkUINativeModuleValue ResetEnableNativeEmbedMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 80 static ArkUINativeModuleValue SetMinFontSize(ArkUIRuntimeCallInfo* runtimeCallInfo); 81 static ArkUINativeModuleValue ResetMinFontSize(ArkUIRuntimeCallInfo* runtimeCallInfo); 82 static ArkUINativeModuleValue SetDefaultFontSize(ArkUIRuntimeCallInfo* runtimeCallInfo); 83 static ArkUINativeModuleValue ResetDefaultFontSize(ArkUIRuntimeCallInfo* runtimeCallInfo); 84 static ArkUINativeModuleValue SetDefaultFixedFontSize(ArkUIRuntimeCallInfo* runtimeCallInfo); 85 static ArkUINativeModuleValue ResetDefaultFixedFontSize(ArkUIRuntimeCallInfo* runtimeCallInfo); 86 static ArkUINativeModuleValue SetMinLogicalFontSize(ArkUIRuntimeCallInfo* runtimeCallInfo); 87 static ArkUINativeModuleValue ResetMinLogicalFontSize(ArkUIRuntimeCallInfo* runtimeCallInfo); 88 static ArkUINativeModuleValue SetWebStandardFont(ArkUIRuntimeCallInfo* runtimeCallInfo); 89 static ArkUINativeModuleValue ResetWebStandardFont(ArkUIRuntimeCallInfo* runtimeCallInfo); 90 static ArkUINativeModuleValue SetWebSerifFont(ArkUIRuntimeCallInfo* runtimeCallInfo); 91 static ArkUINativeModuleValue ResetWebSerifFont(ArkUIRuntimeCallInfo* runtimeCallInfo); 92 static ArkUINativeModuleValue SetWebSansSerifFont(ArkUIRuntimeCallInfo* runtimeCallInfo); 93 static ArkUINativeModuleValue ResetWebSansSerifFont(ArkUIRuntimeCallInfo* runtimeCallInfo); 94 static ArkUINativeModuleValue SetWebFixedFont(ArkUIRuntimeCallInfo* runtimeCallInfo); 95 static ArkUINativeModuleValue ResetWebFixedFont(ArkUIRuntimeCallInfo* runtimeCallInfo); 96 static ArkUINativeModuleValue SetWebFantasyFont(ArkUIRuntimeCallInfo* runtimeCallInfo); 97 static ArkUINativeModuleValue ResetWebFantasyFont(ArkUIRuntimeCallInfo* runtimeCallInfo); 98 static ArkUINativeModuleValue SetWebCursiveFont(ArkUIRuntimeCallInfo* runtimeCallInfo); 99 static ArkUINativeModuleValue ResetWebCursiveFont(ArkUIRuntimeCallInfo* runtimeCallInfo); 100 static ArkUINativeModuleValue SetLayoutMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 101 static ArkUINativeModuleValue ResetLayoutMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 102 static ArkUINativeModuleValue SetOnNativeEmbedLifecycleChange(ArkUIRuntimeCallInfo* runtimeCallInfo); 103 static ArkUINativeModuleValue ResetOnNativeEmbedLifecycleChange(ArkUIRuntimeCallInfo* runtimeCallInfo); 104 static ArkUINativeModuleValue SetOnNativeEmbedGestureEvent(ArkUIRuntimeCallInfo* runtimeCallInfo); 105 static ArkUINativeModuleValue ResetOnNativeEmbedGestureEvent(ArkUIRuntimeCallInfo* runtimeCallInfo); 106 static ArkUINativeModuleValue SetRegisterNativeEmbedRule(ArkUIRuntimeCallInfo* runtimeCallInfo); 107 static ArkUINativeModuleValue ResetRegisterNativeEmbedRule(ArkUIRuntimeCallInfo* runtimeCallInfo); 108 static ArkUINativeModuleValue SetNativeEmbedOptions(ArkUIRuntimeCallInfo* runtimeCallInfo); 109 static ArkUINativeModuleValue ResetNativeEmbedOptions(ArkUIRuntimeCallInfo* runtimeCallInfo); 110 static ArkUINativeModuleValue SetOnFirstContentfulPaint(ArkUIRuntimeCallInfo* runtimeCallInfo); 111 static ArkUINativeModuleValue ResetOnFirstContentfulPaint(ArkUIRuntimeCallInfo* runtimeCallInfo); 112 static ArkUINativeModuleValue SetOnAudioStateChanged(ArkUIRuntimeCallInfo* runtimeCallInfo); 113 static ArkUINativeModuleValue ResetOnAudioStateChanged(ArkUIRuntimeCallInfo* runtimeCallInfo); 114 static ArkUINativeModuleValue SetOnFullScreenExit(ArkUIRuntimeCallInfo* runtimeCallInfo); 115 static ArkUINativeModuleValue ResetOnFullScreenExit(ArkUIRuntimeCallInfo* runtimeCallInfo); 116 static ArkUINativeModuleValue SetImageAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 117 static ArkUINativeModuleValue ResetImageAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 118 static ArkUINativeModuleValue SetOnlineImageAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 119 static ArkUINativeModuleValue ResetOnlineImageAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 120 static ArkUINativeModuleValue SetMediaPlayGestureAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 121 static ArkUINativeModuleValue ResetMediaPlayGestureAccess(ArkUIRuntimeCallInfo* runtimeCallInfo); 122 static ArkUINativeModuleValue SetMediaOptions(ArkUIRuntimeCallInfo* runtimeCallInfo); 123 static ArkUINativeModuleValue ResetMediaOptions(ArkUIRuntimeCallInfo* runtimeCallInfo); 124 static ArkUINativeModuleValue SetOnPageEnd(ArkUIRuntimeCallInfo* runtimeCallInfo); 125 static ArkUINativeModuleValue ResetOnPageEnd(ArkUIRuntimeCallInfo* runtimeCallInfo); 126 static ArkUINativeModuleValue SetOnPageBegin(ArkUIRuntimeCallInfo* runtimeCallInfo); 127 static ArkUINativeModuleValue ResetOnPageBegin(ArkUIRuntimeCallInfo* runtimeCallInfo); 128 static ArkUINativeModuleValue SetOnProgressChange(ArkUIRuntimeCallInfo* runtimeCallInfo); 129 static ArkUINativeModuleValue ResetOnProgressChange(ArkUIRuntimeCallInfo* runtimeCallInfo); 130 static ArkUINativeModuleValue SetOnTitleReceive(ArkUIRuntimeCallInfo* runtimeCallInfo); 131 static ArkUINativeModuleValue ResetOnTitleReceive(ArkUIRuntimeCallInfo* runtimeCallInfo); 132 static ArkUINativeModuleValue SetOnDownloadStart(ArkUIRuntimeCallInfo* runtimeCallInfo); 133 static ArkUINativeModuleValue ResetOnDownloadStart(ArkUIRuntimeCallInfo* runtimeCallInfo); 134 static ArkUINativeModuleValue SetJavaScriptOnDocumentStart(ArkUIRuntimeCallInfo* runtimeCallInfo); 135 static ArkUINativeModuleValue ResetJavaScriptOnDocumentStart(ArkUIRuntimeCallInfo* runtimeCallInfo); 136 static ArkUINativeModuleValue SetJavaScriptOnDocumentEnd(ArkUIRuntimeCallInfo* runtimeCallInfo); 137 static ArkUINativeModuleValue ResetJavaScriptOnDocumentEnd(ArkUIRuntimeCallInfo* runtimeCallInfo); 138 static ArkUINativeModuleValue SetCopyOptionMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 139 static ArkUINativeModuleValue ResetCopyOptionMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 140 static ArkUINativeModuleValue SetOnRenderProcessNotResponding(ArkUIRuntimeCallInfo* runtimeCallInfo); 141 static ArkUINativeModuleValue ResetOnRenderProcessNotResponding(ArkUIRuntimeCallInfo* runtimeCallInfo); 142 static ArkUINativeModuleValue SetOnPageVisible(ArkUIRuntimeCallInfo* runtimeCallInfo); 143 static ArkUINativeModuleValue ResetOnPageVisible(ArkUIRuntimeCallInfo* runtimeCallInfo); 144 static ArkUINativeModuleValue SetOnRenderExited(ArkUIRuntimeCallInfo* runtimeCallInfo); 145 static ArkUINativeModuleValue ResetOnRenderExited(ArkUIRuntimeCallInfo* runtimeCallInfo); 146 static ArkUINativeModuleValue SetBlockNetwork(ArkUIRuntimeCallInfo* runtimeCallInfo); 147 static ArkUINativeModuleValue ResetBlockNetwork(ArkUIRuntimeCallInfo* runtimeCallInfo); 148 static ArkUINativeModuleValue SetOnResourceLoad(ArkUIRuntimeCallInfo* runtimeCallInfo); 149 static ArkUINativeModuleValue ResetOnResourceLoad(ArkUIRuntimeCallInfo* runtimeCallInfo); 150 static ArkUINativeModuleValue SetOnRefreshAccessedHistory(ArkUIRuntimeCallInfo* runtimeCallInfo); 151 static ArkUINativeModuleValue ResetOnRefreshAccessedHistory(ArkUIRuntimeCallInfo* runtimeCallInfo); 152 static ArkUINativeModuleValue SetOnNavigationEntryCommitted(ArkUIRuntimeCallInfo* runtimeCallInfo); 153 static ArkUINativeModuleValue ResetOnNavigationEntryCommitted(ArkUIRuntimeCallInfo* runtimeCallInfo); 154 static ArkUINativeModuleValue SetOnSearchResultReceive(ArkUIRuntimeCallInfo* runtimeCallInfo); 155 static ArkUINativeModuleValue ResetOnSearchResultReceive(ArkUIRuntimeCallInfo* runtimeCallInfo); 156 static ArkUINativeModuleValue SetOverScrollMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 157 static ArkUINativeModuleValue ResetOverScrollMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 158 static ArkUINativeModuleValue SetOnTouchIconUrlReceived(ArkUIRuntimeCallInfo* runtimeCallInfo); 159 static ArkUINativeModuleValue ResetOnTouchIconUrlReceived(ArkUIRuntimeCallInfo* runtimeCallInfo); 160 static ArkUINativeModuleValue SetOnRenderProcessResponding(ArkUIRuntimeCallInfo* runtimeCallInfo); 161 static ArkUINativeModuleValue ResetOnRenderProcessResponding(ArkUIRuntimeCallInfo* runtimeCallInfo); 162 static ArkUINativeModuleValue SetOnWindowNew(ArkUIRuntimeCallInfo* runtimeCallInfo); 163 static ArkUINativeModuleValue ResetOnWindowNew(ArkUIRuntimeCallInfo* runtimeCallInfo); 164 static ArkUINativeModuleValue SetOnGeolocationShow(ArkUIRuntimeCallInfo* runtimeCallInfo); 165 static ArkUINativeModuleValue ResetOnGeolocationShow(ArkUIRuntimeCallInfo* runtimeCallInfo); 166 static ArkUINativeModuleValue SetOnPermissionRequest(ArkUIRuntimeCallInfo* runtimeCallInfo); 167 static ArkUINativeModuleValue ResetOnPermissionRequest(ArkUIRuntimeCallInfo* runtimeCallInfo); 168 static ArkUINativeModuleValue SetOnScreenCaptureRequest(ArkUIRuntimeCallInfo* runtimeCallInfo); 169 static ArkUINativeModuleValue ResetOnScreenCaptureRequest(ArkUIRuntimeCallInfo* runtimeCallInfo); 170 static ArkUINativeModuleValue SetOnFullScreenEnter(ArkUIRuntimeCallInfo* runtimeCallInfo); 171 static ArkUINativeModuleValue ResetOnFullScreenEnter(ArkUIRuntimeCallInfo* runtimeCallInfo); 172 static ArkUINativeModuleValue SetOnWindowExit(ArkUIRuntimeCallInfo* runtimeCallInfo); 173 static ArkUINativeModuleValue ResetOnWindowExit(ArkUIRuntimeCallInfo* runtimeCallInfo); 174 static ArkUINativeModuleValue SetOnAlert(ArkUIRuntimeCallInfo* runtimeCallInfo); 175 static ArkUINativeModuleValue ResetOnAlert(ArkUIRuntimeCallInfo* runtimeCallInfo); 176 static ArkUINativeModuleValue SetOnConfirm(ArkUIRuntimeCallInfo* runtimeCallInfo); 177 static ArkUINativeModuleValue ResetOnConfirm(ArkUIRuntimeCallInfo* runtimeCallInfo); 178 static ArkUINativeModuleValue SetOnPrompt(ArkUIRuntimeCallInfo* runtimeCallInfo); 179 static ArkUINativeModuleValue ResetOnPrompt(ArkUIRuntimeCallInfo* runtimeCallInfo); 180 static ArkUINativeModuleValue SetOnShowFileSelector(ArkUIRuntimeCallInfo* runtimeCallInfo); 181 static ArkUINativeModuleValue ResetOnShowFileSelector(ArkUIRuntimeCallInfo* runtimeCallInfo); 182 static ArkUINativeModuleValue SetOnContextMenuShow(ArkUIRuntimeCallInfo* runtimeCallInfo); 183 static ArkUINativeModuleValue ResetOnContextMenuShow(ArkUIRuntimeCallInfo* runtimeCallInfo); 184 static Local<panda::ObjectRef> CreateTouchEventInfoObj(EcmaVM* vm, TouchEventInfo& info); 185 static Local<panda::ObjectRef> CreateEventTargetObject(EcmaVM* vm, const BaseEventInfo& info); 186 static Local<panda::ObjectRef> CreateTouchEventInfo(EcmaVM* vm, TouchEventInfo& info); 187 static Local<panda::ObjectRef> CreateTouchInfo( 188 EcmaVM* vm, const TouchLocationInfo& touchInfo, TouchEventInfo& info); 189 static ArkUINativeModuleValue SetOnSafeBrowsingCheckResult(ArkUIRuntimeCallInfo* runtimeCallInfo); 190 static ArkUINativeModuleValue ResetOnSafeBrowsingCheckResult(ArkUIRuntimeCallInfo* runtimeCallInfo); 191 static ArkUINativeModuleValue SetNestedScroll(ArkUIRuntimeCallInfo* runtimeCallInfo); 192 static ArkUINativeModuleValue ResetNestedScroll(ArkUIRuntimeCallInfo* runtimeCallInfo); 193 static ArkUINativeModuleValue SetOnInterceptKeyEvent(ArkUIRuntimeCallInfo* runtimeCallInfo); 194 static ArkUINativeModuleValue ResetOnInterceptKeyEvent(ArkUIRuntimeCallInfo* runtimeCallInfo); 195 static ArkUINativeModuleValue SetOnErrorReceive(ArkUIRuntimeCallInfo* runtimeCallInfo); 196 static ArkUINativeModuleValue ResetOnErrorReceive(ArkUIRuntimeCallInfo* runtimeCallInfo); 197 static ArkUINativeModuleValue SetOnLoadIntercept(ArkUIRuntimeCallInfo* runtimeCallInfo); 198 static ArkUINativeModuleValue ResetOnLoadIntercept(ArkUIRuntimeCallInfo* runtimeCallInfo); 199 static ArkUINativeModuleValue SetOnHttpErrorReceive(ArkUIRuntimeCallInfo* runtimeCallInfo); 200 static ArkUINativeModuleValue ResetOnHttpErrorReceive(ArkUIRuntimeCallInfo* runtimeCallInfo); 201 static ArkUINativeModuleValue SetOnOverrideUrlLoading(ArkUIRuntimeCallInfo* runtimeCallInfo); 202 static ArkUINativeModuleValue ResetOnOverrideUrlLoading(ArkUIRuntimeCallInfo* runtimeCallInfo); 203 static ArkUINativeModuleValue SetOnHttpAuthRequest(ArkUIRuntimeCallInfo* runtimeCallInfo); 204 static ArkUINativeModuleValue ResetOnHttpAuthRequest(ArkUIRuntimeCallInfo* runtimeCallInfo); 205 static ArkUINativeModuleValue SetOnConsole(ArkUIRuntimeCallInfo* runtimeCallInfo); 206 static ArkUINativeModuleValue ResetOnConsole(ArkUIRuntimeCallInfo* runtimeCallInfo); 207 static ArkUINativeModuleValue SetOnSslErrorEvent(ArkUIRuntimeCallInfo* runtimeCallInfo); 208 static ArkUINativeModuleValue ResetOnSslErrorEvent(ArkUIRuntimeCallInfo* runtimeCallInfo); 209 static ArkUINativeModuleValue SetOnDataResubmitted(ArkUIRuntimeCallInfo* runtimeCallInfo); 210 static ArkUINativeModuleValue ResetOnDataResubmitted(ArkUIRuntimeCallInfo* runtimeCallInfo); 211 static ArkUINativeModuleValue SetGestureFocusMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 212 static ArkUINativeModuleValue ResetGestureFocusMode(ArkUIRuntimeCallInfo* runtimeCallInfo); 213 static ArkUINativeModuleValue SetOnSslErrorEventReceive(ArkUIRuntimeCallInfo* runtimeCallInfo); 214 static ArkUINativeModuleValue ResetOnSslErrorEventReceive(ArkUIRuntimeCallInfo* runtimeCallInfo); 215 static ArkUINativeModuleValue SetOnClientAuthenticationRequest(ArkUIRuntimeCallInfo* runtimeCallInfo); 216 static ArkUINativeModuleValue ResetOnClientAuthenticationRequest(ArkUIRuntimeCallInfo* runtimeCallInfo); 217 static ArkUINativeModuleValue SetOnInterceptRequest(ArkUIRuntimeCallInfo* runtimeCallInfo); 218 static ArkUINativeModuleValue ResetOnInterceptRequest(ArkUIRuntimeCallInfo* runtimeCallInfo); 219 static ArkUINativeModuleValue SetOnFaviconReceived(ArkUIRuntimeCallInfo* runtimeCallInfo); 220 static ArkUINativeModuleValue ResetOnFaviconReceived(ArkUIRuntimeCallInfo* runtimeCallInfo); 221 static ArkUINativeModuleValue SetOnBeforeUnload(ArkUIRuntimeCallInfo* runtimeCallInfo); 222 static ArkUINativeModuleValue ResetOnBeforeUnload(ArkUIRuntimeCallInfo* runtimeCallInfo); 223 static ArkUINativeModuleValue SetJavaScriptProxy(ArkUIRuntimeCallInfo* runtimeCallInfo); 224 static ArkUINativeModuleValue ResetJavaScriptProxy(ArkUIRuntimeCallInfo* runtimeCallInfo); 225 }; 226 } // namespace OHOS::Ace::NG 227 #endif 228