-
Notifications
You must be signed in to change notification settings - Fork 6k
Add the focus state related methods to the platform dispatcher #49841
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 "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use 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. |
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.
I like the structure of this API now. I mostly have suggestions for improving the docs.
@gspencergoog Should also take a look at this in case he ends up implementing the framework side that will consume this API.
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.
API LGTM
lib/web_ui/test/engine/platform_dispatcher/platform_dispatcher_test.dart
Show resolved
Hide resolved
lib/ui/platform_dispatcher.dart
Outdated
|
|
||
| /// Represents the focus state of a given [FlutterView]. | ||
| /// | ||
| /// This enum will be associated with a [FlutterView] by instantiating a [ViewFocusEvent]. |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
This PR is causing analysis to fail in snippet code on rolling to the framework: https://ci.chromium.org/ui/p/flutter/builders/try/Linux%20analyze/73029/overview. I added the |
|
Oops, thanks for catching this. @zanderso is there any reason we don't have those linter checks enabled as part of the engine commit process? |
Also is there an easy way to verify these things locally? |
|
I'm not familiar with how the snippet analysis is implemented. I vaguely recall that @gspencergoog might know more about this. |
|
Snippet analysis happens in Perhaps that script should be added as part of the presumbits that the engine runs on the Flutter repo? |
This change augments the platform dispatcher to allow the engine <===> framework to communicate flutter and platform focus changes.
Relevant Issues are:
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.