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

Conversation

@tugorez
Copy link
Contributor

@tugorez tugorez commented Feb 2, 2024

These changes were originally landed on #49841 but reverted in 0eb7b10. I fixed the offending dart snippets and (think) they now will work without issues (I think I was able to verify them locally by manually patching my bin/cache/... copy of these files with these changes).

Relevant Issues are:

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.

@tugorez tugorez requested a review from yjbanov February 2, 2024 05:20
@github-actions github-actions bot added the platform-web Code specifically for the web engine label Feb 2, 2024
@tugorez tugorez requested a review from goderbauer February 2, 2024 05:29
@tugorez
Copy link
Contributor Author

tugorez commented Feb 2, 2024

cc @zanderso

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM (would be nice to add the snippets back in a follow-up PR, though)

/// the callback receives the following [ViewFocusEvent]:
///
/// ```dart
/// ViewFocusEvent(
Copy link
Member

Choose a reason for hiding this comment

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

For analyzing the snippets, dart:ui is imported as import 'dart:ui' as ui. So, you need to prefix everything coming from dart:ui with ui. in these samples.

https://github.com/flutter/flutter/blob/b209125d11affe911da7f9694aad78f87f1453d2/dev/bots/analyze_snippet_code.dart#L506

Copy link
Contributor Author

@tugorez tugorez Feb 2, 2024

Choose a reason for hiding this comment

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

Thanks for the quick review Michael. Will for sure send a follow up PR to bring back those snippets.

Interesting, these patterns are somewhat hidden. It is not intuitive what's expected.
Also, why don't we make these verifications as part of the engine submit process?

@tugorez tugorez merged commit 2119e9d into flutter:main Feb 2, 2024
@tugorez tugorez deleted the focus-management branch February 2, 2024 18:13
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 2, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 2, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 2, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Feb 2, 2024
…142832)

flutter/engine@e292632...266d5d0

2024-02-02 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Move linux_fuchsia to staging" (flutter/engine#50294)
2024-02-02 [email protected] Revert "[Fuchsia] Execute most of the testing/fuchsia/test_suites.yaml on debug and release builds" (flutter/engine#50291)
2024-02-02 [email protected] Move linux_fuchsia to staging (flutter/engine#50288)
2024-02-02 [email protected] Add the focus state related methods to the platform dispatcher (flutter/engine#50273)
2024-02-02 [email protected] Add a link the different possible Android virtual device configs (flutter/engine#50267)

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 [email protected],[email protected],[email protected] 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

platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants