2024-01-05 19:03:36 +01:00
|
|
|
// Copyright (c) 2024 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.
|
|
|
|
//
|
2024-01-05 19:03:36 +01:00
|
|
|
// $hash=608e3e6b4dd3aae0953c7a112276cfa0ddf1646d$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/domnode_cpptoc.h"
|
2024-04-30 17:45:07 +02:00
|
|
|
|
2017-05-19 11:06:00 +02:00
|
|
|
#include "libcef_dll/cpptoc/domdocument_cpptoc.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2012-04-27 23:19:06 +02:00
|
|
|
#include "libcef_dll/transfer_util.h"
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
namespace {
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
2014-01-06 20:59:48 +01:00
|
|
|
cef_dom_node_type_t CEF_CALLBACK domnode_get_type(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return DOM_NODE_TYPE_UNSUPPORTED;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_dom_node_type_t _retval = CefDOMNodeCppToC::Get(self)->GetType();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK domnode_is_text(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefDOMNodeCppToC::Get(self)->IsText();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK domnode_is_element(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefDOMNodeCppToC::Get(self)->IsElement();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2012-06-11 17:52:49 +02:00
|
|
|
int CEF_CALLBACK domnode_is_editable(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-06-11 17:52:49 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-06-11 17:52:49 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-06-11 17:52:49 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefDOMNodeCppToC::Get(self)->IsEditable();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
int CEF_CALLBACK domnode_is_form_control_element(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2023-10-19 20:08:48 +02:00
|
|
|
return DOM_NODE_TYPE_UNSUPPORTED;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefDOMNodeCppToC::Get(self)->IsFormControlElement();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2023-10-19 20:08:48 +02:00
|
|
|
cef_dom_form_control_type_t CEF_CALLBACK
|
2017-05-17 11:29:28 +02:00
|
|
|
domnode_get_form_control_element_type(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2023-10-19 20:08:48 +02:00
|
|
|
return DOM_FORM_CONTROL_TYPE_UNSUPPORTED;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
2023-10-19 20:08:48 +02:00
|
|
|
cef_dom_form_control_type_t _retval =
|
|
|
|
CefDOMNodeCppToC::Get(self)->GetFormControlElementType();
|
2012-04-27 23:19:06 +02:00
|
|
|
|
2023-10-19 20:08:48 +02:00
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2012-04-27 23:19:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK domnode_is_same(struct _cef_domnode_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t* that) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
// Verify param: that; type: refptr_same
|
|
|
|
DCHECK(that);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!that) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefDOMNodeCppToC::Get(self)->IsSame(CefDOMNodeCppToC::Unwrap(that));
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
domnode_get_name(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefDOMNodeCppToC::Get(self)->GetName();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
domnode_get_value(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefDOMNodeCppToC::Get(self)->GetValue();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK domnode_set_value(struct _cef_domnode_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* value) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
// Verify param: value; type: string_byref_const
|
|
|
|
DCHECK(value);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!value) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefDOMNodeCppToC::Get(self)->SetValue(CefString(value));
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
domnode_get_as_markup(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefDOMNodeCppToC::Get(self)->GetAsMarkup();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_domdocument_t* CEF_CALLBACK
|
|
|
|
domnode_get_document(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefDOMDocument> _retval =
|
|
|
|
CefDOMNodeCppToC::Get(self)->GetDocument();
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMDocumentCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t* CEF_CALLBACK
|
|
|
|
domnode_get_parent(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefDOMNode> _retval = CefDOMNodeCppToC::Get(self)->GetParent();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMNodeCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t* CEF_CALLBACK
|
|
|
|
domnode_get_previous_sibling(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefDOMNode> _retval =
|
|
|
|
CefDOMNodeCppToC::Get(self)->GetPreviousSibling();
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMNodeCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t* CEF_CALLBACK
|
|
|
|
domnode_get_next_sibling(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefDOMNode> _retval = CefDOMNodeCppToC::Get(self)->GetNextSibling();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMNodeCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK domnode_has_children(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefDOMNodeCppToC::Get(self)->HasChildren();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t* CEF_CALLBACK
|
|
|
|
domnode_get_first_child(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefDOMNode> _retval = CefDOMNodeCppToC::Get(self)->GetFirstChild();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMNodeCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t* CEF_CALLBACK
|
|
|
|
domnode_get_last_child(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefDOMNode> _retval = CefDOMNodeCppToC::Get(self)->GetLastChild();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMNodeCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
domnode_get_element_tag_name(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefDOMNodeCppToC::Get(self)->GetElementTagName();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK domnode_has_element_attributes(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefDOMNodeCppToC::Get(self)->HasElementAttributes();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK domnode_has_element_attribute(struct _cef_domnode_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* attrName) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
// Verify param: attrName; type: string_byref_const
|
|
|
|
DCHECK(attrName);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!attrName) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefDOMNodeCppToC::Get(self)->HasElementAttribute(CefString(attrName));
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
domnode_get_element_attribute(struct _cef_domnode_t* self,
|
|
|
|
const cef_string_t* attrName) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
// Verify param: attrName; type: string_byref_const
|
|
|
|
DCHECK(attrName);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!attrName) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString _retval =
|
|
|
|
CefDOMNodeCppToC::Get(self)->GetElementAttribute(CefString(attrName));
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK domnode_get_element_attributes(struct _cef_domnode_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_map_t attrMap) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
// Verify param: attrMap; type: string_map_single_byref
|
|
|
|
DCHECK(attrMap);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!attrMap) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Translate param: attrMap; type: string_map_single_byref
|
|
|
|
std::map<CefString, CefString> attrMapMap;
|
|
|
|
transfer_string_map_contents(attrMap, attrMapMap);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefDOMNodeCppToC::Get(self)->GetElementAttributes(attrMapMap);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Restore param: attrMap; type: string_map_single_byref
|
|
|
|
cef_string_map_clear(attrMap);
|
|
|
|
transfer_string_map_contents(attrMapMap, attrMap);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK domnode_set_element_attribute(struct _cef_domnode_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* attrName,
|
|
|
|
const cef_string_t* value) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
// Verify param: attrName; type: string_byref_const
|
|
|
|
DCHECK(attrName);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!attrName) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
// Verify param: value; type: string_byref_const
|
|
|
|
DCHECK(value);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!value) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefDOMNodeCppToC::Get(self)->SetElementAttribute(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString(attrName), CefString(value));
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
domnode_get_element_inner_text(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefDOMNodeCppToC::Get(self)->GetElementInnerText();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_rect_t CEF_CALLBACK
|
|
|
|
domnode_get_element_bounds(struct _cef_domnode_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-09 20:02:57 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-09-09 20:02:57 +02:00
|
|
|
return CefRect();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-09-09 20:02:57 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_rect_t _retval = CefDOMNodeCppToC::Get(self)->GetElementBounds();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
} // namespace
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
CefDOMNodeCppToC::CefDOMNodeCppToC() {
|
|
|
|
GetStruct()->get_type = domnode_get_type;
|
|
|
|
GetStruct()->is_text = domnode_is_text;
|
|
|
|
GetStruct()->is_element = domnode_is_element;
|
|
|
|
GetStruct()->is_editable = domnode_is_editable;
|
|
|
|
GetStruct()->is_form_control_element = domnode_is_form_control_element;
|
|
|
|
GetStruct()->get_form_control_element_type =
|
2012-04-27 23:19:06 +02:00
|
|
|
domnode_get_form_control_element_type;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->is_same = domnode_is_same;
|
|
|
|
GetStruct()->get_name = domnode_get_name;
|
|
|
|
GetStruct()->get_value = domnode_get_value;
|
|
|
|
GetStruct()->set_value = domnode_set_value;
|
|
|
|
GetStruct()->get_as_markup = domnode_get_as_markup;
|
|
|
|
GetStruct()->get_document = domnode_get_document;
|
|
|
|
GetStruct()->get_parent = domnode_get_parent;
|
|
|
|
GetStruct()->get_previous_sibling = domnode_get_previous_sibling;
|
|
|
|
GetStruct()->get_next_sibling = domnode_get_next_sibling;
|
|
|
|
GetStruct()->has_children = domnode_has_children;
|
|
|
|
GetStruct()->get_first_child = domnode_get_first_child;
|
|
|
|
GetStruct()->get_last_child = domnode_get_last_child;
|
|
|
|
GetStruct()->get_element_tag_name = domnode_get_element_tag_name;
|
|
|
|
GetStruct()->has_element_attributes = domnode_has_element_attributes;
|
|
|
|
GetStruct()->has_element_attribute = domnode_has_element_attribute;
|
|
|
|
GetStruct()->get_element_attribute = domnode_get_element_attribute;
|
|
|
|
GetStruct()->get_element_attributes = domnode_get_element_attributes;
|
|
|
|
GetStruct()->set_element_attribute = domnode_set_element_attribute;
|
|
|
|
GetStruct()->get_element_inner_text = domnode_get_element_inner_text;
|
2016-09-09 20:02:57 +02:00
|
|
|
GetStruct()->get_element_bounds = domnode_get_element_bounds;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefDOMNodeCppToC::~CefDOMNodeCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefDOMNode>
|
|
|
|
CefCppToCRefCounted<CefDOMNodeCppToC, CefDOMNode, cef_domnode_t>::UnwrapDerived(
|
|
|
|
CefWrapperType type,
|
2017-02-09 23:07:43 +01:00
|
|
|
cef_domnode_t* s) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2012-04-27 23:19:06 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCppToCRefCounted<CefDOMNodeCppToC,
|
|
|
|
CefDOMNode,
|
|
|
|
cef_domnode_t>::kWrapperType = WT_DOMNODE;
|