2017-01-11 00:00:30 +01:00
|
|
|
// Copyright (c) 2017 The Chromium Embedded Framework Authors. All rights
|
2012-04-03 03:34:16 +02:00
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "libcef_dll/ctocpp/binary_value_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/dictionary_value_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/list_value_ctocpp.h"
|
2015-04-15 15:45:30 +02:00
|
|
|
#include "libcef_dll/ctocpp/value_ctocpp.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
// STATIC METHODS - Body may be edited by hand.
|
|
|
|
|
|
|
|
CefRefPtr<CefListValue> CefListValue::Create() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_list_value_t* _retval = cef_list_value_create();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefListValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
|
|
|
bool CefListValueCToCpp::IsValid() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_valid))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_valid(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefListValueCToCpp::IsOwned() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_owned))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_owned(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefListValueCToCpp::IsReadOnly() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_read_only))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_read_only(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2015-04-15 15:45:30 +02:00
|
|
|
bool CefListValueCToCpp::IsSame(CefRefPtr<CefListValue> that) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_same))
|
2015-04-15 15:45:30 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: that; type: refptr_same
|
|
|
|
DCHECK(that.get());
|
|
|
|
if (!that.get())
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_same(_struct,
|
2015-04-15 15:45:30 +02:00
|
|
|
CefListValueCToCpp::Unwrap(that));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefListValueCToCpp::IsEqual(CefRefPtr<CefListValue> that) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_equal))
|
2015-04-15 15:45:30 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: that; type: refptr_same
|
|
|
|
DCHECK(that.get());
|
|
|
|
if (!that.get())
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_equal(_struct,
|
2015-04-15 15:45:30 +02:00
|
|
|
CefListValueCToCpp::Unwrap(that));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
CefRefPtr<CefListValue> CefListValueCToCpp::Copy() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, copy))
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _retval = _struct->copy(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefListValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefListValueCToCpp::SetSize(size_t size) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_size))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_size(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
size);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
size_t CefListValueCToCpp::GetSize() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_size))
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
size_t _retval = _struct->get_size(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefListValueCToCpp::Clear() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, clear))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->clear(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
bool CefListValueCToCpp::Remove(size_t index) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, remove))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->remove(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
CefValueType CefListValueCToCpp::GetType(size_t index) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_type))
|
2012-04-03 03:34:16 +02:00
|
|
|
return VTYPE_INVALID;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_value_type_t _retval = _struct->get_type(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
CefRefPtr<CefValue> CefListValueCToCpp::GetValue(size_t index) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_value))
|
2015-04-15 15:45:30 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_value_t* _retval = _struct->get_value(_struct,
|
2015-04-15 15:45:30 +02:00
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
bool CefListValueCToCpp::GetBool(size_t index) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_bool))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->get_bool(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
int CefListValueCToCpp::GetInt(size_t index) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_int))
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->get_int(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
double CefListValueCToCpp::GetDouble(size_t index) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_double))
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
double _retval = _struct->get_double(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
CefString CefListValueCToCpp::GetString(size_t index) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_string))
|
2012-04-03 03:34:16 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_string(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
CefRefPtr<CefBinaryValue> CefListValueCToCpp::GetBinary(size_t index) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_binary))
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_binary_value_t* _retval = _struct->get_binary(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBinaryValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
CefRefPtr<CefDictionaryValue> CefListValueCToCpp::GetDictionary(size_t index) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_dictionary))
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_dictionary_value_t* _retval = _struct->get_dictionary(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDictionaryValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
CefRefPtr<CefListValue> CefListValueCToCpp::GetList(size_t index) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_list))
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _retval = _struct->get_list(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefListValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
bool CefListValueCToCpp::SetValue(size_t index, CefRefPtr<CefValue> value) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_value))
|
2015-04-15 15:45:30 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: value; type: refptr_same
|
|
|
|
DCHECK(value.get());
|
|
|
|
if (!value.get())
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_value(_struct,
|
2015-04-15 15:45:30 +02:00
|
|
|
index,
|
|
|
|
CefValueCToCpp::Unwrap(value));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
bool CefListValueCToCpp::SetNull(size_t index) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_null))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_null(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
bool CefListValueCToCpp::SetBool(size_t index, bool value) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_bool))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_bool(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index,
|
|
|
|
value);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
bool CefListValueCToCpp::SetInt(size_t index, int value) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_int))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_int(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index,
|
|
|
|
value);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
bool CefListValueCToCpp::SetDouble(size_t index, double value) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_double))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_double(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index,
|
|
|
|
value);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
bool CefListValueCToCpp::SetString(size_t index, const CefString& value) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_string))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: value
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_string(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index,
|
|
|
|
value.GetStruct());
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
bool CefListValueCToCpp::SetBinary(size_t index,
|
|
|
|
CefRefPtr<CefBinaryValue> value) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_binary))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: value; type: refptr_same
|
|
|
|
DCHECK(value.get());
|
|
|
|
if (!value.get())
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_binary(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index,
|
|
|
|
CefBinaryValueCToCpp::Unwrap(value));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
bool CefListValueCToCpp::SetDictionary(size_t index,
|
2012-04-03 03:34:16 +02:00
|
|
|
CefRefPtr<CefDictionaryValue> value) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_dictionary))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: value; type: refptr_same
|
|
|
|
DCHECK(value.get());
|
|
|
|
if (!value.get())
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_dictionary(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index,
|
|
|
|
CefDictionaryValueCToCpp::Unwrap(value));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2016-11-04 19:38:59 +01:00
|
|
|
bool CefListValueCToCpp::SetList(size_t index, CefRefPtr<CefListValue> value) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_list))
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: value; type: refptr_same
|
|
|
|
DCHECK(value.get());
|
|
|
|
if (!value.get())
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_list(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
index,
|
|
|
|
CefListValueCToCpp::Unwrap(value));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefListValueCToCpp::CefListValueCToCpp() {
|
|
|
|
}
|
|
|
|
|
2017-02-09 23:07:43 +01:00
|
|
|
template<> cef_list_value_t* CefCToCppRefCounted<CefListValueCToCpp,
|
|
|
|
CefListValue, cef_list_value_t>::UnwrapDerived(CefWrapperType type,
|
|
|
|
CefListValue* c) {
|
2015-04-26 20:40:01 +02:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2016-09-01 13:24:30 +02:00
|
|
|
#if DCHECK_IS_ON()
|
2017-02-09 23:07:43 +01:00
|
|
|
template<> base::AtomicRefCount CefCToCppRefCounted<CefListValueCToCpp,
|
|
|
|
CefListValue, cef_list_value_t>::DebugObjCt = 0;
|
2012-04-03 03:34:16 +02:00
|
|
|
#endif
|
|
|
|
|
2017-02-09 23:07:43 +01:00
|
|
|
template<> CefWrapperType CefCToCppRefCounted<CefListValueCToCpp, CefListValue,
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_list_value_t>::kWrapperType = WT_LIST_VALUE;
|