-
Notifications
You must be signed in to change notification settings - Fork 6k
Remove deprecated calls to updateSemantics in PlatformDispatcher
#36673
Remove deprecated calls to updateSemantics in PlatformDispatcher
#36673
Conversation
Gold has detected about 2 new digest(s) on patchset 2. |
PlatformDispatcher
1994fb4
to
0dbe0e6
Compare
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
lib/web_ui/lib/window.dart
Outdated
@override | ||
void updateSemantics(SemanticsUpdate update) => platformDispatcher.updateSemantics(update, this); | ||
|
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.
Isn't this exactly the implementation it inherits from FlutterView
?
call `updateSemantics`. | ||
''') | ||
void updateSemantics(ui.SemanticsUpdate update) { | ||
void updateSemantics(ui.SemanticsUpdate update, [ui.FlutterView? view]) { |
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.
In the base class, it was typed FlutterView
instead of FlutterView?
- why the difference?
call `updateSemantics`. | ||
''') | ||
void updateSemantics(ui.SemanticsUpdate update) { | ||
void updateSemantics(ui.SemanticsUpdate update, [ui.FlutterView? view]) { |
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.
Also, why do we add the view
parameter here? It appears to be unused? In the future (once the web engine is actually multi-view enabled) we will likely have to add it, but since EnginePlatformDispatcher
is private API we can just do that when we need it without a breaking change?
0dbe0e6
to
6f7c6db
Compare
6f7c6db
to
b75e299
Compare
This PR should be test exempt now that it only removes code. |
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
…cher` (flutter#36673)" (flutter#37388) This reverts commit 4d8f07b.
…cher` (flutter#36673)" (flutter#37388) This reverts commit 4d8f07b.
Removes deprecated
updateSemantics
APIs fromPlatformDispatcher
.Fixes flutter/flutter#112221
Pre-launch Checklist
writing and running engine tests.
///
).