2016-01-08 20:00:27 +01:00
|
|
|
// Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
|
2012-04-27 23:19:06 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
|
|
|
|
#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() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_type))
|
2012-04-27 23:19:06 +02:00
|
|
|
return DOM_NODE_TYPE_UNSUPPORTED;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_dom_node_type_t _retval = _struct->get_type(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefDOMNodeCToCpp::IsText() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_text))
|
2012-04-27 23:19:06 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_text(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefDOMNodeCToCpp::IsElement() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_element))
|
2012-04-27 23:19:06 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_element(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2012-06-11 17:52:49 +02:00
|
|
|
bool CefDOMNodeCToCpp::IsEditable() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_editable))
|
2012-06-11 17:52:49 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_editable(_struct);
|
2012-06-11 17:52:49 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
bool CefDOMNodeCToCpp::IsFormControlElement() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_form_control_element))
|
2012-04-27 23:19:06 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_form_control_element(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefDOMNodeCToCpp::GetFormControlElementType() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_form_control_element_type))
|
2012-04-27 23:19:06 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_form_control_element_type(
|
|
|
|
_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefDOMNodeCToCpp::IsSame(CefRefPtr<CefDOMNode> that) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_same))
|
2012-04-27 23:19:06 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: that; type: refptr_same
|
|
|
|
DCHECK(that.get());
|
|
|
|
if (!that.get())
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_same(_struct,
|
2012-04-27 23:19:06 +02:00
|
|
|
CefDOMNodeCToCpp::Unwrap(that));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefDOMNodeCToCpp::GetName() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_name))
|
2012-04-27 23:19:06 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_name(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefDOMNodeCToCpp::GetValue() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_value))
|
2012-04-27 23:19:06 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_value(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefDOMNodeCToCpp::SetValue(const CefString& value) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_value))
|
2012-04-27 23:19:06 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: value; type: string_byref_const
|
|
|
|
DCHECK(!value.empty());
|
|
|
|
if (value.empty())
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_value(_struct,
|
2012-04-27 23:19:06 +02:00
|
|
|
value.GetStruct());
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefDOMNodeCToCpp::GetAsMarkup() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_as_markup))
|
2012-04-27 23:19:06 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_as_markup(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefDOMDocument> CefDOMNodeCToCpp::GetDocument() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_document))
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domdocument_t* _retval = _struct->get_document(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMDocumentCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetParent() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_parent))
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _retval = _struct->get_parent(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMNodeCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetPreviousSibling() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_previous_sibling))
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _retval = _struct->get_previous_sibling(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMNodeCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetNextSibling() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_next_sibling))
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _retval = _struct->get_next_sibling(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMNodeCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefDOMNodeCToCpp::HasChildren() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, has_children))
|
2012-04-27 23:19:06 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->has_children(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetFirstChild() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_first_child))
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _retval = _struct->get_first_child(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMNodeCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetLastChild() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_last_child))
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _retval = _struct->get_last_child(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMNodeCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefDOMNodeCToCpp::GetElementTagName() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_element_tag_name))
|
2012-04-27 23:19:06 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_element_tag_name(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefDOMNodeCToCpp::HasElementAttributes() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, has_element_attributes))
|
2012-04-27 23:19:06 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->has_element_attributes(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefDOMNodeCToCpp::HasElementAttribute(const CefString& attrName) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, has_element_attribute))
|
2012-04-27 23:19:06 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: attrName; type: string_byref_const
|
|
|
|
DCHECK(!attrName.empty());
|
|
|
|
if (attrName.empty())
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->has_element_attribute(_struct,
|
2012-04-27 23:19:06 +02:00
|
|
|
attrName.GetStruct());
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefDOMNodeCToCpp::GetElementAttribute(const CefString& attrName) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_element_attribute))
|
2012-04-27 23:19:06 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: attrName; type: string_byref_const
|
|
|
|
DCHECK(!attrName.empty());
|
|
|
|
if (attrName.empty())
|
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_element_attribute(_struct,
|
2012-04-27 23:19:06 +02:00
|
|
|
attrName.GetStruct());
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefDOMNodeCToCpp::GetElementAttributes(AttributeMap& attrMap) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_element_attributes))
|
2012-04-27 23:19:06 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: attrMap; type: string_map_single_byref
|
|
|
|
cef_string_map_t attrMapMap = cef_string_map_alloc();
|
|
|
|
DCHECK(attrMapMap);
|
|
|
|
if (attrMapMap)
|
|
|
|
transfer_string_map_contents(attrMap, attrMapMap);
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->get_element_attributes(_struct,
|
2012-04-27 23:19:06 +02:00
|
|
|
attrMapMap);
|
|
|
|
|
|
|
|
// Restore param:attrMap; type: string_map_single_byref
|
|
|
|
if (attrMapMap) {
|
|
|
|
attrMap.clear();
|
|
|
|
transfer_string_map_contents(attrMapMap, attrMap);
|
|
|
|
cef_string_map_free(attrMapMap);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefDOMNodeCToCpp::SetElementAttribute(const CefString& attrName,
|
|
|
|
const CefString& value) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_element_attribute))
|
2012-04-27 23:19:06 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: attrName; type: string_byref_const
|
|
|
|
DCHECK(!attrName.empty());
|
|
|
|
if (attrName.empty())
|
|
|
|
return false;
|
|
|
|
// Verify param: value; type: string_byref_const
|
|
|
|
DCHECK(!value.empty());
|
|
|
|
if (value.empty())
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->set_element_attribute(_struct,
|
2012-04-27 23:19:06 +02:00
|
|
|
attrName.GetStruct(),
|
|
|
|
value.GetStruct());
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefDOMNodeCToCpp::GetElementInnerText() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_element_inner_text))
|
2012-04-27 23:19:06 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_element_inner_text(_struct);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefDOMNodeCToCpp::CefDOMNodeCToCpp() {
|
|
|
|
}
|
|
|
|
|
|
|
|
template<> cef_domnode_t* CefCToCpp<CefDOMNodeCToCpp, CefDOMNode,
|
|
|
|
cef_domnode_t>::UnwrapDerived(CefWrapperType type, CefDOMNode* c) {
|
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
#ifndef NDEBUG
|
2014-07-15 00:18:51 +02:00
|
|
|
template<> base::AtomicRefCount CefCToCpp<CefDOMNodeCToCpp, CefDOMNode,
|
2012-04-27 23:19:06 +02:00
|
|
|
cef_domnode_t>::DebugObjCt = 0;
|
|
|
|
#endif
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
template<> CefWrapperType CefCToCpp<CefDOMNodeCToCpp, CefDOMNode,
|
|
|
|
cef_domnode_t>::kWrapperType = WT_DOMNODE;
|