mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Revert: Change index parameter types from int to size_t to make 0-based range implicit.
- Add checks that index values are >= 0. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@409 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -2663,8 +2663,8 @@ public:
|
||||
///
|
||||
// Returns true if the object has a value with the specified identifier.
|
||||
///
|
||||
/*--cef(capi_name=has_value_byindex)--*/
|
||||
virtual bool HasValue(size_t index) =0;
|
||||
/*--cef(capi_name=has_value_byindex,index_param=index)--*/
|
||||
virtual bool HasValue(int index) =0;
|
||||
|
||||
///
|
||||
// Delete the value with the specified identifier.
|
||||
@@ -2674,8 +2674,8 @@ public:
|
||||
///
|
||||
// Delete the value with the specified identifier.
|
||||
///
|
||||
/*--cef(capi_name=delete_value_byindex)--*/
|
||||
virtual bool DeleteValue(size_t index) =0;
|
||||
/*--cef(capi_name=delete_value_byindex,index_param=index)--*/
|
||||
virtual bool DeleteValue(int index) =0;
|
||||
|
||||
///
|
||||
// Returns the value with the specified identifier.
|
||||
@@ -2685,8 +2685,8 @@ public:
|
||||
///
|
||||
// Returns the value with the specified identifier.
|
||||
///
|
||||
/*--cef(capi_name=get_value_byindex)--*/
|
||||
virtual CefRefPtr<CefV8Value> GetValue(size_t index) =0;
|
||||
/*--cef(capi_name=get_value_byindex,index_param=index)--*/
|
||||
virtual CefRefPtr<CefV8Value> GetValue(int index) =0;
|
||||
|
||||
///
|
||||
// Associate a value with the specified identifier.
|
||||
@@ -2697,8 +2697,8 @@ public:
|
||||
///
|
||||
// Associate a value with the specified identifier.
|
||||
///
|
||||
/*--cef(capi_name=set_value_byindex)--*/
|
||||
virtual bool SetValue(size_t index, CefRefPtr<CefV8Value> value) =0;
|
||||
/*--cef(capi_name=set_value_byindex,index_param=index)--*/
|
||||
virtual bool SetValue(int index, CefRefPtr<CefV8Value> value) =0;
|
||||
|
||||
///
|
||||
// Register an identifier whose access will be forwarded to the CefV8Accessor
|
||||
@@ -3137,8 +3137,8 @@ public:
|
||||
///
|
||||
// Returns the value of the attribute at the specified 0-based index.
|
||||
///
|
||||
/*--cef(capi_name=get_attribute_byindex)--*/
|
||||
virtual CefString GetAttribute(size_t index) =0;
|
||||
/*--cef(capi_name=get_attribute_byindex,index_param=index)--*/
|
||||
virtual CefString GetAttribute(int index) =0;
|
||||
|
||||
///
|
||||
// Returns the value of the attribute with the specified qualified name.
|
||||
@@ -3182,8 +3182,8 @@ public:
|
||||
// Moves the cursor to the attribute at the specified 0-based index. Returns
|
||||
// true if the cursor position was set successfully.
|
||||
///
|
||||
/*--cef(capi_name=move_to_attribute_byindex)--*/
|
||||
virtual bool MoveToAttribute(size_t index) =0;
|
||||
/*--cef(capi_name=move_to_attribute_byindex,index_param=index)--*/
|
||||
virtual bool MoveToAttribute(int index) =0;
|
||||
|
||||
///
|
||||
// Moves the cursor to the attribute with the specified qualified name.
|
||||
|
@@ -2375,8 +2375,7 @@ typedef struct _cef_v8value_t
|
||||
///
|
||||
// Returns true (1) if the object has a value with the specified identifier.
|
||||
///
|
||||
int (CEF_CALLBACK *has_value_byindex)(struct _cef_v8value_t* self,
|
||||
size_t index);
|
||||
int (CEF_CALLBACK *has_value_byindex)(struct _cef_v8value_t* self, int index);
|
||||
|
||||
///
|
||||
// Delete the value with the specified identifier.
|
||||
@@ -2388,7 +2387,7 @@ typedef struct _cef_v8value_t
|
||||
// Delete the value with the specified identifier.
|
||||
///
|
||||
int (CEF_CALLBACK *delete_value_byindex)(struct _cef_v8value_t* self,
|
||||
size_t index);
|
||||
int index);
|
||||
|
||||
///
|
||||
// Returns the value with the specified identifier.
|
||||
@@ -2400,7 +2399,7 @@ typedef struct _cef_v8value_t
|
||||
// Returns the value with the specified identifier.
|
||||
///
|
||||
struct _cef_v8value_t* (CEF_CALLBACK *get_value_byindex)(
|
||||
struct _cef_v8value_t* self, size_t index);
|
||||
struct _cef_v8value_t* self, int index);
|
||||
|
||||
///
|
||||
// Associate a value with the specified identifier.
|
||||
@@ -2412,8 +2411,8 @@ typedef struct _cef_v8value_t
|
||||
///
|
||||
// Associate a value with the specified identifier.
|
||||
///
|
||||
int (CEF_CALLBACK *set_value_byindex)(struct _cef_v8value_t* self,
|
||||
size_t index, struct _cef_v8value_t* value);
|
||||
int (CEF_CALLBACK *set_value_byindex)(struct _cef_v8value_t* self, int index,
|
||||
struct _cef_v8value_t* value);
|
||||
|
||||
///
|
||||
// Register an identifier whose access will be forwarded to the
|
||||
@@ -2917,7 +2916,7 @@ typedef struct _cef_xml_reader_t
|
||||
///
|
||||
// The resulting string must be freed by calling cef_string_userfree_free().
|
||||
cef_string_userfree_t (CEF_CALLBACK *get_attribute_byindex)(
|
||||
struct _cef_xml_reader_t* self, size_t index);
|
||||
struct _cef_xml_reader_t* self, int index);
|
||||
|
||||
///
|
||||
// Returns the value of the attribute with the specified qualified name.
|
||||
@@ -2965,7 +2964,7 @@ typedef struct _cef_xml_reader_t
|
||||
// true (1) if the cursor position was set successfully.
|
||||
///
|
||||
int (CEF_CALLBACK *move_to_attribute_byindex)(struct _cef_xml_reader_t* self,
|
||||
size_t index);
|
||||
int index);
|
||||
|
||||
///
|
||||
// Moves the cursor to the attribute with the specified qualified name.
|
||||
|
Reference in New Issue
Block a user