// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------------- // // This file was generated by the CEF translator tool. If making changes by // hand only do so within the body of existing method and function // implementations. See the translator.README.txt file in the tools directory // for more information. // // $hash=cab5b018f6706a3c8496865e0c9f30fcbc94cdd8$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_V8VALUE_CTOCPP_H_ #define CEF_LIBCEF_DLL_CTOCPP_V8VALUE_CTOCPP_H_ #pragma once #if !defined(WRAPPING_CEF_SHARED) #error This file can be included wrapper-side only #endif #include #include "include/capi/cef_v8_capi.h" #include "include/cef_v8.h" #include "libcef_dll/ctocpp/ctocpp_ref_counted.h" // Wrap a C structure with a C++ class. // This class may be instantiated and accessed wrapper-side only. class CefV8ValueCToCpp : public CefCToCppRefCounted { public: CefV8ValueCToCpp(); virtual ~CefV8ValueCToCpp(); // CefV8Value methods. bool IsValid() override; bool IsUndefined() override; bool IsNull() override; bool IsBool() override; bool IsInt() override; bool IsUInt() override; bool IsDouble() override; bool IsDate() override; bool IsString() override; bool IsObject() override; bool IsArray() override; bool IsArrayBuffer() override; bool IsFunction() override; bool IsPromise() override; bool IsSame(CefRefPtr that) override; bool GetBoolValue() override; int32_t GetIntValue() override; uint32_t GetUIntValue() override; double GetDoubleValue() override; CefBaseTime GetDateValue() override; CefString GetStringValue() override; bool IsUserCreated() override; bool HasException() override; CefRefPtr GetException() override; bool ClearException() override; bool WillRethrowExceptions() override; bool SetRethrowExceptions(bool rethrow) override; bool HasValue(const CefString& key) override; bool HasValue(int index) override; bool DeleteValue(const CefString& key) override; bool DeleteValue(int index) override; CefRefPtr GetValue(const CefString& key) override; CefRefPtr GetValue(int index) override; bool SetValue(const CefString& key, CefRefPtr value, PropertyAttribute attribute) override; bool SetValue(int index, CefRefPtr value) override; bool SetValue(const CefString& key, AccessControl settings, PropertyAttribute attribute) override; bool GetKeys(std::vector& keys) override; bool SetUserData(CefRefPtr user_data) override; CefRefPtr GetUserData() override; int GetExternallyAllocatedMemory() override; int AdjustExternallyAllocatedMemory(int change_in_bytes) override; int GetArrayLength() override; CefRefPtr GetArrayBufferReleaseCallback() override; bool NeuterArrayBuffer() override; CefString GetFunctionName() override; CefRefPtr GetFunctionHandler() override; CefRefPtr ExecuteFunction( CefRefPtr object, const CefV8ValueList& arguments) override; CefRefPtr ExecuteFunctionWithContext( CefRefPtr context, CefRefPtr object, const CefV8ValueList& arguments) override; bool ResolvePromise(CefRefPtr arg) override; bool RejectPromise(const CefString& errorMsg) override; }; #endif // CEF_LIBCEF_DLL_CTOCPP_V8VALUE_CTOCPP_H_