@@ -16,6 +16,11 @@ namespace flutter {
16
16
class AccessibilityRootNode ;
17
17
18
18
// An IAccessible node representing an alert read to the screen reader.
19
+ // When an announcement is requested by the framework, an instance of
20
+ // this class, if none exists already, is created and made a child of
21
+ // the root AccessibilityRootNode node, and is therefore also a sibling
22
+ // of the window's root node.
23
+ // This node is not interactable to the user.
19
24
class AccessibilityAlert : public CComObjectRootEx <CComMultiThreadModel>,
20
25
public IDispatchImpl<IAccessible> {
21
26
public:
@@ -31,8 +36,6 @@ class AccessibilityAlert : public CComObjectRootEx<CComMultiThreadModel>,
31
36
LONG screen_physical_pixel_y,
32
37
VARIANT* child) override ;
33
38
34
- // Performs the object's default action.
35
-
36
39
// Retrieves an IDispatch interface pointer for the specified child.
37
40
IFACEMETHODIMP get_accChild (VARIANT var_child,
38
41
IDispatch** disp_child) override ;
@@ -47,8 +50,6 @@ class AccessibilityAlert : public CComObjectRootEx<CComMultiThreadModel>,
47
50
// Retrieves the tooltip description.
48
51
IFACEMETHODIMP get_accDescription (VARIANT var_id, BSTR* desc) override ;
49
52
50
- // Retrieves the object that has the keyboard focus.
51
-
52
53
// Retrieves the name of the specified object.
53
54
IFACEMETHODIMP get_accName (VARIANT var_id, BSTR* name) override ;
54
55
@@ -64,9 +65,7 @@ class AccessibilityAlert : public CComObjectRootEx<CComMultiThreadModel>,
64
65
// Gets the help string for the specified object.
65
66
IFACEMETHODIMP get_accHelp (VARIANT var_id, BSTR* help) override ;
66
67
67
- // Retrieve or set the string value associated with the specified object.
68
- // Setting the value is not typically used by screen readers, but it's
69
- // used frequently by automation software.
68
+ // Retrieve the string value associated with the specified object.
70
69
IFACEMETHODIMP get_accValue (VARIANT var_id, BSTR* value) override ;
71
70
72
71
// IAccessible methods not implemented.
@@ -90,6 +89,8 @@ class AccessibilityAlert : public CComObjectRootEx<CComMultiThreadModel>,
90
89
IFACEMETHODIMP put_accName (VARIANT var_id, BSTR put_name) override ;
91
90
IFACEMETHODIMP put_accValue (VARIANT var_id, BSTR new_value) override ;
92
91
92
+ // End of IAccessible methods.
93
+
93
94
AccessibilityAlert ();
94
95
~AccessibilityAlert () = default ;
95
96
0 commit comments