Merge revision 1635 changes:
- Make |string| parameter to CefStringVisitor::Visit optional (issue #1216). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1750@1636 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
804b4255ba
commit
ae00d26f1b
|
@ -48,7 +48,7 @@ class CefStringVisitor : public virtual CefBase {
|
||||||
///
|
///
|
||||||
// Method that will be executed.
|
// Method that will be executed.
|
||||||
///
|
///
|
||||||
/*--cef()--*/
|
/*--cef(optional_param=string)--*/
|
||||||
virtual void Visit(const CefString& string) =0;
|
virtual void Visit(const CefString& string) =0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -22,10 +22,7 @@ void CEF_CALLBACK string_visitor_visit(struct _cef_string_visitor_t* self,
|
||||||
DCHECK(self);
|
DCHECK(self);
|
||||||
if (!self)
|
if (!self)
|
||||||
return;
|
return;
|
||||||
// Verify param: string; type: string_byref_const
|
// Unverified params: string
|
||||||
DCHECK(string);
|
|
||||||
if (!string)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Execute
|
// Execute
|
||||||
CefStringVisitorCppToC::Get(self)->Visit(
|
CefStringVisitorCppToC::Get(self)->Visit(
|
||||||
|
|
|
@ -21,10 +21,7 @@ void CefStringVisitorCToCpp::Visit(const CefString& string) {
|
||||||
|
|
||||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||||
|
|
||||||
// Verify param: string; type: string_byref_const
|
// Unverified params: string
|
||||||
DCHECK(!string.empty());
|
|
||||||
if (string.empty())
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Execute
|
// Execute
|
||||||
struct_->visit(struct_,
|
struct_->visit(struct_,
|
||||||
|
|
Loading…
Reference in New Issue