-
Notifications
You must be signed in to change notification settings - Fork 6k
Accessibility number formatting improvements for Windows #29773
Accessibility number formatting improvements for Windows #29773
Conversation
587cb8a to
e352f4c
Compare
77fa193 to
31d0afc
Compare
|
@cbracken So... It appears that 1) the double-conversion library is already in the dart runtime, so linking it fails with duplicate symbols. I used it directly out of the runtime and that works. But, 2) it doesn't simplify, it's basically just a fast version of floating point to string conversion, and so the zero-stripping code is still needed. I'm a little worried that we don't always want to convert to fixed point: e.g. if someone needed to hear the extra precision for something, then they're losing data, but I'm not sure that can be helped. Maybe I can switch to exponential if it's greater than 10^12 or less than 10^-6. |
ec5244a to
ff9b055
Compare
Ah yep, it's used in Dart; that's right, I think we even discussed this at one point, but somehow this slipped my mind that we're linking into the same engine DLL. :/
Could we grab the Chromium code that does the various cleanups into a little string utils library under |
cbracken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo nits!
c1a8925 to
051605e
Compare
|
This pull request is not suitable for automatic merging in its current state.
|
* 9de5f1a Roll Skia from c95c53ed0fcf to 44c81d149273 (2 revisions) (flutter/engine#30248) * f4da7bf Accessibility number formatting improvements for Windows (flutter/engine#29773) * 79f750d Roll Fuchsia Mac SDK from EcjcLVqar... to 9asn8qJFp... (flutter/engine#30249)
…tter#29773)" This reverts commit f4da7bf.
…tter#29773) This reverts commit 33f4c32 to re-land the previous change.
) (#30301) This reverts commit 33f4c32 to re-land the previous change in #29773. Chinmay realized that because we link the whole engine into one DLL on Windows, the export settings for the symbols don't affect this code: If we include a second copy of the double-conversion library, the duplicate symbols are all internal to the DLL. Consequently, we need to link to the copy in the Dart runtime, so this is the correct implementation. If the Dart team decides to change/remove the library in the future, we will need to add in our own copy at that time. This adds some accessibility improvements for reading out numbers. Currently this code is only used on Windows.
This enables accessibility unittests on Windows as part of our CI testing. It also corrects two unit tests which were fixed by #29773, which fixed flutter/flutter#78460. Finally it disables an AXFragmentRoot test that times out. We don't use AXFragmentRoot in Flutter as it's only used with UI Automation APIs, which Flutter does not use (we use MSAA). Issue: flutter/flutter#98225
Description
This adds some accessibility improvements for reading out numbers. Currently this code is only used on Windows.
Related Issues
Tests