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 64 // webCookieView 65 FFI_EXPORT int FfiOHOSCookieMgrClearSessionCookieSync = 0; 66 FFI_EXPORT int FfiOHOSCookieMgrClearAllCookiesSync = 0; 67 FFI_EXPORT int FfiOHOSCookieMgrExistCookie = 0; 68 FFI_EXPORT int FfiOHOSCookieMgrIsThirdPartyCookieAllowed = 0; 69 FFI_EXPORT int FfiOHOSCookieMgrPutAcceptThirdPartyCookieEnabled = 0; 70 FFI_EXPORT int FfiOHOSCookieMgrIsCookieAllowed = 0; 71 FFI_EXPORT int FfiOHOSCookieMgrPutAcceptCookieEnabled = 0; 72 FFI_EXPORT int FfiOHOSCookieMgrConfigCookieSync = 0; 73 FFI_EXPORT int FfiOHOSCookieMgrFetchCookieSync = 0; 74 75 // BackForwardList 76 FFI_EXPORT int FfiOHOSBackForwardListCurrentIndex = 0; 77 FFI_EXPORT int FfiOHOSBackForwardListSize = 0; 78 FFI_EXPORT int FfiOHOSGetItemAtIndex = 0; 79 }