-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make pointer events ignore invalid views #51925
Open
dkwingsmt
wants to merge
14
commits into
flutter:main
Choose a base branch
from
dkwingsmt:pointer-data-ignore-invalid-views
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Make pointer events ignore invalid views #51925
dkwingsmt
wants to merge
14
commits into
flutter:main
from
dkwingsmt:pointer-data-ignore-invalid-views
+135
−20
Conversation
This file contains 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
dkwingsmt
force-pushed
the
pointer-data-ignore-invalid-views
branch
from
April 8, 2024 23:47
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
dkwingsmt
added
the
autosubmit
Merge PR when tree becomes green via auto submit App
label
Jun 4, 2024
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.
|
auto-submit
bot
removed
the
autosubmit
Merge PR when tree becomes green via auto submit App
label
Jun 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.