Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
ui::AXTreeData Struct Reference

#include <ax_tree_data.h>

Public Member Functions

 AXTreeData ()
 
 AXTreeData (const AXTreeData &other)
 
virtual ~AXTreeData ()
 
virtual std::string ToString () const
 

Public Attributes

AXTreeID tree_id
 
AXTreeID parent_tree_id
 
AXTreeID focused_tree_id
 
std::string doctype
 
bool loaded = false
 
float loading_progress = 0.0f
 
std::string mimetype
 
std::string title
 
std::string url
 
AXNode::AXID focus_id = AXNode::kInvalidAXID
 
bool sel_is_backward = false
 
AXNode::AXID sel_anchor_object_id = AXNode::kInvalidAXID
 
int32_t sel_anchor_offset = -1
 
ax::mojom::TextAffinity sel_anchor_affinity
 
AXNode::AXID sel_focus_object_id = AXNode::kInvalidAXID
 
int32_t sel_focus_offset = -1
 
ax::mojom::TextAffinity sel_focus_affinity
 
AXNode::AXID root_scroller_id = AXNode::kInvalidAXID
 

Detailed Description

Definition at line 22 of file ax_tree_data.h.

Constructor & Destructor Documentation

◆ AXTreeData() [1/2]

ui::AXTreeData::AXTreeData ( )

◆ AXTreeData() [2/2]

ui::AXTreeData::AXTreeData ( const AXTreeData other)
default

◆ ~AXTreeData()

ui::AXTreeData::~AXTreeData ( )
virtualdefault

Member Function Documentation

◆ ToString()

std::string ui::AXTreeData::ToString ( ) const
virtual

Definition at line 24 of file ax_tree_data.cc.

24 {
25 std::string result;
26
27 if (tree_id != AXTreeIDUnknown())
28 result += " tree_id=" + tree_id.ToString().substr(0, 8);
30 result += " parent_tree_id=" + parent_tree_id.ToString().substr(0, 8);
32 result += " focused_tree_id=" + focused_tree_id.ToString().substr(0, 8);
33
34 if (!doctype.empty())
35 result += " doctype=" + doctype;
36 if (loaded)
37 result += " loaded=true";
38 if (loading_progress != 0.0f)
39 result += " loading_progress=" + base::NumberToString(loading_progress);
40 if (!mimetype.empty())
41 result += " mimetype=" + mimetype;
42 if (!url.empty())
43 result += " url=" + url;
44 if (!title.empty())
45 result += " title=" + title;
46
48 result += " focus_id=" + base::NumberToString(focus_id);
49
51 result +=
52 (sel_is_backward ? " sel_is_backward=true" : " sel_is_backward=false");
53 result +=
54 " sel_anchor_object_id=" + base::NumberToString(sel_anchor_object_id);
55 result += " sel_anchor_offset=" + base::NumberToString(sel_anchor_offset);
56 result += " sel_anchor_affinity=";
58 }
60 result +=
61 " sel_focus_object_id=" + base::NumberToString(sel_focus_object_id);
62 result += " sel_focus_offset=" + base::NumberToString(sel_focus_offset);
63 result += " sel_focus_affinity=";
65 }
66
67 return result;
68}
static constexpr AXID kInvalidAXID
Definition: ax_node.h:41
std::string ToString() const
Definition: ax_tree_id.cc:53
GAsyncResult * result
std::string NumberToString(int32_t number)
Definition: string_utils.cc:91
const char * ToString(ax::mojom::Event event)
Definition: ax_enum_util.cc:9
const AXTreeID & AXTreeIDUnknown()
Definition: ax_tree_id.cc:103
std::string url
Definition: ax_tree_data.h:49
bool sel_is_backward
Definition: ax_tree_data.h:61
AXNode::AXID sel_anchor_object_id
Definition: ax_tree_data.h:62
AXTreeID focused_tree_id
Definition: ax_tree_data.h:41
AXNode::AXID sel_focus_object_id
Definition: ax_tree_data.h:65
std::string mimetype
Definition: ax_tree_data.h:47
std::string doctype
Definition: ax_tree_data.h:44
AXNode::AXID focus_id
Definition: ax_tree_data.h:53
int32_t sel_focus_offset
Definition: ax_tree_data.h:66
AXTreeID parent_tree_id
Definition: ax_tree_data.h:37
std::string title
Definition: ax_tree_data.h:48
AXTreeID tree_id
Definition: ax_tree_data.h:34
float loading_progress
Definition: ax_tree_data.h:46
int32_t sel_anchor_offset
Definition: ax_tree_data.h:63

Member Data Documentation

◆ doctype

std::string ui::AXTreeData::doctype

Definition at line 44 of file ax_tree_data.h.

◆ focus_id

AXNode::AXID ui::AXTreeData::focus_id = AXNode::kInvalidAXID

Definition at line 53 of file ax_tree_data.h.

◆ focused_tree_id

AXTreeID ui::AXTreeData::focused_tree_id

Definition at line 41 of file ax_tree_data.h.

◆ loaded

bool ui::AXTreeData::loaded = false

Definition at line 45 of file ax_tree_data.h.

◆ loading_progress

float ui::AXTreeData::loading_progress = 0.0f

Definition at line 46 of file ax_tree_data.h.

◆ mimetype

std::string ui::AXTreeData::mimetype

Definition at line 47 of file ax_tree_data.h.

◆ parent_tree_id

AXTreeID ui::AXTreeData::parent_tree_id

Definition at line 37 of file ax_tree_data.h.

◆ root_scroller_id

AXNode::AXID ui::AXTreeData::root_scroller_id = AXNode::kInvalidAXID

Definition at line 72 of file ax_tree_data.h.

◆ sel_anchor_affinity

ax::mojom::TextAffinity ui::AXTreeData::sel_anchor_affinity

Definition at line 64 of file ax_tree_data.h.

◆ sel_anchor_object_id

AXNode::AXID ui::AXTreeData::sel_anchor_object_id = AXNode::kInvalidAXID

Definition at line 62 of file ax_tree_data.h.

◆ sel_anchor_offset

int32_t ui::AXTreeData::sel_anchor_offset = -1

Definition at line 63 of file ax_tree_data.h.

◆ sel_focus_affinity

ax::mojom::TextAffinity ui::AXTreeData::sel_focus_affinity

Definition at line 67 of file ax_tree_data.h.

◆ sel_focus_object_id

AXNode::AXID ui::AXTreeData::sel_focus_object_id = AXNode::kInvalidAXID

Definition at line 65 of file ax_tree_data.h.

◆ sel_focus_offset

int32_t ui::AXTreeData::sel_focus_offset = -1

Definition at line 66 of file ax_tree_data.h.

◆ sel_is_backward

bool ui::AXTreeData::sel_is_backward = false

Definition at line 61 of file ax_tree_data.h.

◆ title

std::string ui::AXTreeData::title

Definition at line 48 of file ax_tree_data.h.

◆ tree_id

AXTreeID ui::AXTreeData::tree_id

Definition at line 34 of file ax_tree_data.h.

◆ url

std::string ui::AXTreeData::url

Definition at line 49 of file ax_tree_data.h.


The documentation for this struct was generated from the following files: