2016-01-08 20:00:27 +01:00
|
|
|
// Copyright (c) 2016 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefListValueCToCpp::Remove(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefValueType CefListValueCToCpp::GetType(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return VTYPE_INVALID;
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
2015-04-15 15:45:30 +02:00
|
|
|
CefRefPtr<CefValue> CefListValueCToCpp::GetValue(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
bool CefListValueCToCpp::GetBool(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CefListValueCToCpp::GetInt(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
double CefListValueCToCpp::GetDouble(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefListValueCToCpp::GetString(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefBinaryValue> CefListValueCToCpp::GetBinary(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefDictionaryValue> CefListValueCToCpp::GetDictionary(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefListValue> CefListValueCToCpp::GetList(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
2015-04-15 15:45:30 +02:00
|
|
|
bool CefListValueCToCpp::SetValue(int 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: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
bool CefListValueCToCpp::SetNull(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefListValueCToCpp::SetBool(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefListValueCToCpp::SetInt(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefListValueCToCpp::SetDouble(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefListValueCToCpp::SetString(int 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
|
|
|
|
|
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefListValueCToCpp::SetBinary(int 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: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefListValueCToCpp::SetDictionary(int index,
|
|
|
|
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: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefListValueCToCpp::SetList(int 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: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
|
|
|
if (index < 0)
|
|
|
|
return false;
|
|
|
|
// 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() {
|
|
|
|
}
|
|
|
|
|
|
|
|
template<> cef_list_value_t* CefCToCpp<CefListValueCToCpp, CefListValue,
|
|
|
|
cef_list_value_t>::UnwrapDerived(CefWrapperType type, CefListValue* c) {
|
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
#ifndef NDEBUG
|
2014-07-15 00:18:51 +02:00
|
|
|
template<> base::AtomicRefCount CefCToCpp<CefListValueCToCpp, CefListValue,
|
2012-04-03 03:34:16 +02:00
|
|
|
cef_list_value_t>::DebugObjCt = 0;
|
|
|
|
#endif
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
template<> CefWrapperType CefCToCpp<CefListValueCToCpp, CefListValue,
|
|
|
|
cef_list_value_t>::kWrapperType = WT_LIST_VALUE;
|