mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Apply clang-format to all C, C++ and ObjC files (issue #2171)
This commit is contained in:
@ -9,17 +9,18 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=bf4251a1aeebda1ec6014743d22a9617852fe5cc$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/domdocument_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/domnode_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
cef_dom_document_type_t CEF_CALLBACK domdocument_get_type(
|
||||
struct _cef_domdocument_t* self) {
|
||||
cef_dom_document_type_t CEF_CALLBACK
|
||||
domdocument_get_type(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -33,8 +34,8 @@ cef_dom_document_type_t CEF_CALLBACK domdocument_get_type(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_document(
|
||||
struct _cef_domdocument_t* self) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_document(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -42,15 +43,15 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_document(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDOMNode> _retval = CefDOMDocumentCppToC::Get(self)->GetDocument(
|
||||
);
|
||||
CefRefPtr<CefDOMNode> _retval =
|
||||
CefDOMDocumentCppToC::Get(self)->GetDocument();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_body(
|
||||
struct _cef_domdocument_t* self) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_body(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -64,8 +65,8 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_body(
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_head(
|
||||
struct _cef_domdocument_t* self) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_head(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -79,8 +80,8 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_head(
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_title(
|
||||
struct _cef_domdocument_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_title(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -94,8 +95,9 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_title(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_element_by_id(
|
||||
struct _cef_domdocument_t* self, const cef_string_t* id) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_element_by_id(struct _cef_domdocument_t* self,
|
||||
const cef_string_t* id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -107,16 +109,15 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_element_by_id(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDOMNode> _retval = CefDOMDocumentCppToC::Get(
|
||||
self)->GetElementById(
|
||||
CefString(id));
|
||||
CefRefPtr<CefDOMNode> _retval =
|
||||
CefDOMDocumentCppToC::Get(self)->GetElementById(CefString(id));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_focused_node(
|
||||
struct _cef_domdocument_t* self) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_focused_node(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -124,8 +125,8 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_focused_node(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDOMNode> _retval = CefDOMDocumentCppToC::Get(
|
||||
self)->GetFocusedNode();
|
||||
CefRefPtr<CefDOMNode> _retval =
|
||||
CefDOMDocumentCppToC::Get(self)->GetFocusedNode();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
@ -145,8 +146,8 @@ int CEF_CALLBACK domdocument_has_selection(struct _cef_domdocument_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domdocument_get_selection_start_offset(
|
||||
struct _cef_domdocument_t* self) {
|
||||
int CEF_CALLBACK
|
||||
domdocument_get_selection_start_offset(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -160,8 +161,8 @@ int CEF_CALLBACK domdocument_get_selection_start_offset(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domdocument_get_selection_end_offset(
|
||||
struct _cef_domdocument_t* self) {
|
||||
int CEF_CALLBACK
|
||||
domdocument_get_selection_end_offset(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -175,8 +176,8 @@ int CEF_CALLBACK domdocument_get_selection_end_offset(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_selection_as_markup(
|
||||
struct _cef_domdocument_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_selection_as_markup(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -190,8 +191,8 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_selection_as_markup(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_selection_as_text(
|
||||
struct _cef_domdocument_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_selection_as_text(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -205,8 +206,8 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_selection_as_text(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_base_url(
|
||||
struct _cef_domdocument_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_base_url(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -220,8 +221,9 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_base_url(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_complete_url(
|
||||
struct _cef_domdocument_t* self, const cef_string_t* partialURL) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_complete_url(struct _cef_domdocument_t* self,
|
||||
const cef_string_t* partialURL) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -233,8 +235,8 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_complete_url(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefString _retval = CefDOMDocumentCppToC::Get(self)->GetCompleteURL(
|
||||
CefString(partialURL));
|
||||
CefString _retval =
|
||||
CefDOMDocumentCppToC::Get(self)->GetCompleteURL(CefString(partialURL));
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
@ -242,7 +244,6 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_complete_url(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDOMDocumentCppToC::CefDOMDocumentCppToC() {
|
||||
@ -263,17 +264,23 @@ CefDOMDocumentCppToC::CefDOMDocumentCppToC() {
|
||||
GetStruct()->get_complete_url = domdocument_get_complete_url;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefDOMDocument> CefCppToCRefCounted<CefDOMDocumentCppToC,
|
||||
CefDOMDocument, cef_domdocument_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_domdocument_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefDOMDocument>
|
||||
CefCppToCRefCounted<CefDOMDocumentCppToC, CefDOMDocument, cef_domdocument_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_domdocument_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefDOMDocumentCppToC,
|
||||
CefDOMDocument, cef_domdocument_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefDOMDocumentCppToC,
|
||||
CefDOMDocument,
|
||||
cef_domdocument_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefDOMDocumentCppToC,
|
||||
CefDOMDocument, cef_domdocument_t>::kWrapperType = WT_DOMDOCUMENT;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefDOMDocumentCppToC,
|
||||
CefDOMDocument,
|
||||
cef_domdocument_t>::kWrapperType =
|
||||
WT_DOMDOCUMENT;
|
||||
|
Reference in New Issue
Block a user