Skip to content

Conversation

@m-sasha
Copy link

@m-sasha m-sasha commented Jan 22, 2026

Expose SkiaLayerComponent.sceneRoot and simplify AccessibleFocusHelper creation

This is just a refactoring.

Testing

N/A

Release Notes

N/A

@m-sasha m-sasha requested a review from igordmn January 22, 2026 14:21
@@ -140,7 +140,7 @@ internal class ComposeSceneMediator(
var rootForTestListener: PlatformContext.RootForTestListener? by DelegateRootForTestListener()
Copy link
Collaborator

@igordmn igordmn Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a consequence of this discussion.

The Mediator code and its connections is complicated, maybe it is worth to refactor it in the future. Current issues:

  • it is difficult to define the data flow just looking at the mediator - we have a lot of public properties/methods, and they can be accessed by the owners and the children
  • we have 1000 lines of code, worth to extract some code
  • Personally, to easy understand the structure, I would not use a mediator pattern, but just something hierarchical that is a part of a parent (window, layer) and has some children (scene, component)

cc @m-sasha @MatkovIvan

@m-sasha m-sasha force-pushed the m-sasha/expose-SkiaLayerComponent-sceneRoot branch from 53702d1 to ab0332a Compare January 22, 2026 18:47
@m-sasha m-sasha merged commit e6f5ba0 into jb-main Jan 23, 2026
18 of 26 checks passed
@m-sasha m-sasha deleted the m-sasha/expose-SkiaLayerComponent-sceneRoot branch January 23, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants