1914 Commits

Author SHA1 Message Date
Adam Barth
9cacbff47a Switch from fxl::Mutex to std::mutex (flutter/engine#4764)
We're going to remove fxl::Mutex soon.
2018-03-09 11:19:23 -08:00
Chinmay Garde
e0799300ff Use weak pointers to the accesibility bridge from objects vended to the UIKit accessibility framework. (flutter/engine#4761) 2018-03-08 17:23:01 -08:00
Jason Simmons
77474bd3ba Revert "Enable libtxt as the default text renderer (#4751)" (flutter/engine#4758)
This reverts commit e35e882cebc7d4b7eb98bdd0c89e781278952032.
2018-03-08 16:17:02 -08:00
Michael Goderbauer
ba8941f861 Add SemanticsFlag for Header (flutter/engine#4752) 2018-03-06 15:43:13 -08:00
Jason Simmons
e35e882ceb Enable libtxt as the default text renderer (flutter/engine#4751) 2018-03-06 13:12:39 -08:00
Jason Simmons
64c99140bb Support hot and cold reload when using the APK asset provider on Android (flutter/engine#4746)
* deprecate snapshot_override, which is an obsolete predecessor of hot reload
* give the APKAssetProvider to the engine in the initial call to RunBundle
* later calls to Engine::RunBundleAndSource or Engine::SetAssetBundlePath
  will replace the APK asset provider with a DirectoryAssetBundle that uses
  the newly pushed assets
2018-03-06 10:40:19 -08:00
Michael Goderbauer
75f69f286c Use android.view.View as default for a11y nodes (flutter/engine#4737) 2018-03-05 09:51:08 -08:00
Sarah Zakarias
9f5ad5fd1e Read assets out of APK on Android (flutter/engine#4742) 2018-03-05 14:09:45 +01:00
Chris Bracken
37165bd6cc Add nil check for country code and language code (flutter/engine#4732)
NSLocale objectForKey: may return nil for NSLocaleLanguageCode and
NSLocateCountryCode in certain cases.

This adds a defensive nil check for such cases.
2018-03-01 13:46:22 -08:00
Michael Goderbauer
4294850976 Fix traversal order for a11y scrolling (flutter/engine#4726)
Fixes https://github.com/flutter/flutter/issues/14987, but why?
2018-03-01 04:53:58 -08:00
Sarah Zakarias
01ee444738 remove unavailabe API from FlutterDartProject.mm (flutter/engine#4724) 2018-02-28 14:04:14 +01:00
Sarah Zakarias
e0fdc00ee7 Remove unavailable API in FlutterDartProject.h (flutter/engine#4723) 2018-02-28 13:37:00 +01:00
Mikkel Nygaard Ravn
544e9d3480 Make deprecated API unavailable (flutter/engine#4722) 2018-02-28 11:14:43 +01:00
xster
5809f804f4 Add more haptic feedback varieties (flutter/engine#4699)
* Add more haptic feedback varieties

* Make the specific feedback types do nothing on <iOS 10
2018-02-27 14:55:18 -08:00
Jason Simmons
32d7bed11b Revert "Enable libtxt as the default text renderer (#4697)" (flutter/engine#4717)
This reverts commit 11b7c21e44c54e43dbc79c831d9097b92f6c09ef.

The libtxt font collection cache is consuming too much memory at startup.
2018-02-27 10:25:27 -08:00
Chris Bracken
a5e4e34bbc Re-enable Dart_TimelineGetMicros on init on macOS (flutter/engine#4712)
Previously, a call to Dart_TimelineGetMicros() before a call to
Dart_Initialize() resulted in a crash. This was fixed in
dart-lang/sdk@7434bcad57.

Related:
* flutter/flutter#4006: SkyShell.app on Mac crashes on startup
* dart-lang/sdk#26486:  [dart_tools_api.h] Dart_TimelineGetMicros crashes on Mac if called before Dart_Initialize
2018-02-24 10:21:40 -08:00
Yegor
81545c43df fix naming of static function intToComparisonResult (flutter/engine#4685) 2018-02-22 11:24:51 -07:00
Jason Simmons
11b7c21e44 Enable libtxt as the default text renderer (flutter/engine#4697) 2018-02-21 13:34:31 -08:00
Todd Volkert
d72908a9fe Respect Switch::SkiaDeterministicRendering in all runtime modes (flutter/engine#4695)
https://github.com/flutter/flutter/issues/14519
2018-02-20 19:36:34 -08:00
Todd Volkert
1555f6f175 Add flag to skip call to SkGraphics::Init() (flutter/engine#4694)
https://github.com/flutter/flutter/issues/14519
2018-02-20 17:42:11 -08:00
Mikkel Nygaard Ravn
5de8c90177 Place LICENSE as sibling of podspec (flutter/engine#4691) 2018-02-19 16:33:30 +01:00
Yegor
d9a1fb11b5 iOS a11y: Implement strong down weak up reference management (flutter/engine#4602)
* fix iOS crash in a11y mode when used too fast

* clang-format
2018-02-15 16:33:05 -08:00
Jason Simmons
a6b520303f Use an alpha type that matches the color type in Android software rendering (flutter/engine#4681)
Fixes https://github.com/flutter/flutter/issues/14709
2018-02-15 13:00:57 -08:00
Siva
0a63f58b0c Fix strong flag setting (flutter/engine#4683)
* Turn on strong mode by default when a platform file is present in the
bundle instead of using a flag passed into the engine which might not be
true when we invoke an installed app.

* - Roll dart to version fe96de2858f078e4ad04f8f30640184bf3d8102d

* Update license file.
2018-02-15 11:02:31 -08:00
Brian Osman
6d0f9bb2b3 On iOS, render to an offscreen surface to avoid renderbuffer slowdown (flutter/engine#4680)
* On iOS, render to an offscreen surface to avoid renderbuffer slowdown

Fixes https://github.com/flutter/flutter/issues/14565

* null out old offscreen surface
2018-02-14 16:17:35 -05:00
Chris Bracken
a6f0be9844 Fix unguarded availability warnings for iOS (flutter/engine#4664)
Place all iOS code that relies on APIs introduced in iOS versions later
than our base SDK version (iOS 8) behind @available checks. This allows
us to enable the -Wunguarded-availability compiler flag for iOS builds
in the buildroot repo.
2018-02-13 11:49:43 -08:00
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