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 #include "cj_common_ffi.h" 17 18 extern "C" { 19 FFI_EXPORT int FfiOHOSWebviewCtlConstructor = 0; 20 FFI_EXPORT int FfiOHOSWebviewCtlConstructorWithWebTag = 0; 21 FFI_EXPORT int FfiOHOSWebviewCtlInitializeWebEngine = 0; 22 FFI_EXPORT int FfiOHOSWebviewCtlSetHttpDns = 0; 23 FFI_EXPORT int FfiOHOSWebviewCtlSetWebDebuggingAccess = 0; 24 FFI_EXPORT int FfiOHOSWebviewCtlLoadUrl = 0; 25 FFI_EXPORT int FfiOHOSWebviewCtlLoadUrlWithHeaders = 0; 26 FFI_EXPORT int FfiOHOSWebviewCtlLoadData = 0; 27 FFI_EXPORT int FfiOHOSWebviewCtlRefresh = 0; 28 FFI_EXPORT int FfiOHOSWebviewCtlGetUserAgent = 0; 29 FFI_EXPORT int FfiOHOSWebviewCtlAccessForward = 0; 30 FFI_EXPORT int FfiOHOSWebviewCtlAccessBackward = 0; 31 FFI_EXPORT int FfiOHOSWebviewCtlSetCustomUserAgent = 0; 32 FFI_EXPORT int FfiOHOSWebviewCtlGetCustomUserAgent = 0; 33 FFI_EXPORT int FfiOHOSWebviewCtlRunJavaScript = 0; 34 FFI_EXPORT int FfiOHOSWebviewCtlRegisterJavaScriptProxy = 0; 35 FFI_EXPORT int FfiOHOSWebviewCtlGetUrl = 0; 36 FFI_EXPORT int FfiOHOSWebviewCtlGetOriginalUrl = 0; 37 FFI_EXPORT int FfiOHOSWebviewCtlPageUp = 0; 38 FFI_EXPORT int FfiOHOSWebviewCtlPageDown = 0; 39 FFI_EXPORT int FfiOHOSWebviewCtlScrollTo = 0; 40 FFI_EXPORT int FfiOHOSWebviewCtlScrollBy = 0; 41 FFI_EXPORT int FfiOHOSWebviewCtlForward = 0; 42 FFI_EXPORT int FfiOHOSWebviewCtlBackward = 0; 43 FFI_EXPORT int FfiOHOSWebviewCtlBackOrForward = 0; 44 FFI_EXPORT int FfiOHOSWebviewCtlGetPageHeight = 0; 45 FFI_EXPORT int FfiOHOSWebviewCtlGetTitle = 0; 46 FFI_EXPORT int FfiOHOSWebviewCtlZoom = 0; 47 FFI_EXPORT int FfiOHOSWebviewCtlZoomIn = 0; 48 FFI_EXPORT int FfiOHOSWebviewCtlZoomOut = 0; 49 FFI_EXPORT int FfiOHOSWebviewCtlClearHistory = 0; 50 FFI_EXPORT int FfiOHOSWebviewCtlAccessStep = 0; 51 FFI_EXPORT int FfiOHOSWebviewCtlOnActive = 0; 52 FFI_EXPORT int FfiOHOSWebviewCtlOnInactive = 0; 53 FFI_EXPORT int FfiOHOSWebviewCtlGetHitTest = 0; 54 FFI_EXPORT int FfiOHOSWebviewCtlGetHitTestValue = 0; 55 FFI_EXPORT int FfiOHOSWebviewCtlStoreWebArchive = 0; 56 FFI_EXPORT int FfiOHOSWebviewCtlEnableSafeBrowsing = 0; 57 FFI_EXPORT int FfiOHOSWebviewCtlIsSafeBrowsingEnabled = 0; 58 FFI_EXPORT int FfiOHOSWebviewCtlGetSecurityLevel = 0; 59 FFI_EXPORT int FfiOHOSWebviewCtlIsIncognitoMode = 0; 60 FFI_EXPORT int FfiOHOSWebviewCtlRemoveCache = 0; 61 FFI_EXPORT int FfiOHOSWebviewCtlGetBackForwardEntries = 0; 62 FFI_EXPORT int FfiOHOSWebviewCtlStop = 0; 63 FFI_EXPORT int FfiOHOSWebviewCtlPostUrl = 0; 64 FFI_EXPORT int FfiOHOSWebviewCtlSetDownloadDelegate = 0; 65 FFI_EXPORT int FfiOHOSWebviewCtlStartDownload = 0; 66 67 // webCookieView 68 FFI_EXPORT int FfiOHOSCookieMgrClearSessionCookieSync = 0; 69 FFI_EXPORT int FfiOHOSCookieMgrClearAllCookiesSync = 0; 70 FFI_EXPORT int FfiOHOSCookieMgrExistCookie = 0; 71 FFI_EXPORT int FfiOHOSCookieMgrIsThirdPartyCookieAllowed = 0; 72 FFI_EXPORT int FfiOHOSCookieMgrPutAcceptThirdPartyCookieEnabled = 0; 73 FFI_EXPORT int FfiOHOSCookieMgrIsCookieAllowed = 0; 74 FFI_EXPORT int FfiOHOSCookieMgrPutAcceptCookieEnabled = 0; 75 FFI_EXPORT int FfiOHOSCookieMgrConfigCookieSync = 0; 76 FFI_EXPORT int FfiOHOSCookieMgrFetchCookieSync = 0; 77 78 // BackForwardList 79 FFI_EXPORT int FfiOHOSBackForwardListCurrentIndex = 0; 80 FFI_EXPORT int FfiOHOSBackForwardListSize = 0; 81 FFI_EXPORT int FfiOHOSGetItemAtIndex = 0; 82 83 // WebDownloadItemImpl 84 FFI_EXPORT int FfiOHOSWebDownloadItemImplConstructor = 0; 85 FFI_EXPORT int FfiOHOSWebDownloadItemImplGetGuid = 0; 86 FFI_EXPORT int FfiOHOSWebDownloadItemImplGetCurrentSpeed = 0; 87 FFI_EXPORT int FfiOHOSWebDownloadItemImplGetPercentComplete = 0; 88 FFI_EXPORT int FfiOHOSWebDownloadItemImplGetTotalBytes = 0; 89 FFI_EXPORT int FfiOHOSWebDownloadItemImplGetReceivedBytes = 0; 90 FFI_EXPORT int FfiOHOSWebDownloadItemImplGetState = 0; 91 FFI_EXPORT int FfiOHOSWebDownloadItemImplGetLastErrorCode = 0; 92 FFI_EXPORT int FfiOHOSWebDownloadItemImplGetMethod = 0; 93 FFI_EXPORT int FfiOHOSWebDownloadItemImplGetMimeType = 0; 94 FFI_EXPORT int FfiOHOSWebDownloadItemImplGetUrl = 0; 95 FFI_EXPORT int FfiOHOSWebDownloadItemImplGetSuggestedFileName = 0; 96 FFI_EXPORT int FfiOHOSWebDownloadItemImplGetFullPath = 0; 97 FFI_EXPORT int FfiOHOSWebDownloadItemImplStart = 0; 98 FFI_EXPORT int FfiOHOSWebDownloadItemImplCancel = 0; 99 FFI_EXPORT int FfiOHOSWebDownloadItemImplPause = 0; 100 FFI_EXPORT int FfiOHOSWebDownloadItemImplResume = 0; 101 FFI_EXPORT int FfiOHOSWebDownloadItemImplSerialize = 0; 102 FFI_EXPORT int FfiOHOSWebDownloadItemImplDeserialize = 0; 103 104 // WebDownloadDelegateImpl 105 FFI_EXPORT int FfiOHOSWebDownloadDelegateImplConstructor = 0; 106 FFI_EXPORT int FfiOHOSWebDownloadDelegateImplOnBeforeDownload = 0; 107 FFI_EXPORT int FfiOHOSWebDownloadDelegateImplOnDownloadUpdated = 0; 108 FFI_EXPORT int FfiOHOSWebDownloadDelegateImplOnDownloadFinish = 0; 109 FFI_EXPORT int FfiOHOSWebDownloadDelegateImplOnDownloadFailed = 0; 110 111 // WebDownloadManagerImpl 112 FFI_EXPORT int FfiOHOSWebDownloadManagerImplSetDownloadDelegate = 0; 113 FFI_EXPORT int FfiOHOSWebDownloadManagerImplResumeDownload = 0; 114 115 // webStorage 116 FFI_EXPORT int FfiOHOSWebStorageDeleteOrigin = 0; 117 FFI_EXPORT int FfiOHOSWebStorageDeleteAllData = 0; 118 }