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,12 +9,13 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=c383834c864fc6235749c096939144303ea23af1$
|
||||
//
|
||||
|
||||
#include "libcef_dll/ctocpp/domdocument_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/domnode_ctocpp.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
CefDOMNode::Type CefDOMNodeCToCpp::GetType() {
|
||||
@@ -42,7 +43,7 @@ bool CefDOMNodeCToCpp::IsText() {
|
||||
int _retval = _struct->is_text(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefDOMNodeCToCpp::IsElement() {
|
||||
@@ -56,7 +57,7 @@ bool CefDOMNodeCToCpp::IsElement() {
|
||||
int _retval = _struct->is_element(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefDOMNodeCToCpp::IsEditable() {
|
||||
@@ -70,7 +71,7 @@ bool CefDOMNodeCToCpp::IsEditable() {
|
||||
int _retval = _struct->is_editable(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefDOMNodeCToCpp::IsFormControlElement() {
|
||||
@@ -84,7 +85,7 @@ bool CefDOMNodeCToCpp::IsFormControlElement() {
|
||||
int _retval = _struct->is_form_control_element(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefString CefDOMNodeCToCpp::GetFormControlElementType() {
|
||||
@@ -95,8 +96,8 @@ CefString CefDOMNodeCToCpp::GetFormControlElementType() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_string_userfree_t _retval = _struct->get_form_control_element_type(
|
||||
_struct);
|
||||
cef_string_userfree_t _retval =
|
||||
_struct->get_form_control_element_type(_struct);
|
||||
|
||||
// Return type: string
|
||||
CefString _retvalStr;
|
||||
@@ -117,11 +118,10 @@ bool CefDOMNodeCToCpp::IsSame(CefRefPtr<CefDOMNode> that) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->is_same(_struct,
|
||||
CefDOMNodeCToCpp::Unwrap(that));
|
||||
int _retval = _struct->is_same(_struct, CefDOMNodeCToCpp::Unwrap(that));
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefString CefDOMNodeCToCpp::GetName() {
|
||||
@@ -169,11 +169,10 @@ bool CefDOMNodeCToCpp::SetValue(const CefString& value) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_value(_struct,
|
||||
value.GetStruct());
|
||||
int _retval = _struct->set_value(_struct, value.GetStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefString CefDOMNodeCToCpp::GetAsMarkup() {
|
||||
@@ -259,7 +258,7 @@ bool CefDOMNodeCToCpp::HasChildren() {
|
||||
int _retval = _struct->has_children(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetFirstChild() {
|
||||
@@ -317,7 +316,7 @@ bool CefDOMNodeCToCpp::HasElementAttributes() {
|
||||
int _retval = _struct->has_element_attributes(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefDOMNodeCToCpp::HasElementAttribute(const CefString& attrName) {
|
||||
@@ -333,11 +332,10 @@ bool CefDOMNodeCToCpp::HasElementAttribute(const CefString& attrName) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->has_element_attribute(_struct,
|
||||
attrName.GetStruct());
|
||||
int _retval = _struct->has_element_attribute(_struct, attrName.GetStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefString CefDOMNodeCToCpp::GetElementAttribute(const CefString& attrName) {
|
||||
@@ -353,8 +351,8 @@ CefString CefDOMNodeCToCpp::GetElementAttribute(const CefString& attrName) {
|
||||
return CefString();
|
||||
|
||||
// Execute
|
||||
cef_string_userfree_t _retval = _struct->get_element_attribute(_struct,
|
||||
attrName.GetStruct());
|
||||
cef_string_userfree_t _retval =
|
||||
_struct->get_element_attribute(_struct, attrName.GetStruct());
|
||||
|
||||
// Return type: string
|
||||
CefString _retvalStr;
|
||||
@@ -376,8 +374,7 @@ void CefDOMNodeCToCpp::GetElementAttributes(AttributeMap& attrMap) {
|
||||
transfer_string_map_contents(attrMap, attrMapMap);
|
||||
|
||||
// Execute
|
||||
_struct->get_element_attributes(_struct,
|
||||
attrMapMap);
|
||||
_struct->get_element_attributes(_struct, attrMapMap);
|
||||
|
||||
// Restore param:attrMap; type: string_map_single_byref
|
||||
if (attrMapMap) {
|
||||
@@ -388,7 +385,7 @@ void CefDOMNodeCToCpp::GetElementAttributes(AttributeMap& attrMap) {
|
||||
}
|
||||
|
||||
bool CefDOMNodeCToCpp::SetElementAttribute(const CefString& attrName,
|
||||
const CefString& value) {
|
||||
const CefString& value) {
|
||||
cef_domnode_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_element_attribute))
|
||||
return false;
|
||||
@@ -405,12 +402,11 @@ bool CefDOMNodeCToCpp::SetElementAttribute(const CefString& attrName,
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_element_attribute(_struct,
|
||||
attrName.GetStruct(),
|
||||
value.GetStruct());
|
||||
int _retval = _struct->set_element_attribute(_struct, attrName.GetStruct(),
|
||||
value.GetStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefString CefDOMNodeCToCpp::GetElementInnerText() {
|
||||
@@ -443,22 +439,27 @@ CefRect CefDOMNodeCToCpp::GetElementBounds() {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDOMNodeCToCpp::CefDOMNodeCToCpp() {
|
||||
}
|
||||
CefDOMNodeCToCpp::CefDOMNodeCToCpp() {}
|
||||
|
||||
template<> cef_domnode_t* CefCToCppRefCounted<CefDOMNodeCToCpp, CefDOMNode,
|
||||
cef_domnode_t>::UnwrapDerived(CefWrapperType type, CefDOMNode* c) {
|
||||
template <>
|
||||
cef_domnode_t*
|
||||
CefCToCppRefCounted<CefDOMNodeCToCpp, CefDOMNode, cef_domnode_t>::UnwrapDerived(
|
||||
CefWrapperType type,
|
||||
CefDOMNode* c) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCToCppRefCounted<CefDOMNodeCToCpp,
|
||||
CefDOMNode, cef_domnode_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCToCppRefCounted<CefDOMNodeCToCpp,
|
||||
CefDOMNode,
|
||||
cef_domnode_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCToCppRefCounted<CefDOMNodeCToCpp, CefDOMNode,
|
||||
cef_domnode_t>::kWrapperType = WT_DOMNODE;
|
||||
template <>
|
||||
CefWrapperType CefCToCppRefCounted<CefDOMNodeCToCpp,
|
||||
CefDOMNode,
|
||||
cef_domnode_t>::kWrapperType = WT_DOMNODE;
|
||||
|
Reference in New Issue
Block a user