88 Commits

Author SHA1 Message Date
Michael Goderbauer
70a1106b50
Unify copyright lines (#6757) 2018-11-07 12:24:35 -08:00
Jonah Williams
cf75289b68
TextField is only a live region when it has input focus (#6649) 2018-10-25 08:37:49 -07:00
Jonah Williams
436f9707b9
Add version check for dismissable (#6522) 2018-10-12 15:47:11 -07:00
Jonah Williams
647302a287
Correct issues in visible children determination (#6455)
* fix off by one

* add documentation on counting for setToIndex
2018-10-08 11:05:09 -07:00
liyuqian
90b1023c84
Remove unused imports and variables (#6437)
This is discovered in the new Google3 checks. It should not block our
roll but it's nice to fix them.
2018-10-04 16:01:49 -07:00
Jonah Williams
ae4db4469f
Ensure setViewIdResourceName has the correct version guard (#6404) 2018-10-03 17:44:32 -07:00
Jonah Williams
a785b25f4a
do not count Hidden nodes at the beginning of the scrollable (#6381) 2018-10-01 11:15:22 -07:00
Jonah Williams
77c30caddf
make sure we dont set live regionin api level < 18 (#6375) 2018-09-27 23:24:54 -07:00
Gary Qian
f3d51b0cfb
Fix Top, Left, and Right padding for fullscreen android apps. (#6282)
* Fix Top, Left, and Right padding for fullscreen apps.

* Fix minor nits and comments, simple logic inversion
2018-09-19 18:09:10 -07:00
Jonah Williams
272be27f70
update live region to trigger on label change, remove manual trigger (#6248) 2018-09-14 09:10:59 -07:00
Jonah Williams
abd918eb61
Add scrollIndex and scrollChildren to semantics, add Android implementation (#6239) 2018-09-13 10:28:27 -07:00
Jonah Williams
c867305c30
Unconditionally set resource id to empty string (#6096) 2018-08-27 10:54:07 -07:00
Jonah Williams
c23690f0d7
use setContentDescription for controls on Android (#6050) 2018-08-20 09:30:13 -07:00
Todd Volkert
7f083e54fe
Don't implicitly fall through in switch statement (#5964) 2018-08-07 13:18:26 -07:00
Jonah Williams
c7ce6dd69c
Apply translation to accessibility tree when in landscape (#5950) 2018-08-07 13:09:18 -07:00
Jonah Williams
a5215ce500
Add hasImplicitScrolling SemanticFlag and support in Android bridge (#5941) 2018-08-06 13:57:00 -07:00
Jonah Williams
236d633a49
Add word movement granularities to android (#5902) 2018-07-30 17:53:17 -07:00
Jonah Williams
d559afb320
Support customizing standard accessibility actions on Android. (#5823) 2018-07-25 15:26:02 -07:00
Jonah Williams
96f5f5b96c
Semantics framework updates (#5601) 2018-07-20 11:17:59 -07:00
Jonah Williams
48d6e1f891
Custom accessibility (local context) action support for iOS and Android. (#5597) 2018-07-11 10:27:50 -07:00
amirh
51785d244d
Remove unused Java imports (#5663) 2018-07-03 09:21:03 -07:00
Mehmet Fidanboylu
d7e3f2d6e7
Fix lint errors to prepare for building Android files in Google (#5440) 2018-06-01 10:16:50 -07:00
Michael Goderbauer
47f4a2aad4
Remove assert for unsupported SemanticsEvents (#5349)
Not all platforms are expected to handle all SemanticsEvents. Therefore, it is ok to just drop unsupported events on the floor.
2018-05-23 16:05:15 -07:00
Yegor
f876bd5710
split children into two ordered lists: traversal and hit test (#5091)
* split `children` into two ordered lists: traversal and hit test

* address comments

* reduce node object byte size

* link to DebugSemanticsDumpOrder
2018-05-21 17:44:23 -07:00
Michael Goderbauer
eb4d823557
Re-add ACTION_LONG_CLICK for Android a11y (#5330) 2018-05-21 11:29:50 -07:00
Michael Goderbauer
a7b44d4ab0
Only send a11y events if a11y is turned on (#5281) 2018-05-16 13:12:56 -07:00
Jonah Williams
93b85ee68a
Add Android accessibility bridge support for "longPress" and "tap" semantic events 2018-05-02 17:24:29 -07:00
Jonah Williams
e11905c6e5
Add tooltip method to Android AccessibilityBridge (#5103) 2018-04-26 15:03:47 -07:00
Yegor
ec611470b5
replace nextNodeId/previousNodeId with hitTestPosition (#5066) 2018-04-23 16:16:17 -07:00
Jason Simmons
232060828a Fix syntax error in AccessibilityBridge (#5059) 2018-04-20 13:54:27 -07:00
Michael Goderbauer
995633ef49
Add SemanticsFlag.isHidden (#5052) 2018-04-20 10:37:02 -07:00
Jonah Williams
3405e23a32
AccessibilityBridge support for edge triggered semantics (iOS + Android) (#4901)
AccessibilityBridge support for edge triggered semantics (iOS + Android)
2018-04-19 11:14:47 -07:00
Michael Goderbauer
c3ab0c9143
Rename isPassword to isObscured (#4815) 2018-03-19 15:52:16 -07:00
Jason Simmons
a9b5e1bdac
Fix a missing paren (#4808) 2018-03-19 12:07:28 -07:00
Michael Goderbauer
cc6b45014b
Support password fields on Android (#4781) 2018-03-19 10:25:09 -07:00
Michael Goderbauer
7d9e42ac61
Add API guard to a11y setTraversalAfter (#4794) 2018-03-15 10:15:56 -07:00
Michael Goderbauer
d042b3e830
Send TYPE_VIEW_SELECTED event for changes to SemanticsFlag.isSelected (#4780) 2018-03-13 12:49:30 -07:00
Michael Goderbauer
7f7634fa17
Add SemanticsFlag for Header (#4752) 2018-03-06 15:43:13 -08:00
Michael Goderbauer
16fe8f6b98
Use android.view.View as default for a11y nodes (#4737) 2018-03-05 09:51:08 -08:00
Michael Goderbauer
a4b1fccdaa
Fix traversal order for a11y scrolling (#4726)
Fixes https://github.com/flutter/flutter/issues/14987, but why?
2018-03-01 04:53:58 -08:00
Greg Spencer
f5a4a93787
Swap setTraversalBefore to setTraversalAfter, since setTraversalBefore is broken. (#4656)
It seems that setTraversalBefore doesn't work as well as setTraversalAfter for some reason, although I'm using them the same way. Some apps would lock up TalkBack when traversing if setTraversalBefore was set, but not with the equivalent setTraversalAfter.

It's not entirely clear why this is, but I'm going with this to at least get it fixed for apps we know about.

Addresses flutter/flutter#14600

See also flutter/flutter#14607
2018-02-12 10:02:25 -08:00
Michael Goderbauer
a00f94582b
Add accessibilityFocus and loseAccessibilityFocus as a11y actions (#4655) 2018-02-09 17:47:52 -08:00
Michael Goderbauer
8ac6f6efa1
Encode scrolling status into tree (#4647) 2018-02-09 15:39:58 -08:00
Greg Spencer
96acd1a383
Adding semantics traversal order support (#4540)
This adds support for semantics traversal ordering.

It is a companion to flutter/flutter#14060, adding support for a sortIndex in the semantics data passed to the engine.

Addresses flutter/flutter#12187
2018-01-30 13:42:12 -08:00
Michael Goderbauer
3107f167dc
Remove unnecessary trim (#4616)
... which caused trouble for a11y "select all".
2018-01-29 18:12:29 -08:00
Michael Goderbauer
a1e4f2f991
Add semantic actions for copy, cut, and paste (#4592) 2018-01-26 12:11:38 -08:00
Michael Goderbauer
7c34dfafc9
Adds a11y action for selecting text (and moving cursor) (#4589)
See https://github.com/flutter/flutter/pull/14275 for framework side change.

Also includes some minor clean-ups for consistency. 

Required for https://github.com/flutter/flutter/issues/13469.
2018-01-25 15:00:29 -08:00
Michael Goderbauer
4c82c566ed
a11y: Announce changes to cursor position on Android (#4587) 2018-01-24 16:54:14 -08:00
Michael Goderbauer
e4cabae56f
Add a11y support for selected text (#4584) 2018-01-24 15:08:29 -08:00
Michael Goderbauer
c98443ee37
Echo letters and words typed into TextField back (#4574)
Fixes https://github.com/flutter/flutter/issues/13392.
2018-01-22 11:14:12 -08:00