mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Auto-generate all C/C++ translation code (issue #33).
- Change index parameter types from int to size_t to make 0-based range implicit. - Make CefPrintOptions and CefMenuInfo proper wrapper classes. - Normalize the naming of menu-related types. - Remove unused command_line variable from test_suite.cc. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@408 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -4,8 +4,8 @@
|
||||
//
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
// A portion of this file was generated by the CEF translator tool. When
|
||||
// making changes by hand only do so within the body of existing function
|
||||
// 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.
|
||||
//
|
||||
@ -18,102 +18,179 @@
|
||||
|
||||
int CEF_CALLBACK response_get_status(struct _cef_response_t* self)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return 0;
|
||||
|
||||
return CefResponseCppToC::Get(self)->GetStatus();
|
||||
// Execute
|
||||
int _retval = CefResponseCppToC::Get(self)->GetStatus();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
|
||||
void CEF_CALLBACK response_set_status(struct _cef_response_t* self, int status)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return;
|
||||
|
||||
CefResponseCppToC::Get(self)->SetStatus(status);
|
||||
// Execute
|
||||
CefResponseCppToC::Get(self)->SetStatus(
|
||||
status);
|
||||
}
|
||||
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK response_get_status_text(
|
||||
struct _cef_response_t* self)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return NULL;
|
||||
|
||||
CefString text = CefResponseCppToC::Get(self)->GetStatusText();
|
||||
return text.DetachToUserFree();
|
||||
// Execute
|
||||
CefString _retval = CefResponseCppToC::Get(self)->GetStatusText();
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
|
||||
void CEF_CALLBACK response_set_status_text(struct _cef_response_t* self,
|
||||
const cef_string_t* statusText)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return;
|
||||
// Verify param: statusText; type: string_byref_const
|
||||
DCHECK(statusText);
|
||||
if (!statusText)
|
||||
return;
|
||||
|
||||
CefResponseCppToC::Get(self)->SetStatusText(CefString(statusText));
|
||||
// Execute
|
||||
CefResponseCppToC::Get(self)->SetStatusText(
|
||||
CefString(statusText));
|
||||
}
|
||||
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK response_get_mime_type(
|
||||
struct _cef_response_t* self)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return NULL;
|
||||
|
||||
CefString text = CefResponseCppToC::Get(self)->GetMimeType();
|
||||
return text.DetachToUserFree();
|
||||
// Execute
|
||||
CefString _retval = CefResponseCppToC::Get(self)->GetMimeType();
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
|
||||
void CEF_CALLBACK response_set_mime_type(struct _cef_response_t* self,
|
||||
const cef_string_t* mimeType)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return;
|
||||
// Verify param: mimeType; type: string_byref_const
|
||||
DCHECK(mimeType);
|
||||
if (!mimeType)
|
||||
return;
|
||||
|
||||
CefResponseCppToC::Get(self)->SetMimeType(CefString(mimeType));
|
||||
// Execute
|
||||
CefResponseCppToC::Get(self)->SetMimeType(
|
||||
CefString(mimeType));
|
||||
}
|
||||
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK response_get_header(
|
||||
struct _cef_response_t* self, const cef_string_t* name)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return NULL;
|
||||
// Verify param: name; type: string_byref_const
|
||||
DCHECK(name);
|
||||
if (!name)
|
||||
return NULL;
|
||||
|
||||
CefString text = CefResponseCppToC::Get(self)->GetHeader(CefString(name));
|
||||
return text.DetachToUserFree();
|
||||
// Execute
|
||||
CefString _retval = CefResponseCppToC::Get(self)->GetHeader(
|
||||
CefString(name));
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
|
||||
void CEF_CALLBACK response_get_header_map(struct _cef_response_t* self,
|
||||
cef_string_multimap_t headerMap)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return;
|
||||
// Verify param: headerMap; type: string_map_multi_byref
|
||||
DCHECK(headerMap);
|
||||
if (!headerMap)
|
||||
return;
|
||||
|
||||
CefResponse::HeaderMap map;
|
||||
CefResponseCppToC::Get(self)->GetHeaderMap(map);
|
||||
transfer_string_multimap_contents(map, headerMap);
|
||||
// Translate param: headerMap; type: string_map_multi_byref
|
||||
std::multimap<CefString,CefString> headerMapMultimap;
|
||||
transfer_string_multimap_contents(headerMap, headerMapMultimap);
|
||||
|
||||
// Execute
|
||||
CefResponseCppToC::Get(self)->GetHeaderMap(
|
||||
headerMapMultimap);
|
||||
|
||||
// Restore param: headerMap; type: string_map_multi_byref
|
||||
cef_string_multimap_clear(headerMap);
|
||||
transfer_string_multimap_contents(headerMapMultimap, headerMap);
|
||||
}
|
||||
|
||||
|
||||
void CEF_CALLBACK response_set_header_map(struct _cef_response_t* self,
|
||||
cef_string_multimap_t headerMap)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return;
|
||||
// Verify param: headerMap; type: string_map_multi_byref_const
|
||||
DCHECK(headerMap);
|
||||
if (!headerMap)
|
||||
return;
|
||||
|
||||
CefResponse::HeaderMap map;
|
||||
if(headerMap)
|
||||
transfer_string_multimap_contents(headerMap, map);
|
||||
// Translate param: headerMap; type: string_map_multi_byref_const
|
||||
std::multimap<CefString,CefString> headerMapMultimap;
|
||||
transfer_string_multimap_contents(headerMap, headerMapMultimap);
|
||||
|
||||
CefResponseCppToC::Get(self)->SetHeaderMap(map);
|
||||
// Execute
|
||||
CefResponseCppToC::Get(self)->SetHeaderMap(
|
||||
headerMapMultimap);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefResponseCppToC::CefResponseCppToC(CefResponse* cls)
|
||||
|
Reference in New Issue
Block a user