@@ -16,6 +16,11 @@ namespace flutter {
1616class AccessibilityRootNode ;
1717
1818// 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.
1924class AccessibilityAlert : public CComObjectRootEx <CComMultiThreadModel>,
2025 public IDispatchImpl<IAccessible> {
2126 public:
@@ -31,8 +36,6 @@ class AccessibilityAlert : public CComObjectRootEx<CComMultiThreadModel>,
3136 LONG screen_physical_pixel_y,
3237 VARIANT* child) override ;
3338
34- // Performs the object's default action.
35-
3639 // Retrieves an IDispatch interface pointer for the specified child.
3740 IFACEMETHODIMP get_accChild (VARIANT var_child,
3841 IDispatch** disp_child) override ;
@@ -47,8 +50,6 @@ class AccessibilityAlert : public CComObjectRootEx<CComMultiThreadModel>,
4750 // Retrieves the tooltip description.
4851 IFACEMETHODIMP get_accDescription (VARIANT var_id, BSTR* desc) override ;
4952
50- // Retrieves the object that has the keyboard focus.
51-
5253 // Retrieves the name of the specified object.
5354 IFACEMETHODIMP get_accName (VARIANT var_id, BSTR* name) override ;
5455
@@ -64,9 +65,7 @@ class AccessibilityAlert : public CComObjectRootEx<CComMultiThreadModel>,
6465 // Gets the help string for the specified object.
6566 IFACEMETHODIMP get_accHelp (VARIANT var_id, BSTR* help) override ;
6667
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.
7069 IFACEMETHODIMP get_accValue (VARIANT var_id, BSTR* value) override ;
7170
7271 // IAccessible methods not implemented.
@@ -90,6 +89,8 @@ class AccessibilityAlert : public CComObjectRootEx<CComMultiThreadModel>,
9089 IFACEMETHODIMP put_accName (VARIANT var_id, BSTR put_name) override ;
9190 IFACEMETHODIMP put_accValue (VARIANT var_id, BSTR new_value) override ;
9291
92+ // End of IAccessible methods.
93+
9394 AccessibilityAlert ();
9495 ~AccessibilityAlert () = default ;
9596
0 commit comments