300 Commits

Author SHA1 Message Date
Michael Goderbauer
63bf1d282f a11y: Add SemanticsAction "showOnScreen" (#3856)
This action is triggered when the user swipes (in accessibility mode) to the last visible item of a scrollable list to bring that item fully on screen.

iOS implementation to follow.
2017-07-12 15:52:30 -07:00
Jason Simmons
74d6f60558 Enable text autocorrect on Android with a flag to disable it (#3866)
See https://github.com/flutter/flutter/issues/11168
2017-07-12 14:44:20 -07:00
Carlo Bernaschina
354d90a957 Add missing virtual methods in PlatformView (#3867) 2017-07-12 13:06:02 -07:00
Carlo Bernaschina
8ba522eeae Avoid to freeze the system if hot reloading during debug (#3833) 2017-07-12 10:25:42 -07:00
Jason Simmons
456d746eb0 Do not enter text for key events that are not associated with a character (#3860)
Fixes https://github.com/flutter/flutter/issues/10723
2017-07-10 17:41:14 -07:00
Jason Simmons
8d5372a82a Do not try to apply selections outside the length of the text (#3845)
See https://github.com/flutter/flutter/issues/11041
2017-06-30 14:50:01 -07:00
Michael Goderbauer
d2d152f201 Fix a11y scroll direction (#3841)
See also https://github.com/flutter/engine/pull/3701
2017-06-29 15:56:17 -07:00
Jason Simmons
1009e9c097 Remove warning about a deprecated accessibility API (#3837) 2017-06-28 12:47:15 -07:00
Brian Osman
2d9155e174 Reland "Run Flutter on iOS and Android with color correct Skia (#3826)
* Revert "Revert "Reland "Run Flutter on iOS and Android with color correct Skia" (#3818)" (#3823)"

This reverts commit db8d8a9979901d05b011368226ad5bf61b1da13f.

* Fix test code to match internal API change
2017-06-27 13:30:10 -04:00
Brian Osman
db8d8a9979 Revert "Reland "Run Flutter on iOS and Android with color correct Skia" (#3818)" (#3823)
This reverts commit 2650f529a138de9cc9116bb9194dbe22f8e0df25.
2017-06-23 20:28:24 -04:00
Brian Osman
2650f529a1 Reland "Run Flutter on iOS and Android with color correct Skia" (#3818)
* Revert "Revert "Run Flutter on iOS and Android with color correct Skia (#3743)" (#3775)"

This reverts commit cfe70e07d386d6052267fe3772bbd641c8413a54.

* Enable sRGB on IO thread, too

* Add 4444 as a fallback rendering mode

* Use bare ptr to SkColorSpace (not sk_sp) in PrerollContext
2017-06-23 20:21:29 -04:00
Jason Simmons
538e103b2c Catch exceptions during invocations of updateSemantics from native code (#3813) 2017-06-22 11:19:32 -07:00
Jason Simmons
b0dee695ec Revert to API level 16 compatible variant of AccessibilityNodeInfo.addAction (#3810)
Fixes https://github.com/flutter/flutter/issues/10855
2017-06-21 12:31:08 -07:00
Jason Simmons
4d1f1f6d8a Do not call restartInput twice when setting a new text input client. (#3808)
If restartInput is called twice in quick succession, then the IME may output
warnings related to usage of the obsolete connection resulting from the first
call.

Fixes https://github.com/flutter/flutter/issues/10730
2017-06-21 10:47:02 -07:00
Todd Volkert
fa2726cda0 Remove FlutterActivity#onFlutterReady() (#3806)
Fixes https://github.com/flutter/flutter/issues/10571
2017-06-21 10:03:04 -07:00
Sarah Zakarias
b8c47e90e6 Fix compile error in FlutterViewController (#3807) 2017-06-21 15:20:52 +02:00
Sarah Zakarias
a87d15d62e Send AppLifecycleState notifications on FlutterViewController lifecycle events. (#3801) 2017-06-21 14:39:05 +02:00
P.Y. Laligand
76397e98b4 Update to newer version of the FTL. (#3804) 2017-06-20 16:53:14 -07:00
Chris Bracken
fffe502d43 Revert libtxt integration (#3802)
* Revert "Fix licenses_lib golden file (#3798)"

This reverts commit d8ac43c3c9123fead15af3004d1e445834115bbd.

* Revert "Remove ParagraphConstriants (#3796)"

This reverts commit 8ccf767ff71c781588fb1e79cf3369604099a7cc.

* Revert "Reland "Initial integration of libtxt with Flutter alongside Blink." (#3793)"

This reverts commit 3c049219e1429c8e08632889b6c9e7b070bba534.
2017-06-20 09:59:56 -07:00
Chris Bracken
25c7a86a53 Eliminate ASL stdout forwarding on iOS (#3797)
ASL was deprecated in iOS 10 and started causing SIGPIPE issues in iOS
10.3. Under the iOS 8 SDK, syslog() stopped working as of iOS 10.3
devices, with the result that ASL stdout/stderr forwarding was the only
means of logging. The engine now builds against the iOS 10 SDK, with
deployment target of iOS 8. Under this SDK, syslog() works correctly
across all supported OS versions.

NOTE: This is a temporary fix to get developers unblocked. While this
does fix the SIGPIPE issue and put iOS logging on par with the Android
solution, the intent is to move to a dedicated communication channel
with flutter_tools that isn't log-based.
2017-06-19 18:10:30 -07:00
Jason Simmons
979f8a63ea Set the initial route before launching the Dart app (#3795)
See https://github.com/flutter/flutter/issues/10813
2017-06-19 15:25:47 -07:00
Gary Qian
3c049219e1 Reland "Initial integration of libtxt with Flutter alongside Blink." (#3793)
* Transition to Hybrid lib/txt and blink text system.
2017-06-19 15:21:41 -07:00
Chris Bracken
14f2ffaeaa Revert "Update to newer version of the FTL. (#3786)" (#3792)
This reverts commit 1e9e134d7d7444506f3103d673fcd26e4066e80a.
2017-06-19 15:02:52 -07:00
P.Y. Laligand
1e9e134d7d Update to newer version of the FTL. (#3786) 2017-06-19 12:48:23 -07:00
Ian McKellar
d2c77f973d Revert "Initial integration of libtxt with Flutter alongside Blink." (#3785)
* Revert "Enable line join styles and miter limit. (#3777)"

This reverts commit 5403f65bcad98bd0d434cae590e2a337a1ea218c.

* Revert "Revert "Update switches to use StringView." (#3784)"

This reverts commit 80f039ff324b827cc17567867bd17c788277b0cf.

* Revert "Initial integration of libtxt with Flutter alongside Blink. (#3771)"

This reverts commit c548c65b5020653087b63f1f156741a1f95b5117.
2017-06-16 15:15:48 -07:00
P.Y. Laligand
80f039ff32 Revert "Update switches to use StringView." (#3784)
* Revert "Initial integration of libtxt with Flutter alongside Blink. (#3771)"

This reverts commit c548c65b5020653087b63f1f156741a1f95b5117.

* Revert "Call Selection.removeSelection if the framework has cleared the selection (#3782)"

This reverts commit e5b79ba63b92aa0c4299836f4433ec0de23b7cb3.

* Revert "Update switches to use StringView. (#3781)"

This reverts commit 07d4357b1ac4c7aa8c13f1627071e43096ef3cc5.
2017-06-16 14:32:09 -07:00
Gary Qian
c548c65b50 Initial integration of libtxt with Flutter alongside Blink. (#3771) 2017-06-16 14:15:53 -07:00
Jason Simmons
e5b79ba63b Call Selection.removeSelection if the framework has cleared the selection (#3782)
Fixes https://github.com/flutter/flutter/issues/10748
2017-06-16 14:01:45 -07:00
P.Y. Laligand
07d4357b1a Update switches to use StringView. (#3781)
See https://fuchsia-review.googlesource.com/#/c/31931/.
2017-06-16 12:51:26 -07:00
Mikkel Nygaard Ravn
784e975672 Add alignment padding to floats in std codec (#3780) 2017-06-15 21:22:18 -07:00
Jason Simmons
ab2bc15fcc Align doubles to 8 bytes in the StandardMessageCodec (#3779)
See https://github.com/flutter/flutter/issues/10701
2017-06-15 21:15:25 -07:00
Michael Goderbauer
cfe70e07d3 Revert "Run Flutter on iOS and Android with color correct Skia (#3743)" (#3775)
This reverts commit ffe8181ffe7432b61a67323c80fd8025704e4695.
2017-06-14 16:26:20 -07:00
Jason Simmons
834fb9638e Simplify state management in the Android text editing plugin (#3769)
In particular, this avoids some unnecessary calls to InputMethodManager.restartInput
that caused noticeable lag when moving the cursor.

Fixes https://github.com/flutter/flutter/issues/9928
2017-06-14 10:24:41 -07:00
Todd Volkert
4f5d6fab11 Add support for application:openURL:options: in FlutterPlugin (#3766)
Both the following, which we also support, are deprecated in UIKit:

* `application:handleOpenURL:`
* `application:openURL:sourceApplication:annotation:`
2017-06-12 20:57:12 -07:00
Mehmet Fidanboylu
0b24568ec1 Expose performActionForShortcutItem call to all registered plugins so we can handle quick actions (#3763)
* Expose performActionForShortcutItem call to all registered plugins so we can handle quick actions

* Should return BOOL not void

* clang-formatted
2017-06-09 17:55:48 -07:00
Michael Goderbauer
1787c3fb1e Adding SemanticsFlag.isSelected (#3764)
* Adding SemanticsFlag.isSelected

* typo
2017-06-09 15:58:30 -07:00
Todd Volkert
b91d2f1bb4 Fix some minor issues with Javadocs (#3761) 2017-06-09 07:35:50 -07:00
mattsarett
ffe8181ffe Run Flutter on iOS and Android with color correct Skia (#3743)
* Run Flutter on iOS and Android with color correct Skia (#3716)

***Turns on color correct rendering for Android and iOS
***Communicates dst color space to raster cache
***Turns on color space aware image decoding

Test:
***color_testing_demo on Pixel XL
***flutter_gallery on iPad Mini and iPad Pro (haven't figured out how to run manual_tests on iOS)

TODO:
I needed to split up this CL somewhere. These are follow-up tasks.
***Make desktop backends color correct
***Make debugging tools (ex: encoding frames to png) preserve color space
***Investigate using UIKit API to allow iOS to fine tune color space of rendered content
2017-06-09 08:39:21 -04:00
Sarah Zakarias
f44bc00abd Add setInitialRoute on FlutterViewController (#3754) 2017-06-09 10:37:53 +02:00
Todd Volkert
919f0ad063 Create FlutterFragmentActivity (#3757)
This creates a `FlutterFragmentActivity` class that extends
the Android v4 Support librray's `FragmentActivity` class.
However, we intentionally do not bundle the support library
with our engine, so apps that wish to use this class are
responsible for including the support library .jar file in
their runtime deps when creating the final app.

flutter/flutter#10072
2017-06-08 16:40:37 -07:00
Jason Simmons
e70fe3766a Call the superclass onConfigurationChanged in FlutterActivity (#3758) 2017-06-08 14:58:22 -07:00
Todd Volkert
2d541dd5e7 Only handle refresh intent when the app is marked as debuggable. (#3752) 2017-06-08 08:13:52 -07:00
Todd Volkert
ec8cbe0fb6 Refactor FlutterActivity to be more composable (#3748)
This factors the functionality that was in `FlutterActivity`
to live in `FlutterActivityDelegate`. This will allow the creation of a
`FlutterFragmentActivity` that has the same core functionality, which in
turn unlocks certain Android plugins that choose to require the v4
support library (like Google Sign-In).

https://github.com/flutter/flutter/issues/10072
2017-06-07 12:28:41 -07:00
Jason Simmons
c457ec6341 AndroidSurfaceSoftware renderer based on NDK native window APIs (#3745) 2017-06-06 16:58:43 -07:00
Sarah Zakarias
f37aafd456 Add setInitialRoute on FlutterView. (#3727) 2017-06-06 10:59:41 +02:00
Michael Goderbauer
8686a45810 Retain the parent of a SemanticsObject and implement proper dealloc (#3740)
* Retain the parent of a SemanticsObject

This fixes the last known crash in iOS accessibility.

* rework memory management

* review comments
2017-06-05 17:35:44 -07:00
Chinmay Garde
70b71a49ea Revert "Run Flutter on iOS and Android with color correct Skia" (#3738) 2017-06-05 14:08:22 -07:00
Jason Simmons
16c411205f Render software rasterizer bitmaps through the SurfaceHolder (#3736) 2017-06-05 12:21:14 -07:00
mattsarett
fe82757603 Run Flutter on iOS and Android with color correct Skia (#3716)
***Turns on color correct rendering for Android and iOS
***Communicates dst color space to raster cache
***Turns on color space aware image decoding

Test:
***color_testing_demo on Pixel XL
***flutter_gallery on iPad Mini and iPad Pro (haven't figured out how to run manual_tests on iOS)

TODO:
I needed to split up this CL somewhere. These are follow-up tasks.
***Make desktop backends color correct
***Make debugging tools (ex: encoding frames to png) preserve color space
***Investigate using UIKit API to allow iOS to fine tune color space of rendered content
2017-06-05 14:59:04 -04:00
Chris Bracken
2727002f47 Set autocapitalizationType on iOS (#3735)
Disables auto-capitalization on iOS text fields for TextInputTypes other
than text.
2017-06-05 11:33:08 -07:00