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.
|
||||
//
|
||||
@ -20,93 +20,140 @@
|
||||
cef_string_userfree_t CEF_CALLBACK domevent_get_type(
|
||||
struct _cef_domevent_t* self)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return NULL;
|
||||
|
||||
CefString str = CefDOMEventCppToC::Get(self)->GetType();
|
||||
return str.DetachToUserFree();
|
||||
// Execute
|
||||
CefString _retval = CefDOMEventCppToC::Get(self)->GetType();
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
|
||||
enum cef_dom_event_category_t CEF_CALLBACK domevent_get_category(
|
||||
struct _cef_domevent_t* self)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return DOM_EVENT_CATEGORY_UNKNOWN;
|
||||
|
||||
return CefDOMEventCppToC::Get(self)->GetCategory();
|
||||
// Execute
|
||||
cef_dom_event_category_t _retval = CefDOMEventCppToC::Get(self)->GetCategory(
|
||||
);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
|
||||
enum cef_dom_event_phase_t CEF_CALLBACK domevent_get_phase(
|
||||
struct _cef_domevent_t* self)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return DOM_EVENT_PHASE_UNKNOWN;
|
||||
|
||||
return CefDOMEventCppToC::Get(self)->GetPhase();
|
||||
// Execute
|
||||
cef_dom_event_phase_t _retval = CefDOMEventCppToC::Get(self)->GetPhase();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
|
||||
int CEF_CALLBACK domevent_can_bubble(struct _cef_domevent_t* self)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return 0;
|
||||
|
||||
return CefDOMEventCppToC::Get(self)->CanBubble();
|
||||
// Execute
|
||||
bool _retval = CefDOMEventCppToC::Get(self)->CanBubble();
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
|
||||
int CEF_CALLBACK domevent_can_cancel(struct _cef_domevent_t* self)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return 0;
|
||||
|
||||
return CefDOMEventCppToC::Get(self)->CanCancel();
|
||||
// Execute
|
||||
bool _retval = CefDOMEventCppToC::Get(self)->CanCancel();
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
|
||||
cef_domdocument_t* CEF_CALLBACK domevent_get_document(
|
||||
struct _cef_domevent_t* self)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return NULL;
|
||||
|
||||
CefRefPtr<CefDOMDocument> documentPtr =
|
||||
CefDOMEventCppToC::Get(self)->GetDocument();
|
||||
if (documentPtr.get())
|
||||
return CefDOMDocumentCppToC::Wrap(documentPtr);
|
||||
return NULL;
|
||||
// Execute
|
||||
CefRefPtr<CefDOMDocument> _retval = CefDOMEventCppToC::Get(self)->GetDocument(
|
||||
);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDOMDocumentCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
cef_domnode_t* CEF_CALLBACK domevent_get_target(struct _cef_domevent_t* self)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return NULL;
|
||||
|
||||
CefRefPtr<CefDOMNode> nodePtr = CefDOMEventCppToC::Get(self)->GetTarget();
|
||||
if (nodePtr.get())
|
||||
return CefDOMNodeCppToC::Wrap(nodePtr);
|
||||
return NULL;
|
||||
// Execute
|
||||
CefRefPtr<CefDOMNode> _retval = CefDOMEventCppToC::Get(self)->GetTarget();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
cef_domnode_t* CEF_CALLBACK domevent_get_current_target(
|
||||
struct _cef_domevent_t* self)
|
||||
{
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if(!self)
|
||||
if (!self)
|
||||
return NULL;
|
||||
|
||||
CefRefPtr<CefDOMNode> nodePtr =
|
||||
CefDOMEventCppToC::Get(self)->GetCurrentTarget();
|
||||
if (nodePtr.get())
|
||||
return CefDOMNodeCppToC::Wrap(nodePtr);
|
||||
return NULL;
|
||||
// Execute
|
||||
CefRefPtr<CefDOMNode> _retval = CefDOMEventCppToC::Get(
|
||||
self)->GetCurrentTarget();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDOMEventCppToC::CefDOMEventCppToC(CefDOMEvent* cls)
|
||||
|
Reference in New Issue
Block a user