// Copyright (c) 2021 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=69d5e62435d2481e821ce512ec9b609246add4e7$ // #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 IsSame(CefRefPtr that) override; bool GetBoolValue() override; int32 GetIntValue() override; uint32 GetUIntValue() override; double GetDoubleValue() override; CefTime 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; }; #endif // CEF_LIBCEF_DLL_CTOCPP_V8VALUE_CTOCPP_H_