2017-01-11 00:00:30 +01:00
|
|
|
// Copyright (c) 2017 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.
|
|
|
|
//
|
2017-05-17 11:29:28 +02:00
|
|
|
// $hash=c383834c864fc6235749c096939144303ea23af1$
|
|
|
|
//
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
#include "libcef_dll/ctocpp/domnode_ctocpp.h"
|
2017-05-19 11:06:00 +02:00
|
|
|
#include "libcef_dll/ctocpp/domdocument_ctocpp.h"
|
2012-04-27 23:19:06 +02:00
|
|
|
#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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-27 23:19:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-27 23:19:06 +02:00
|
|
|
}
|
|
|
|
|
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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-06-11 17:52:49 +02:00
|
|
|
}
|
|
|
|
|
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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-27 23:19:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2017-05-17 11:29:28 +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
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->is_same(_struct, CefDOMNodeCToCpp::Unwrap(that));
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-27 23:19:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_value(_struct, value.GetStruct());
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-27 23:19:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-27 23:19:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-27 23:19:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->has_element_attribute(_struct, attrName.GetStruct());
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-27 23:19:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t _retval =
|
|
|
|
_struct->get_element_attribute(_struct, attrName.GetStruct());
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// 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
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->get_element_attributes(_struct, attrMapMap);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// 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,
|
2017-05-17 11:29:28 +02:00
|
|
|
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
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_element_attribute(_struct, attrName.GetStruct(),
|
|
|
|
value.GetStruct());
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-27 23:19:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2016-09-09 20:02:57 +02:00
|
|
|
CefRect CefDOMNodeCToCpp::GetElementBounds() {
|
|
|
|
cef_domnode_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_element_bounds))
|
|
|
|
return CefRect();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_rect_t _retval = _struct->get_element_bounds(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CefDOMNodeCToCpp::CefDOMNodeCToCpp() {}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
cef_domnode_t*
|
|
|
|
CefCToCppRefCounted<CefDOMNodeCToCpp, CefDOMNode, cef_domnode_t>::UnwrapDerived(
|
|
|
|
CefWrapperType type,
|
|
|
|
CefDOMNode* c) {
|
2015-04-26 20:40:01 +02:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2016-09-01 13:24:30 +02:00
|
|
|
#if DCHECK_IS_ON()
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
base::AtomicRefCount CefCToCppRefCounted<CefDOMNodeCToCpp,
|
|
|
|
CefDOMNode,
|
|
|
|
cef_domnode_t>::DebugObjCt = 0;
|
2012-04-27 23:19:06 +02:00
|
|
|
#endif
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCToCppRefCounted<CefDOMNodeCToCpp,
|
|
|
|
CefDOMNode,
|
|
|
|
cef_domnode_t>::kWrapperType = WT_DOMNODE;
|