-
Notifications
You must be signed in to change notification settings - Fork 30.7k
Update the AccessibilityPlugin::Announce method to account for the view #172669
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
29aa8c9
Update the AccessibilityPlugin::Announce method to account for the view
mattkae 6d98c0a
Various bits of PR feedback
mattkae 0de9a8e
Missed a spot!
mattkae 6e9a70d
Formatting
mattkae d62d1eb
Remove erroneous viewId accessor
mattkae 118d90a
PR feedback
mattkae d1d01ef
Remove erroneous return statement
mattkae d22a5fd
Minor nit on comment spacing
mattkae a19e5b3
Merge branch 'master' into announce-event-multi-view
mattkae 802bfab
Merge branch 'master' into announce-event-multi-view
mattkae 4ec6112
Refactoring SemanticsService.announce so that it defaults to sending …
mattkae 5f658d9
Merge branch 'master' into announce-event-multi-view
mattkae b2e94ec
Remove unnecessary null initializer from AnnounceSemanticsEvent
mattkae b11f8dc
Updating an erroneous client
mattkae 39a0cc9
Merge branch 'announce-event-multi-view' of github.com:canonical/flut…
mattkae eb6030f
Revert "Updating an erroneous client"
mattkae bd64992
Revert "Remove unnecessary null initializer from AnnounceSemanticsEvent"
mattkae 9411e54
Revert "Refactoring SemanticsService.announce so that it defaults to …
mattkae 89b7b26
Update per the current understanding
mattkae 97da60b
Update flutter_test tets
mattkae af94bf8
Merge branch 'master' into announce-event-multi-view
mattkae 99eac77
Pull request feedback
mattkae 06ccc12
Merge branch 'announce-event-multi-view' of github.com:canonical/flut…
mattkae 5e35a77
Fix Deprecation notice
mattkae b5f5c08
Using viewId in semantic event
mattkae 832464d
Further pull request feedback
mattkae 0900f69
Ensuring that the viewId key is present in the announce event
mattkae 7feec64
Merge branch 'master' into announce-event-multi-view
mattkae cacccdd
Minor comment nit
mattkae 2385e37
Merge branch 'master' into announce-event-multi-view
mattkae 3c4be84
Avoid using 'you' in docs
mattkae 2989524
Merge branch 'master' into announce-event-multi-view
mattkae 04f3ea0
Merge branch 'master' into announce-event-multi-view
mattkae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,13 +93,18 @@ abstract class SemanticsEvent { | |
| /// [1]: https://developer.android.com/reference/android/view/View#announceForAccessibility(java.lang.CharSequence) | ||
| /// | ||
| class AnnounceSemanticsEvent extends SemanticsEvent { | ||
| /// Constructs an event that triggers an announcement by the platform. | ||
| /// Constructs an event that triggers an announcement by the platform | ||
| /// on the implicit view | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this comment still accurate? |
||
| const AnnounceSemanticsEvent( | ||
| this.message, | ||
| this.textDirection, { | ||
| this.assertiveness = Assertiveness.polite, | ||
| this.viewId = 0, | ||
|
mattkae marked this conversation as resolved.
Outdated
|
||
| }) : super('announce'); | ||
|
|
||
| /// The id of the view that this announcement is on. | ||
| final int viewId; | ||
|
|
||
| /// The message to announce. | ||
| final String message; | ||
|
|
||
|
|
@@ -117,6 +122,7 @@ class AnnounceSemanticsEvent extends SemanticsEvent { | |
| @override | ||
| Map<String, dynamic> getDataMap() { | ||
| return <String, dynamic>{ | ||
| 'viewId': viewId, | ||
| 'message': message, | ||
| 'textDirection': textDirection.index, | ||
| if (assertiveness != Assertiveness.polite) 'assertiveness': assertiveness.index, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.