538 Commits

Author SHA1 Message Date
Greg Spencer
8566625bfa Swap setTraversalBefore to setTraversalAfter, since setTraversalBefore is broken. (flutter/engine#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
be8089ba88 Add accessibilityFocus and loseAccessibilityFocus as a11y actions (flutter/engine#4655) 2018-02-09 17:47:52 -08:00
Michael Goderbauer
27a581d213 Encode scrolling status into tree (flutter/engine#4647) 2018-02-09 15:39:58 -08:00
Alexander Aprelev
3e577d6940 Remove xibs (flutter/engine#4648) 2018-02-07 16:20:06 -08:00
Brian Salomon
53b3c06c97 Modernize GrContext creation (flutter/engine#4640) 2018-02-06 13:45:31 -08:00
Jason Simmons
e75747c907 Update PlatformViewAndroid for the new definition of SemanticsNodeUpdates (flutter/engine#4636) 2018-02-05 16:11:51 -08:00
Yegor
7df584d855 iOS a11y text entry (~70% of it) (flutter/engine#4575)
* implement iOS text field editing in a11y mode

* address Chinmay's comments

* replace node in child list when changing type
2018-02-05 15:14:13 -08:00
Jason Simmons
dd0c2a273d Fix some errors in Javadoc annotations (flutter/engine#4622) 2018-01-31 13:56:32 -08:00
Greg Spencer
394c11e33f Adding semantics traversal order support (flutter/engine#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
Chris Bracken
65ceaf57f4 Use @available checks for iOS 11 features (flutter/engine#4619)
Use @available checks for iOS 11 features
2018-01-30 09:36:21 -08:00
Coder256
1680d3f3da Only implement application:performActionForShortcutItem:completionHandler: on iOS 9.0+. And fix some tests. (flutter/engine#4600) 2018-01-30 08:00:39 -08:00
Michael Goderbauer
90723f13fd Remove unnecessary trim (flutter/engine#4616)
... which caused trouble for a11y "select all".
2018-01-29 18:12:29 -08:00
Chris Bracken
ced94b8bc1 Revert "Use @available checks for iOS 11 features (#4596)" (flutter/engine#4597)
This reverts commit d468d29a77147a19ea7873e73730ddfd25709f9c.

Apparently the clang toolchain is still hitting issues. Will give this
another go after the next clang toolchain update.
2018-01-26 16:08:18 -08:00
Chris Bracken
d468d29a77 Use @available checks for iOS 11 features (flutter/engine#4596)
Guard code that deals with iOS safe area insets behind an @available
check.

This cleans up some old TODOs from before out clang toolchain supported
@available.
2018-01-26 15:51:00 -08:00
Chris Bracken
bc1687f219 Extract common iOS asset path lookup code (flutter/engine#4594)
Consolidates the asset path lookup logic from FlutterDartProject and FlutterMain().
2018-01-26 14:27:46 -08:00
Alexander Aprelev
45ce7ba63f Lookup FTLAssetsPath when deducing assets path on ios (flutter/engine#4593)
* Lookup FTLAssetsPath when deducing assets path on ios

* WS

* Proper fix

* Another whitespace fix
2018-01-26 13:45:04 -08:00
Michael Goderbauer
0dec4daf0e Add semantic actions for copy, cut, and paste (flutter/engine#4592) 2018-01-26 12:11:38 -08:00
Abhishek Amit
1e7ddc408a Allow embedder clients to provide a resource context (flutter/engine#4588)
* Allow embedder clients to provide a resource context. Closes flutter/flutter#14263.
2018-01-25 17:30:23 -08:00
Michael Goderbauer
62750283ee Adds a11y action for selecting text (and moving cursor) (flutter/engine#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
667959021d a11y: Announce changes to cursor position on Android (flutter/engine#4587) 2018-01-24 16:54:14 -08:00
Abhishek Amit
eb725ebf42 Fix comment for non-string arg (flutter/engine#4583) 2018-01-24 16:24:12 -08:00
Yegor
775da9060a use Human Interface Guidelines for a11y and non-a11y text sizes (flutter/engine#4586) 2018-01-24 15:46:35 -08:00
Michael Goderbauer
0acff27cfc Add a11y support for selected text (flutter/engine#4584) 2018-01-24 15:08:29 -08:00
Jason Simmons
9e1e807c3e Convert other Android clipboard formats into text (flutter/engine#4578)
Fixes https://github.com/flutter/flutter/issues/14093
2018-01-22 13:55:48 -08:00
Michael Goderbauer
3c0932e7af Echo letters and words typed into TextField back (flutter/engine#4574)
Fixes https://github.com/flutter/flutter/issues/13392.
2018-01-22 11:14:12 -08:00
Ali Bitek
96ef7f6c1a Get active Context from the Registrar (flutter/engine#4523) 2018-01-20 08:46:40 +01:00
Alexander Aprelev
6b3e3c6184 Fix typo in main_win. This is follow up https://github.com/flutter/engine/pull/4564 (flutter/engine#4572) 2018-01-19 10:59:19 -08:00
Alexander Aprelev
a8e9231915 Accommodate flutter test --preview-dart-2 on windows and linux (flutter/engine#4564)
* Support .packages option in frontend_server, bundle_path in main_mac.

This is needed to be able to run  in  mode.

* Remove byte store tests

* Remove unused import

* Fix formatting

* Enable flutter test argument passing on win and linux.

* Fix formatting
2018-01-18 16:05:19 -08:00
Abhishek Amit
9cd77fd071 Add API for embedder clients to process platform events (flutter/engine#4549) 2018-01-17 16:59:36 -08:00
Michael Goderbauer
66fa83780d Announce when checked status changes on Android (flutter/engine#4557)
Fixes https://github.com/flutter/flutter/issues/14092
2018-01-16 23:10:17 -08:00
Sarah Zakarias
2ad5b735d0 Mark deprecated API in FlutterDartProject.h as unavailable (flutter/engine#4552) 2018-01-15 13:29:43 +01:00
Michael Goderbauer
2c53613b1f Properly identify CheckBox and RadioButton on Android (flutter/engine#4547) 2018-01-12 15:27:55 -08:00
Michael Goderbauer
0258b3a3a1 Fixes crash on Android when activating Now on Tap (flutter/engine#4536) 2018-01-12 10:22:55 -08:00
Alexander Aprelev
85d050ac98 When running on iOS deduce bundle path during engine initialization. (flutter/engine#4532) 2018-01-10 17:40:47 -08:00
Mikkel Nygaard Ravn
495f8f71f4 Deprecate support for big integers in standard message codec (flutter/engine#4528) 2018-01-09 23:58:45 +01:00
Mehmet Fidanboylu
3d611a011b Fix build break caused by https://github.com/flutter/engine/pull/4491 (flutter/engine#4524) 2018-01-07 07:51:46 -08:00
Mehmet Fidanboylu
354eeb0cf3 Add unwrap to JSONUtil (flutter/engine#4491)
We have a use for this for the internal messaging plugin. Instead of rolling our own, it made sense to add it here especially since it has the mirror functionality (wrap).
2018-01-06 14:32:00 -08:00
Jason Simmons
9ba9bfc0b2 API version check for AccessibilityNodeInfo.setEditable call (flutter/engine#4522)
Fixes https://github.com/flutter/flutter/issues/13896
2018-01-05 14:45:35 -08:00
Michael Goderbauer
ff69f13eb3 Split SemanticsFlags.isDisabled into two (flutter/engine#4517) 2018-01-04 15:15:54 -08:00
Alexander Aprelev
a6d6f56e67 Fix windows build by using lambda capture workaround (flutter/engine#4514)
* Fix windows build by using lambda capture workaround

* clang format, add todo

* clang-format again
2018-01-04 10:41:54 -08:00
Alexander Aprelev
a4ae031706 This adds RPC call to set asset path. (flutter/engine#4323)
* This adds rpc call to simply set asset path.

This is needed when doing hot reload to pick up updated assets.

* Move asset_directory fetch for after view_id. Clean up return. Fix formatting.

* Add SetAssetBundlePath methods implementations for mac and ios

* Fix mac mm

* Fix formatting

* Merge and use nullptr
2018-01-04 09:48:01 -08:00
Sigurd Meldgaard
45bc2a7837 Apply texture transform on Android (flutter/engine#4513)
* Apply transform to textures on android
2018-01-04 16:04:30 +01:00
Siva
04d910f0b1 Add support for --strong option in the engine, create a strong mode version of the platform file (flutter/engine#4504)
* Add a --strong option to the front end server so we can use strong mode with preview-dart-2.

* Plumb the --strong option through the dart controller into the VM.

* - Build a strong version of platform.dill for use with the engine.
- Fix a strong mode static error in the assert statement

* Enable asserts when running debug version even in strong mode.

* Use the correct platform dill file for linking when doing the aot builds.

* Fix formatting issue.
2018-01-03 16:52:24 -08:00
Alexander Aprelev
978613bc5f Revert "Apply transform to textures on android (#4486) (#4507)" (flutter/engine#4510)
This reverts commit 7fb2a833de92afe1d3f15efb5d5349432e2b24df.

This breaks Flutter external_ui test.
2018-01-03 12:37:39 -08:00
Sigurd Meldgaard
7fb2a833de Apply transform to textures on android (#4486) (flutter/engine#4507)
* Apply transform to textures on android
2018-01-03 11:45:28 +01:00
Michael Goderbauer
e863618c08 Add SemanticsFlag.isDisabled (flutter/engine#4503) 2018-01-02 15:57:52 -08:00
Alexander Aprelev
efc621079d Revert "Apply transform to textures on android (#4486)" (flutter/engine#4502)
This reverts commit b4c5318c5f414aa28a3b6a6d21766106b7fb387d.

Original commit caused external_ui integration test failure on Android.
2018-01-02 13:40:27 -08:00
Mikkel Nygaard Ravn
7ec61ad743 Fix API typo (flutter/engine#4487) 2018-01-02 15:32:53 +01:00
Zachary Anderson
5d14a2a64f Revert "Ensure language and country codes are not empty" (flutter/engine#4494) 2017-12-22 15:00:42 -08:00
Zachary Anderson
76a8903f01 Ensure language and country codes are not empty (flutter/engine#4492) 2017-12-22 10:09:02 -08:00