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
Remove deprecated calls to updateSemantics in PlatformDispatcher
#36673
Merged
auto-submit
merged 5 commits into
flutter:main
from
a-wallen:remove_deprecated_update_semantics
Oct 28, 2022
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
747af49
Deprecate `platform_dispatcher` apis in favor of updateSemantics in F…
fbf6127
Testing this commit, will explain later
f3cc8ef
Fix PEBKAC merge error
f8982cc
Remove unecessary override
b75e299
Remove view paramter from updateSemantics
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Testing this commit, will explain later
- Loading branch information
There are no files selected for viewing
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 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 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 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -698,6 +698,7 @@ class EnginePlatformDispatcher extends ui.PlatformDispatcher { | |
| /// In either case, this function disposes the given update, which means the | ||
| /// semantics update cannot be used further. | ||
| @override | ||
| <<<<<<< HEAD | ||
| @Deprecated(''' | ||
| <<<<<<< HEAD | ||
| In a multi-view world, the platform dispatcher can no longer provide apis | ||
|
|
@@ -716,6 +717,9 @@ class EnginePlatformDispatcher extends ui.PlatformDispatcher { | |
| >>>>>>> ccc5c13a67 (Deprecate `platform_dispatcher` apis in favor of updateSemantics in FlutterView) | ||
| ''') | ||
| void updateSemantics(ui.SemanticsUpdate update) { | ||
| ======= | ||
| void updateSemantics(ui.SemanticsUpdate update, [ui.FlutterView? view]) { | ||
|
||
| >>>>>>> 58037d36e1 (Testing this commit, will explain later) | ||
| EngineSemanticsOwner.instance.updateSemantics(update); | ||
| } | ||
|
|
||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ abstract class FlutterView { | |
| WindowPadding get padding => viewConfiguration.padding; | ||
| List<DisplayFeature> get displayFeatures => viewConfiguration.displayFeatures; | ||
| void render(Scene scene) => platformDispatcher.render(scene, this); | ||
| void updateSemantics(SemanticsUpdate update) => platformDispatcher.updateSemantics(update); | ||
| void updateSemantics(SemanticsUpdate update) => platformDispatcher.updateSemantics(update, this); | ||
| } | ||
|
|
||
| abstract class FlutterWindow extends FlutterView { | ||
|
|
@@ -131,6 +131,9 @@ abstract class SingletonFlutterWindow extends FlutterWindow { | |
| platformDispatcher.onAccessibilityFeaturesChanged = callback; | ||
| } | ||
|
|
||
| @override | ||
| void updateSemantics(SemanticsUpdate update) => platformDispatcher.updateSemantics(update, this); | ||
|
|
||
|
||
| void sendPlatformMessage( | ||
| String name, | ||
| ByteData? data, | ||
|
|
||
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.
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
FlutterViewinstead ofFlutterView?- why the difference?