Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

loic-sharma
Copy link
Member

@loic-sharma loic-sharma commented Oct 25, 2023

This refactors how high contrast is implemented on Windows:

  1. Added a test to verify accessibility features are updated when a view is created. This prevents staleness issues as the Windows embedder isn't notified of accessibility changes while in headless mode.
  2. Moved high contrast mode detection to WindowsProcTable from FlutterWindow to remove engine to view to window plumbing.
  3. FlutterWindow and FlutterWindowsEngine now share their WindowsProcTable (which is used for mocking and polyfilling win32 APIs) to reduce redundant dynamic loading.

This pull request contains no functional changes.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.


message_dispatcher_->HandleMessage(
message, [this] {}, [this] {});
message_dispatcher_->HandleMessage(message, [this] {}, [this] {});
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is by the formatter 🤷

@loic-sharma loic-sharma marked this pull request as ready for review October 25, 2023 21:08
@chinmaygarde
Copy link
Member

May I land this please?

@loic-sharma loic-sharma added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 26, 2023
@auto-submit auto-submit bot merged commit 095d27d into flutter:main Oct 26, 2023
@loic-sharma loic-sharma deleted the windows_initial_a11y branch October 26, 2023 20:23
@loic-sharma
Copy link
Member Author

Landed!

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! lgtm!

auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Oct 26, 2023
…137373)

flutter/engine@ce1c1ee...9788bb9

2023-10-26 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[Impeller] Disable layer tree screenshots." (flutter/engine#47356)
2023-10-26 737941+loic-sharma@users.noreply.github.com [Windows] Refactor high contrast mode detection (flutter/engine#47314)
2023-10-26 jonahwilliams@google.com [Impeller] Disable layer tree screenshots. (flutter/engine#46171)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC aaclarke@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

affects: desktop autosubmit Merge PR when tree becomes green via auto submit App platform-windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants