This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Make pointer events ignore invalid views #51925
Merged
auto-submit
merged 17 commits into
flutter:main
from
dkwingsmt:pointer-data-ignore-invalid-views
Jun 6, 2024
Merged
Make pointer events ignore invalid views #51925
auto-submit
merged 17 commits into
flutter:main
from
dkwingsmt:pointer-data-ignore-invalid-views
Jun 6, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
This pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again. |
…into pointer-data-converter-move
45fc3df to
3a79047
Compare
8 tasks
dkwingsmt
added a commit
that referenced
this pull request
Apr 11, 2024
…I doc (#52003) This PR moves the methods to add or remove views from `Shell` to `PlatformView`. By design, the `Shell` is supposed to be a messenger that glues classes together, while `PlatformView` is the operator that embedders that do not use the embedder API should operate on. The current design was made due to lack of knowledge to this design. This also makes `PlatformView` aware of views, which might be a prerequisite to #51925. This PR also adds some details to embedder API `AddView` and `RemoveView`. ## 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]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style [testing the engine]: https://github.com/flutter/flutter/wiki/Testing-the-engine [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat
8 tasks
auto-submit bot
pushed a commit
that referenced
this pull request
Apr 26, 2024
…roller` (#51952) This is a refactor that moves the `PointerDataPacketConverter` from `PlatformView` to `RuntimeController`. This change is made for the following reasons: - Currently, the pointer data conversion contains no platform specific logic (because the current converter's only responsibility is to make the event sequence conform Flutter's protocol). Therefore these logics should reside in a platform-independent place. - The converter typically converts one event to many. It's better to have this conversion later than earlier. - It removes a member from `PlatformView`, making it closer to a pure virtual class. The reason to choose `RuntimeController` as the destination is because `RuntimeController` manages a map for views, which is required for the converter to implement a later patch #51925. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
loic-sharma
approved these changes
Jun 3, 2024
Contributor
|
auto label is removed for flutter/engine/51925, due to - The status or check suite Windows windows_unopt has failed. Please fix the issues identified (or deflake) before re-applying this label.
|
…iews' into pointer-data-ignore-invalid-views
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Jun 6, 2024
auto-submit bot
pushed a commit
to flutter/flutter
that referenced
this pull request
Jun 6, 2024
…149832) flutter/engine@d9684a3...f5a9690 2024-06-06 skia-flutter-autoroll@skia.org Roll Skia from ee42535eb2b4 to a3a32c107ddb (5 revisions) (flutter/engine#53250) 2024-06-06 skia-flutter-autoroll@skia.org Roll Dart SDK from 7df5ccdf1c1b to 62e8607e1410 (2 revisions) (flutter/engine#53248) 2024-06-06 skia-flutter-autoroll@skia.org Roll Skia from c2899d177c94 to ee42535eb2b4 (1 revision) (flutter/engine#53247) 2024-06-06 skia-flutter-autoroll@skia.org Roll Dart SDK from e5459bcecb9c to 7df5ccdf1c1b (1 revision) (flutter/engine#53245) 2024-06-06 skia-flutter-autoroll@skia.org Roll Skia from 9f3289461e51 to c2899d177c94 (2 revisions) (flutter/engine#53244) 2024-06-06 dkwingsmt@users.noreply.github.com Make pointer events ignore invalid views (flutter/engine#51925) 2024-06-06 skia-flutter-autoroll@skia.org Roll Skia from 0062d519a9ad to 9f3289461e51 (1 revision) (flutter/engine#53242) 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 matanl@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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With this PR, Flutter will now ignore pointer events for an invalid view, i.e. views that have not been add or have been removed.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.