-
Notifications
You must be signed in to change notification settings - Fork 6k
Clarify dispatch semantics action id parameter #38356
Conversation
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. |
test-exempt: code refactor with no semantic change |
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 👍 Thanks for cleaning up the naming!
+1 for use of The Far Side.
16ce331
to
a15f445
Compare
Previously the embedder API documented this as an action ID, but it's actually the semantics node ID. This fixes the docs and renames the parameter to clarify its purpose.
a15f445
to
a5a0d73
Compare
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
Thank you!
…117246) * 1fe1ec414 Clarify semantics action dispatch id parameter (flutter/engine#38356) * 985f4ac51 Ensure licenses excluded file list has newline at EOF (flutter/engine#38354) * 4097c333f Update documentation to use `--local-web-sdk` flags. (flutter/engine#38328) * 60cf34e2a Remove DisplayList's dependency on SkAutoTMalloc (flutter/engine#38359)
Previously the embedder API documented this as an action ID, but it's actually the semantics node ID. This fixes the docs and renames the parameter to clarify its purpose. This callback is registered in the framework render bindings: https://github.com/flutter/flutter/blob/9102f2fe0bd26db6074ac4a17785296cd341ecb9/packages/flutter/lib/src/rendering/binding.dart#L43 Handled by `_handleSemanticsAction`: https://github.com/flutter/flutter/blob/9102f2fe0bd26db6074ac4a17785296cd341ecb9/packages/flutter/lib/src/rendering/binding.dart#L360-L366 Which invokes `SemanticsOwner.performAction`, where the node is looked up by ID: https://github.com/flutter/flutter/blob/9102f2fe0bd26db6074ac4a17785296cd341ecb9/packages/flutter/lib/src/semantics/semantics.dart#L3258-L3277
…lutter#117246) * 1fe1ec414 Clarify semantics action dispatch id parameter (flutter/engine#38356) * 985f4ac51 Ensure licenses excluded file list has newline at EOF (flutter/engine#38354) * 4097c333f Update documentation to use `--local-web-sdk` flags. (flutter/engine#38328) * 60cf34e2a Remove DisplayList's dependency on SkAutoTMalloc (flutter/engine#38359)
Previously, the embedder API incorrectly documented this as an action ID, but it's actually the semantics node ID. This fixes the docs and renames the parameter to clarify its purpose.
This callback is registered in the framework render bindings:
https://github.com/flutter/flutter/blob/9102f2fe0bd26db6074ac4a17785296cd341ecb9/packages/flutter/lib/src/rendering/binding.dart#L43
Handled by
_handleSemanticsAction
:https://github.com/flutter/flutter/blob/9102f2fe0bd26db6074ac4a17785296cd341ecb9/packages/flutter/lib/src/rendering/binding.dart#L360-L366
Which invokes
SemanticsOwner.performAction
, where the node is looked up by ID:https://github.com/flutter/flutter/blob/9102f2fe0bd26db6074ac4a17785296cd341ecb9/packages/flutter/lib/src/semantics/semantics.dart#L3258-L3277
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.