Chromium-based Windows applications under Wine (Electron, CEF) exposed only what the legacy MSAA path could announce, one event at a time. The helper now starts a publisher for each Chromium window: a PE worker reads the page through MSAA and IAccessible2 inside the prefix, and a native ATK publisher presents it on the accessibility bus as toolkit Chromium, matching native Linux Chromium, so the reader's own browser support handles browse mode, structural navigation, forms, tables and live regions. Once a window is published, legacy announcements for it stop, so nothing is spoken twice; if the publisher fails, the window returns to the legacy path and the helper retries with backoff. Publishers follow the helper's lifetime. The publisher marks itself with WINE_ACCESS_BROWSER_PUBLISHER=1 and gives each frame a wine-access-x11-window attribute so readers can verify window ownership. Password text, values and boundaries never leave the worker. Design, mapping rules and verification are in docs/browser.md; the IAccessible2 IDL is vendored in third_party/ia2. Checked: xvfb-run ctest (all 10, including the new browser-publisher-snapshot comparison with native Chromium 158 and Electron 42), menu_integration.py with the menu and edit fixtures, the Orca extension unit tests, and tests/browser/live_checks.sh against Electron 45: worker protocol, helper lifecycle (publish, no legacy announcements while typing, restart, no orphans), and live tree, text boundaries and AT-SPI event sequence matching native Chromium. A live test with Cthulhu on Electron 45 read the fixture page correctly. Remaining live checks: Orca with the extension, Firefox, WebView2, 32-bit browsers, iframes, and window switching under other window managers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
51 lines
1.7 KiB
Plaintext
51 lines
1.7 KiB
Plaintext
import "objidl.idl";
|
|
import "oaidl.idl";
|
|
import "oleacc.idl";
|
|
import "Accessible2_2.idl";
|
|
|
|
/**
|
|
* This structure represents a directional range of the content. It is defined
|
|
* by two points in the content, where each one is defined by an accessible
|
|
* object and an offset relative to it. A typical case of a range point is
|
|
* a text accessible and text offset within it.
|
|
*
|
|
* The "anchor" is one point of the range and typically remains constant.
|
|
* The other point is the "active" point, which typically corresponds to
|
|
* the user's focus or point of interest. The user moves the active point to
|
|
* expand or collapse the range. In most cases, anchor is the start of the range
|
|
* and active is the end. However, in case of selection, when selecting
|
|
* backwards (e.g. pressing shift+left arrow in a text field), the start of
|
|
* the range is the active point, as the user moves this to manipulate
|
|
* the selection.
|
|
*/
|
|
typedef struct IA2Range {
|
|
IUnknown* anchor;
|
|
long anchorOffset;
|
|
IUnknown* active;
|
|
long activeOffset;
|
|
} IA2Range;
|
|
|
|
/**
|
|
* @brief This interface is an extension of IAccessible2_2 and IAccessible2
|
|
* interfaces.
|
|
*/
|
|
[object, uuid(5BE18059-762E-4E73-9476-ABA294FED411)]
|
|
interface IAccessible2_3 : IAccessible2_2
|
|
{
|
|
/**
|
|
* @brief Returns an array of ranges for selections within the accessible.
|
|
* @param [out] ranges
|
|
The array of selection ranges, allocated by the server. The client must
|
|
free it with CoTaskMemFree.
|
|
* @param [out] nRanges
|
|
the array length
|
|
* @retval S_OK
|
|
* @retval S_FALSE returned if there is no selection within the accessible
|
|
*/
|
|
[propget] HRESULT selectionRanges
|
|
(
|
|
[out, size_is(,*nRanges)] IA2Range **ranges,
|
|
[out, retval] long *nRanges
|
|
);
|
|
}
|