Make |string| parameter to CefStringVisitor::Visit optional (issue #1216).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1635 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2014-03-12 14:49:11 +00:00
parent cf348f7b83
commit 1d798844b6
3 changed files with 3 additions and 9 deletions

View File

@ -48,7 +48,7 @@ class CefStringVisitor : public virtual CefBase {
///
// Method that will be executed.
///
/*--cef()--*/
/*--cef(optional_param=string)--*/
virtual void Visit(const CefString& string) =0;
};

View File

@ -22,10 +22,7 @@ void CEF_CALLBACK string_visitor_visit(struct _cef_string_visitor_t* self,
DCHECK(self);
if (!self)
return;
// Verify param: string; type: string_byref_const
DCHECK(string);
if (!string)
return;
// Unverified params: string
// Execute
CefStringVisitorCppToC::Get(self)->Visit(

View File

@ -21,10 +21,7 @@ void CefStringVisitorCToCpp::Visit(const CefString& string) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: string; type: string_byref_const
DCHECK(!string.empty());
if (string.empty())
return;
// Unverified params: string
// Execute
struct_->visit(struct_,