- 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:
Marshall Greenblatt
2011-12-08 01:38:30 +00:00
parent b4653ce1da
commit 64e08c2918
238 changed files with 14703 additions and 4322 deletions

View File

@ -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.
//
@ -20,103 +20,147 @@
CEF_EXPORT cef_v8context_t* cef_v8context_get_current_context()
{
CefRefPtr<CefV8Context>
contextPtr( CefV8Context::GetCurrentContext() );
if(contextPtr.get())
return CefV8ContextCppToC::Wrap(contextPtr);
return NULL;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
CefRefPtr<CefV8Context> _retval = CefV8Context::GetCurrentContext();
// Return type: refptr_same
return CefV8ContextCppToC::Wrap(_retval);
}
CEF_EXPORT cef_v8context_t* cef_v8context_get_entered_context()
{
CefRefPtr<CefV8Context>
contextPtr( CefV8Context::GetEnteredContext() );
if(contextPtr.get())
return CefV8ContextCppToC::Wrap(contextPtr);
return NULL;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
CefRefPtr<CefV8Context> _retval = CefV8Context::GetEnteredContext();
// Return type: refptr_same
return CefV8ContextCppToC::Wrap(_retval);
}
CEF_EXPORT int cef_v8context_in_context()
{
return CefV8Context::InContext();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
bool _retval = CefV8Context::InContext();
// Return type: bool
return _retval;
}
// MEMBER FUNCTIONS - Body may be edited by hand.
cef_browser_t* CEF_CALLBACK v8context_get_browser(struct _cef_v8context_t* self)
{
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if(!self)
if (!self)
return NULL;
CefRefPtr<CefV8Context> contextPtr = CefV8ContextCppToC::Get(self);
CefRefPtr<CefBrowser> browserPtr = contextPtr->GetBrowser();
if(browserPtr.get())
return CefBrowserCppToC::Wrap(browserPtr);
return NULL;
// Execute
CefRefPtr<CefBrowser> _retval = CefV8ContextCppToC::Get(self)->GetBrowser();
// Return type: refptr_same
return CefBrowserCppToC::Wrap(_retval);
}
cef_frame_t* CEF_CALLBACK v8context_get_frame(struct _cef_v8context_t* self)
{
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if(!self)
if (!self)
return NULL;
CefRefPtr<CefV8Context> contextPtr = CefV8ContextCppToC::Get(self);
CefRefPtr<CefFrame> framePtr = contextPtr->GetFrame();
if(framePtr.get())
return CefFrameCppToC::Wrap(framePtr);
return NULL;
// Execute
CefRefPtr<CefFrame> _retval = CefV8ContextCppToC::Get(self)->GetFrame();
// Return type: refptr_same
return CefFrameCppToC::Wrap(_retval);
}
struct _cef_v8value_t* CEF_CALLBACK v8context_get_global(
struct _cef_v8context_t* self)
{
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if(!self)
if (!self)
return NULL;
CefRefPtr<CefV8Context> contextPtr = CefV8ContextCppToC::Get(self);
CefRefPtr<CefV8Value> globalPtr = contextPtr->GetGlobal();
if(globalPtr.get())
return CefV8ValueCppToC::Wrap(globalPtr);
return NULL;
// Execute
CefRefPtr<CefV8Value> _retval = CefV8ContextCppToC::Get(self)->GetGlobal();
// Return type: refptr_same
return CefV8ValueCppToC::Wrap(_retval);
}
int CEF_CALLBACK v8context_enter(struct _cef_v8context_t* self)
{
DCHECK(self);
if(!self)
return false;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
CefRefPtr<CefV8Context> contextPtr = CefV8ContextCppToC::Get(self);
return contextPtr->Enter();
DCHECK(self);
if (!self)
return 0;
// Execute
bool _retval = CefV8ContextCppToC::Get(self)->Enter();
// Return type: bool
return _retval;
}
int CEF_CALLBACK v8context_exit(struct _cef_v8context_t* self)
{
DCHECK(self);
if(!self)
return false;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
CefRefPtr<CefV8Context> contextPtr = CefV8ContextCppToC::Get(self);
return contextPtr->Exit();
DCHECK(self);
if (!self)
return 0;
// Execute
bool _retval = CefV8ContextCppToC::Get(self)->Exit();
// Return type: bool
return _retval;
}
int CEF_CALLBACK v8context_is_same(struct _cef_v8context_t* self,
struct _cef_v8context_t* that)
{
DCHECK(self);
DCHECK(that);
if (!self || !that)
return false;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
return CefV8ContextCppToC::Get(self)->IsSame(
DCHECK(self);
if (!self)
return 0;
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
return 0;
// Execute
bool _retval = CefV8ContextCppToC::Get(self)->IsSame(
CefV8ContextCppToC::Unwrap(that));
// Return type: bool
return _retval;
}
// CONSTRUCTOR - Do not edit by hand.
CefV8ContextCppToC::CefV8ContextCppToC(CefV8Context* cls)