mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Change index parameter type from int to size_t (issue #1491)
This commit is contained in:
@ -174,16 +174,13 @@ int CEF_CALLBACK list_value_clear(struct _cef_list_value_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_remove(struct _cef_list_value_t* self, int index) {
|
||||
int CEF_CALLBACK list_value_remove(struct _cef_list_value_t* self,
|
||||
size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->Remove(
|
||||
@ -194,16 +191,12 @@ int CEF_CALLBACK list_value_remove(struct _cef_list_value_t* self, int index) {
|
||||
}
|
||||
|
||||
cef_value_type_t CEF_CALLBACK list_value_get_type(
|
||||
struct _cef_list_value_t* self, int index) {
|
||||
struct _cef_list_value_t* self, size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return VTYPE_INVALID;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return VTYPE_INVALID;
|
||||
|
||||
// Execute
|
||||
cef_value_type_t _retval = CefListValueCppToC::Get(self)->GetType(
|
||||
@ -214,16 +207,12 @@ cef_value_type_t CEF_CALLBACK list_value_get_type(
|
||||
}
|
||||
|
||||
cef_value_t* CEF_CALLBACK list_value_get_value(struct _cef_list_value_t* self,
|
||||
int index) {
|
||||
size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return NULL;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefValue> _retval = CefListValueCppToC::Get(self)->GetValue(
|
||||
@ -234,16 +223,12 @@ cef_value_t* CEF_CALLBACK list_value_get_value(struct _cef_list_value_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_get_bool(struct _cef_list_value_t* self,
|
||||
int index) {
|
||||
size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->GetBool(
|
||||
@ -253,16 +238,13 @@ int CEF_CALLBACK list_value_get_bool(struct _cef_list_value_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_get_int(struct _cef_list_value_t* self, int index) {
|
||||
int CEF_CALLBACK list_value_get_int(struct _cef_list_value_t* self,
|
||||
size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
int _retval = CefListValueCppToC::Get(self)->GetInt(
|
||||
@ -273,16 +255,12 @@ int CEF_CALLBACK list_value_get_int(struct _cef_list_value_t* self, int index) {
|
||||
}
|
||||
|
||||
double CEF_CALLBACK list_value_get_double(struct _cef_list_value_t* self,
|
||||
int index) {
|
||||
size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
double _retval = CefListValueCppToC::Get(self)->GetDouble(
|
||||
@ -293,16 +271,12 @@ double CEF_CALLBACK list_value_get_double(struct _cef_list_value_t* self,
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK list_value_get_string(
|
||||
struct _cef_list_value_t* self, int index) {
|
||||
struct _cef_list_value_t* self, size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return NULL;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefString _retval = CefListValueCppToC::Get(self)->GetString(
|
||||
@ -313,16 +287,12 @@ cef_string_userfree_t CEF_CALLBACK list_value_get_string(
|
||||
}
|
||||
|
||||
cef_binary_value_t* CEF_CALLBACK list_value_get_binary(
|
||||
struct _cef_list_value_t* self, int index) {
|
||||
struct _cef_list_value_t* self, size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return NULL;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefBinaryValue> _retval = CefListValueCppToC::Get(self)->GetBinary(
|
||||
@ -333,16 +303,12 @@ cef_binary_value_t* CEF_CALLBACK list_value_get_binary(
|
||||
}
|
||||
|
||||
cef_dictionary_value_t* CEF_CALLBACK list_value_get_dictionary(
|
||||
struct _cef_list_value_t* self, int index) {
|
||||
struct _cef_list_value_t* self, size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return NULL;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDictionaryValue> _retval = CefListValueCppToC::Get(
|
||||
@ -354,16 +320,12 @@ cef_dictionary_value_t* CEF_CALLBACK list_value_get_dictionary(
|
||||
}
|
||||
|
||||
struct _cef_list_value_t* CEF_CALLBACK list_value_get_list(
|
||||
struct _cef_list_value_t* self, int index) {
|
||||
struct _cef_list_value_t* self, size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return NULL;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefListValue> _retval = CefListValueCppToC::Get(self)->GetList(
|
||||
@ -373,17 +335,13 @@ struct _cef_list_value_t* CEF_CALLBACK list_value_get_list(
|
||||
return CefListValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_value(struct _cef_list_value_t* self, int index,
|
||||
cef_value_t* value) {
|
||||
int CEF_CALLBACK list_value_set_value(struct _cef_list_value_t* self,
|
||||
size_t index, cef_value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
// Verify param: value; type: refptr_same
|
||||
DCHECK(value);
|
||||
if (!value)
|
||||
@ -399,16 +357,12 @@ int CEF_CALLBACK list_value_set_value(struct _cef_list_value_t* self, int index,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_null(struct _cef_list_value_t* self,
|
||||
int index) {
|
||||
size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetNull(
|
||||
@ -418,17 +372,13 @@ int CEF_CALLBACK list_value_set_null(struct _cef_list_value_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_bool(struct _cef_list_value_t* self, int index,
|
||||
int value) {
|
||||
int CEF_CALLBACK list_value_set_bool(struct _cef_list_value_t* self,
|
||||
size_t index, int value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetBool(
|
||||
@ -439,17 +389,13 @@ int CEF_CALLBACK list_value_set_bool(struct _cef_list_value_t* self, int index,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_int(struct _cef_list_value_t* self, int index,
|
||||
int value) {
|
||||
int CEF_CALLBACK list_value_set_int(struct _cef_list_value_t* self,
|
||||
size_t index, int value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetInt(
|
||||
@ -461,16 +407,12 @@ int CEF_CALLBACK list_value_set_int(struct _cef_list_value_t* self, int index,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_double(struct _cef_list_value_t* self,
|
||||
int index, double value) {
|
||||
size_t index, double value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetDouble(
|
||||
@ -482,16 +424,12 @@ int CEF_CALLBACK list_value_set_double(struct _cef_list_value_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_string(struct _cef_list_value_t* self,
|
||||
int index, const cef_string_t* value) {
|
||||
size_t index, const cef_string_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
// Unverified params: value
|
||||
|
||||
// Execute
|
||||
@ -504,16 +442,12 @@ int CEF_CALLBACK list_value_set_string(struct _cef_list_value_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_binary(struct _cef_list_value_t* self,
|
||||
int index, cef_binary_value_t* value) {
|
||||
size_t index, cef_binary_value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
// Verify param: value; type: refptr_same
|
||||
DCHECK(value);
|
||||
if (!value)
|
||||
@ -529,16 +463,12 @@ int CEF_CALLBACK list_value_set_binary(struct _cef_list_value_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_dictionary(struct _cef_list_value_t* self,
|
||||
int index, cef_dictionary_value_t* value) {
|
||||
size_t index, cef_dictionary_value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
// Verify param: value; type: refptr_same
|
||||
DCHECK(value);
|
||||
if (!value)
|
||||
@ -553,17 +483,13 @@ int CEF_CALLBACK list_value_set_dictionary(struct _cef_list_value_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_list(struct _cef_list_value_t* self, int index,
|
||||
struct _cef_list_value_t* value) {
|
||||
int CEF_CALLBACK list_value_set_list(struct _cef_list_value_t* self,
|
||||
size_t index, struct _cef_list_value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
// Verify param: value; type: refptr_same
|
||||
DCHECK(value);
|
||||
if (!value)
|
||||
|
Reference in New Issue
Block a user