-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
(#112207) Adding view_id
parameter to DispatchSemanticsAction and UpdateSemantics
#164577
Conversation
engine/src/flutter/shell/platform/android/platform_view_android_jni_impl.cc
Outdated
Show resolved
Hide resolved
engine/src/flutter/shell/platform/embedder/platform_view_embedder.h
Outdated
Show resolved
Hide resolved
engine/src/flutter/shell/platform/embedder/embedder_semantics_update.h
Outdated
Show resolved
Hide resolved
@chunhtai would you like an android review on this pr? It showed up during our triage. |
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 for iOS, Android, shell<-> dart code, just some minor comment
@@ -1332,14 +1334,14 @@ class PlatformDispatcher { | |||
} | |||
|
|||
// Called from the engine, via hooks.dart | |||
void _dispatchSemanticsAction(int nodeId, int action, ByteData? args) { | |||
void _dispatchSemanticsAction(int viewId, int nodeId, int action, ByteData? args) { | |||
_invoke1<SemanticsActionEvent>( |
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.
No action needed in this pr since we already integrate viewId into SemanticsActionEvent.
However, after taking a closer look, it feels to me we should also move onSemanticsActionEvent to flutter view given we already move the update semantics to flutter view.
This way, both semanticsupdate and semanticsactionEvent don't need to be annontated with viewId.
@@ -20,6 +20,7 @@ | |||
namespace { | |||
|
|||
constexpr int32_t kSemanticObjectIdInvalid = -1; | |||
constexpr int64_t kImplicitViewId = 0; |
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.
can we use kFlutterImplicitViewId from common/constants?
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.
Done!
Hi @reidbaker , the android portion is basically just adding a todo #142845. so not something that requires android team's attention for now. |
… of rolling our own
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.
Looks good, excellent work!
fixes #112207
What's new?
view_id
onUpdateSemantics
view_id
onDispatchSemanticsAction
view_id
all over creationFlutterEngineSendSemanticsAction
to the embedder API in order to not breakFlutterEngineDispatchSemanticsAction
engine/src/flutter/shell/platform/windows/flutter_windows_engine.cc
)How to test
Pre-launch Checklist
///
).