2023-01-02 23:47:15 +01:00
|
|
|
// Copyright (c) 2023 Marshall A. Greenblatt. All rights reserved.
|
2012-04-27 23:19:06 +02:00
|
|
|
//
|
|
|
|
// Redistribution and use in source and binary forms, with or without
|
|
|
|
// modification, are permitted provided that the following conditions are
|
|
|
|
// met:
|
|
|
|
//
|
|
|
|
// * Redistributions of source code must retain the above copyright
|
|
|
|
// notice, this list of conditions and the following disclaimer.
|
|
|
|
// * Redistributions in binary form must reproduce the above
|
|
|
|
// copyright notice, this list of conditions and the following disclaimer
|
|
|
|
// in the documentation and/or other materials provided with the
|
|
|
|
// distribution.
|
|
|
|
// * Neither the name of Google Inc. nor the name Chromium Embedded
|
|
|
|
// Framework nor the names of its contributors may be used to endorse
|
|
|
|
// or promote products derived from this software without specific prior
|
|
|
|
// written permission.
|
|
|
|
//
|
|
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool and should not edited
|
|
|
|
// by hand. See the translator.README.txt file in the tools directory for
|
|
|
|
// more information.
|
|
|
|
//
|
2023-10-19 20:08:48 +02:00
|
|
|
// $hash=f18407bec715e682d5745aeb155a0113473723dd$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
#ifndef CEF_INCLUDE_CAPI_CEF_DOM_CAPI_H_
|
|
|
|
#define CEF_INCLUDE_CAPI_CEF_DOM_CAPI_H_
|
|
|
|
#pragma once
|
|
|
|
|
2014-02-10 18:20:38 +01:00
|
|
|
#include "include/capi/cef_base_capi.h"
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2014-01-06 20:59:48 +01:00
|
|
|
struct _cef_domdocument_t;
|
|
|
|
struct _cef_domnode_t;
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Structure to implement for visiting the DOM. The functions of this structure
|
|
|
|
/// will be called on the render process main thread.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_domvisitor_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Base structure.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-02-09 23:07:43 +01:00
|
|
|
cef_base_ref_counted_t base;
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Method executed for visiting the DOM. The document object passed to this
|
|
|
|
/// function represents a snapshot of the DOM at the time this function is
|
|
|
|
/// executed. DOM objects are only valid for the scope of this function. Do
|
|
|
|
/// not keep references to or attempt to access any DOM objects outside the
|
|
|
|
/// scope of this function.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
void(CEF_CALLBACK* visit)(struct _cef_domvisitor_t* self,
|
|
|
|
struct _cef_domdocument_t* document);
|
2012-04-27 23:19:06 +02:00
|
|
|
} cef_domvisitor_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Structure used to represent a DOM document. The functions of this structure
|
|
|
|
/// should only be called on the render process main thread thread.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_domdocument_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Base structure.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-02-09 23:07:43 +01:00
|
|
|
cef_base_ref_counted_t base;
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the document type.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_dom_document_type_t(CEF_CALLBACK* get_type)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domdocument_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the root document node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t*(CEF_CALLBACK* get_document)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domdocument_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the BODY node of an HTML document.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t*(CEF_CALLBACK* get_body)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domdocument_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the HEAD node of an HTML document.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t*(CEF_CALLBACK* get_head)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domdocument_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the title of an HTML document.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
|
|
|
// The resulting string must be freed by calling cef_string_userfree_free().
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t(CEF_CALLBACK* get_title)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domdocument_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the document element with the specified ID value.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t*(CEF_CALLBACK* get_element_by_id)(
|
|
|
|
struct _cef_domdocument_t* self,
|
|
|
|
const cef_string_t* id);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the node that currently has keyboard focus.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t*(CEF_CALLBACK* get_focused_node)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domdocument_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns true (1) if a portion of the document is selected.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* has_selection)(struct _cef_domdocument_t* self);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the selection offset within the start node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_selection_start_offset)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domdocument_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the selection offset within the end node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_selection_end_offset)(struct _cef_domdocument_t* self);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the contents of this selection as markup.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
|
|
|
// The resulting string must be freed by calling cef_string_userfree_free().
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t(CEF_CALLBACK* get_selection_as_markup)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domdocument_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the contents of this selection as text.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
|
|
|
// The resulting string must be freed by calling cef_string_userfree_free().
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t(CEF_CALLBACK* get_selection_as_text)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domdocument_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the base URL for the document.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
|
|
|
// The resulting string must be freed by calling cef_string_userfree_free().
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t(CEF_CALLBACK* get_base_url)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domdocument_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns a complete URL based on the document base URL and the specified
|
|
|
|
/// partial URL.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
|
|
|
// The resulting string must be freed by calling cef_string_userfree_free().
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t(CEF_CALLBACK* get_complete_url)(
|
|
|
|
struct _cef_domdocument_t* self,
|
|
|
|
const cef_string_t* partialURL);
|
2012-04-27 23:19:06 +02:00
|
|
|
} cef_domdocument_t;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Structure used to represent a DOM node. The functions of this structure
|
|
|
|
/// should only be called on the render process main thread.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
|
|
|
typedef struct _cef_domnode_t {
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Base structure.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-02-09 23:07:43 +01:00
|
|
|
cef_base_ref_counted_t base;
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the type for this node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_dom_node_type_t(CEF_CALLBACK* get_type)(struct _cef_domnode_t* self);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns true (1) if this is a text node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* is_text)(struct _cef_domnode_t* self);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns true (1) if this is an element node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* is_element)(struct _cef_domnode_t* self);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns true (1) if this is an editable node.
|
2012-06-11 17:52:49 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* is_editable)(struct _cef_domnode_t* self);
|
2012-06-11 17:52:49 +02:00
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns true (1) if this is a form control element node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* is_form_control_element)(struct _cef_domnode_t* self);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the type of this form control element node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2023-10-19 20:08:48 +02:00
|
|
|
cef_dom_form_control_type_t(CEF_CALLBACK* get_form_control_element_type)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domnode_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns true (1) if this object is pointing to the same handle as |that|
|
|
|
|
/// object.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* is_same)(struct _cef_domnode_t* self,
|
|
|
|
struct _cef_domnode_t* that);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the name of this node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
|
|
|
// The resulting string must be freed by calling cef_string_userfree_free().
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t(CEF_CALLBACK* get_name)(struct _cef_domnode_t* self);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the value of this node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
|
|
|
// The resulting string must be freed by calling cef_string_userfree_free().
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t(CEF_CALLBACK* get_value)(struct _cef_domnode_t* self);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set the value of this node. Returns true (1) on success.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_value)(struct _cef_domnode_t* self,
|
|
|
|
const cef_string_t* value);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the contents of this node as markup.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
|
|
|
// The resulting string must be freed by calling cef_string_userfree_free().
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t(CEF_CALLBACK* get_as_markup)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domnode_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the document associated with this node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domdocument_t*(CEF_CALLBACK* get_document)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domnode_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the parent node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t*(CEF_CALLBACK* get_parent)(struct _cef_domnode_t* self);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the previous sibling node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t*(CEF_CALLBACK* get_previous_sibling)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domnode_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the next sibling node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t*(CEF_CALLBACK* get_next_sibling)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domnode_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns true (1) if this node has child nodes.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* has_children)(struct _cef_domnode_t* self);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return the first child node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t*(CEF_CALLBACK* get_first_child)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domnode_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the last child node.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_domnode_t*(CEF_CALLBACK* get_last_child)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domnode_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the tag name of this element.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
|
|
|
// The resulting string must be freed by calling cef_string_userfree_free().
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t(CEF_CALLBACK* get_element_tag_name)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domnode_t* self);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns true (1) if this element has attributes.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* has_element_attributes)(struct _cef_domnode_t* self);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns true (1) if this element has an attribute named |attrName|.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* has_element_attribute)(struct _cef_domnode_t* self,
|
|
|
|
const cef_string_t* attrName);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the element attribute named |attrName|.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
|
|
|
// The resulting string must be freed by calling cef_string_userfree_free().
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t(CEF_CALLBACK* get_element_attribute)(
|
|
|
|
struct _cef_domnode_t* self,
|
|
|
|
const cef_string_t* attrName);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns a map of all element attributes.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
void(CEF_CALLBACK* get_element_attributes)(struct _cef_domnode_t* self,
|
|
|
|
cef_string_map_t attrMap);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set the value for the element attribute named |attrName|. Returns true (1)
|
|
|
|
/// on success.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_element_attribute)(struct _cef_domnode_t* self,
|
|
|
|
const cef_string_t* attrName,
|
|
|
|
const cef_string_t* value);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the inner text of the element.
|
2012-04-27 23:19:06 +02:00
|
|
|
///
|
|
|
|
// The resulting string must be freed by calling cef_string_userfree_free().
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t(CEF_CALLBACK* get_element_inner_text)(
|
2012-04-27 23:19:06 +02:00
|
|
|
struct _cef_domnode_t* self);
|
2016-09-09 20:02:57 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Returns the bounds of the element in device pixels. Use
|
|
|
|
/// "window.devicePixelRatio" to convert to/from CSS pixels.
|
2016-09-09 20:02:57 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_rect_t(CEF_CALLBACK* get_element_bounds)(struct _cef_domnode_t* self);
|
2012-04-27 23:19:06 +02:00
|
|
|
} cef_domnode_t;
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // CEF_INCLUDE_CAPI_CEF_DOM_CAPI_H_
|