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

Commit 0dbe0e6

Browse files
author
a-wallen
committed
Fix PEBKAC merge error
1 parent 2890026 commit 0dbe0e6

File tree

2 files changed

+5
-33
lines changed

2 files changed

+5
-33
lines changed

lib/ui/window.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,14 +267,14 @@ abstract class FlutterView {
267267
@FfiNative<Void Function(Pointer<Void>)>('PlatformConfigurationNativeApi::Render')
268268
external static void _render(Scene scene);
269269

270-
/// Change the retained semantics data about this platform dispatcher.
270+
/// Change the retained semantics data about this [FlutterView].
271271
///
272-
/// If [semanticsEnabled] is true, the user has requested that this function
273-
/// be called whenever the semantic content of this platform dispatcher
272+
/// If [PlatformDispatcher.semanticsEnabled] is true, the user has requested that this function
273+
/// be called whenever the semantic content of this [FlutterView]
274274
/// changes.
275275
///
276-
/// In either case, this function disposes the given update, which means the
277-
/// semantics update cannot be used further.
276+
/// This function disposes the given update, which means the semantics update
277+
/// cannot be used further.
278278
void updateSemantics(SemanticsUpdate update) => _updateSemantics(update);
279279

280280
@FfiNative<Void Function(Pointer<Void>)>('PlatformConfigurationNativeApi::UpdateSemantics')

lib/web_ui/lib/src/engine/platform_dispatcher.dart

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -690,36 +690,8 @@ class EnginePlatformDispatcher extends ui.PlatformDispatcher {
690690
_onAccessibilityFeaturesChanged, _onAccessibilityFeaturesChangedZone);
691691
}
692692

693-
/// Change the retained semantics data about this window.
694-
///
695-
/// If [semanticsEnabled] is true, the user has requested that this function
696-
/// be called whenever the semantic content of this window changes.
697-
///
698-
/// In either case, this function disposes the given update, which means the
699-
/// semantics update cannot be used further.
700693
@override
701-
<<<<<<< HEAD
702-
@Deprecated('''
703-
<<<<<<< HEAD
704-
In a multi-view world, the platform dispatcher can no longer provide apis
705-
to update semantics since each view will host its own semantics tree.
706-
707-
Semantics updates must be passed to an individual [FlutterView]. To update
708-
semantics, use PlatformDispatcher.instance.views to get a [FlutterView] and
709-
call `updateSemantics`.
710-
=======
711-
In a multi-view world, the platform dispatcher can no longer provide apis
712-
to update semantics since each view will host its own semantics tree.
713-
714-
Semantics updates must be passed to an individual flutter view. To update
715-
semantics, use PlatformDispatcher.instance.views to get a flutter view and
716-
call `updateSemantics`.
717-
>>>>>>> ccc5c13a67 (Deprecate `platform_dispatcher` apis in favor of updateSemantics in FlutterView)
718-
''')
719-
void updateSemantics(ui.SemanticsUpdate update) {
720-
=======
721694
void updateSemantics(ui.SemanticsUpdate update, [ui.FlutterView? view]) {
722-
>>>>>>> 58037d36e1 (Testing this commit, will explain later)
723695
EngineSemanticsOwner.instance.updateSemantics(update);
724696
}
725697

0 commit comments

Comments
 (0)