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

#include <uia_registrar_win.h>

Public Member Functions

 UiaRegistrarWin ()
 
 ~UiaRegistrarWin ()
 
PROPERTYID GetUiaUniqueIdPropertyId () const
 
EVENTID GetUiaTestCompleteEventId () const
 

Static Public Member Functions

static const UiaRegistrarWinGetInstance ()
 

Detailed Description

Definition at line 29 of file uia_registrar_win.h.

Constructor & Destructor Documentation

◆ UiaRegistrarWin()

ui::UiaRegistrarWin::UiaRegistrarWin ( )

Definition at line 10 of file uia_registrar_win.cc.

10 {
11 // Create the registrar object and get the IUIAutomationRegistrar
12 // interface pointer.
13 Microsoft::WRL::ComPtr<IUIAutomationRegistrar> registrar;
14 if (FAILED(CoCreateInstance(CLSID_CUIAutomationRegistrar, nullptr,
15 CLSCTX_INPROC_SERVER, IID_IUIAutomationRegistrar,
16 &registrar)))
17 return;
18
19 // Register the custom UIA property that represents the unique id of an UIA
20 // element which also matches its corresponding IA2 element's unique id.
21 UIAutomationPropertyInfo unique_id_property_info = {
22 kUiaPropertyUniqueIdGuid, L"UniqueId", UIAutomationType_String};
23 registrar->RegisterProperty(&unique_id_property_info,
24 &uia_unique_id_property_id_);
25
26 // Register the custom UIA event that represents the test end event for the
27 // UIA test suite.
28 UIAutomationEventInfo test_complete_event_info = {
29 kUiaEventTestCompleteSentinelGuid, L"kUiaTestCompleteSentinel"};
30 registrar->RegisterEvent(&test_complete_event_info,
31 &uia_test_complete_event_id_);
32}
static const GUID kUiaEventTestCompleteSentinelGuid
static const GUID kUiaPropertyUniqueIdGuid
#define FAILED(hr)

◆ ~UiaRegistrarWin()

ui::UiaRegistrarWin::~UiaRegistrarWin ( )
default

Member Function Documentation

◆ GetInstance()

const UiaRegistrarWin & ui::UiaRegistrarWin::GetInstance ( )
static

Definition at line 44 of file uia_registrar_win.cc.

44 {
46 return *instance;
47}
VkInstance instance
Definition main.cc:48

◆ GetUiaTestCompleteEventId()

EVENTID ui::UiaRegistrarWin::GetUiaTestCompleteEventId ( ) const

Definition at line 40 of file uia_registrar_win.cc.

40 {
41 return uia_test_complete_event_id_;
42}

◆ GetUiaUniqueIdPropertyId()

PROPERTYID ui::UiaRegistrarWin::GetUiaUniqueIdPropertyId ( ) const

Definition at line 36 of file uia_registrar_win.cc.

36 {
37 return uia_unique_id_property_id_;
38}

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