Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
ui::AXFragmentRootMapWin Class Reference

Public Member Functions

void AddFragmentRoot (gfx::AcceleratedWidget widget, AXFragmentRootWin *fragment_root)
 
void RemoveFragmentRoot (gfx::AcceleratedWidget widget)
 
ui::AXFragmentRootWinGetFragmentRoot (gfx::AcceleratedWidget widget) const
 
ui::AXFragmentRootWinGetFragmentRootParentOf (gfx::NativeViewAccessible accessible) const
 

Static Public Member Functions

static AXFragmentRootMapWinGetInstance ()
 

Detailed Description

Definition at line 254 of file ax_fragment_root_win.cc.

Member Function Documentation

◆ AddFragmentRoot()

void ui::AXFragmentRootMapWin::AddFragmentRoot ( gfx::AcceleratedWidget  widget,
AXFragmentRootWin fragment_root 
)
inline

Definition at line 261 of file ax_fragment_root_win.cc.

262 {
263 map_[widget] = fragment_root;
264 }

◆ GetFragmentRoot()

ui::AXFragmentRootWin * ui::AXFragmentRootMapWin::GetFragmentRoot ( gfx::AcceleratedWidget  widget) const
inline

Definition at line 268 of file ax_fragment_root_win.cc.

268 {
269 const auto& entry = map_.find(widget);
270 if (entry != map_.end())
271 return entry->second;
272
273 return nullptr;
274 }

◆ GetFragmentRootParentOf()

ui::AXFragmentRootWin * ui::AXFragmentRootMapWin::GetFragmentRootParentOf ( gfx::NativeViewAccessible  accessible) const
inline

Definition at line 276 of file ax_fragment_root_win.cc.

277 {
278 for (const auto& entry : map_) {
279 AXPlatformNodeDelegate* child = entry.second->GetChildNodeDelegate();
280 if (child && (child->GetNativeViewAccessible() == accessible))
281 return entry.second;
282 }
283 return nullptr;
284 }

◆ GetInstance()

static AXFragmentRootMapWin & ui::AXFragmentRootMapWin::GetInstance ( )
inlinestatic

Definition at line 256 of file ax_fragment_root_win.cc.

256 {
258 return *instance;
259 }
VkInstance instance
Definition main.cc:48

◆ RemoveFragmentRoot()

void ui::AXFragmentRootMapWin::RemoveFragmentRoot ( gfx::AcceleratedWidget  widget)
inline

Definition at line 266 of file ax_fragment_root_win.cc.

266{ map_.erase(widget); }

The documentation for this class was generated from the following file: