1 // Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights 2 // reserved. Use of this source code is governed by a BSD-style license that 3 // can be found in the LICENSE file. 4 // 5 // --------------------------------------------------------------------------- 6 // 7 // This file was generated by the CEF translator tool. If making changes by 8 // hand only do so within the body of existing method and function 9 // implementations. See the translator.README.txt file in the tools directory 10 // for more information. 11 // 12 // $hash=2c6664443a865936b74fcea903f131011736d689$ 13 // 14 15 #ifndef CEF_LIBCEF_DLL_CTOCPP_LIST_VALUE_CTOCPP_H_ 16 #define CEF_LIBCEF_DLL_CTOCPP_LIST_VALUE_CTOCPP_H_ 17 #pragma once 18 19 #if !defined(WRAPPING_CEF_SHARED) 20 #error This file can be included wrapper-side only 21 #endif 22 23 #include "include/capi/cef_values_capi.h" 24 #include "include/cef_values.h" 25 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h" 26 27 // Wrap a C structure with a C++ class. 28 // This class may be instantiated and accessed wrapper-side only. 29 class CefListValueCToCpp : public CefCToCppRefCounted<CefListValueCToCpp, 30 CefListValue, 31 cef_list_value_t> { 32 public: 33 CefListValueCToCpp(); 34 virtual ~CefListValueCToCpp(); 35 36 // CefListValue methods. 37 bool IsValid() override; 38 bool IsOwned() override; 39 bool IsReadOnly() override; 40 bool IsSame(CefRefPtr<CefListValue> that) override; 41 bool IsEqual(CefRefPtr<CefListValue> that) override; 42 CefRefPtr<CefListValue> Copy() override; 43 bool SetSize(size_t size) override; 44 size_t GetSize() override; 45 bool Clear() override; 46 bool Remove(size_t index) override; 47 CefValueType GetType(size_t index) override; 48 CefRefPtr<CefValue> GetValue(size_t index) override; 49 bool GetBool(size_t index) override; 50 int GetInt(size_t index) override; 51 double GetDouble(size_t index) override; 52 CefString GetString(size_t index) override; 53 CefRefPtr<CefBinaryValue> GetBinary(size_t index) override; 54 CefRefPtr<CefDictionaryValue> GetDictionary(size_t index) override; 55 CefRefPtr<CefListValue> GetList(size_t index) override; 56 bool SetValue(size_t index, CefRefPtr<CefValue> value) override; 57 bool SetNull(size_t index) override; 58 bool SetBool(size_t index, bool value) override; 59 bool SetInt(size_t index, int value) override; 60 bool SetDouble(size_t index, double value) override; 61 bool SetString(size_t index, const CefString& value) override; 62 bool SetBinary(size_t index, CefRefPtr<CefBinaryValue> value) override; 63 bool SetDictionary(size_t index, 64 CefRefPtr<CefDictionaryValue> value) override; 65 bool SetList(size_t index, CefRefPtr<CefListValue> value) override; 66 }; 67 68 #endif // CEF_LIBCEF_DLL_CTOCPP_LIST_VALUE_CTOCPP_H_ 69