Commit Graph

2192 Commits

Author SHA1 Message Date
Chris Bracken
4f3220eebc Improve auto-correct disabling on Android when obscureText is true (flutter/engine#3731)
Some keyboards (e.g., on some Samsung devices, SwiftKey) ignore
InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS and require
InputType.TYPE_TEXT_VARIATION_PASSWORD.
2017-06-02 15:50:23 -07:00
Michael Goderbauer
4ac92f5b50 Fix crash when iOS accessibility is turned off and then on again (flutter/engine#3732) 2017-06-02 15:50:12 -07:00
Chris Bracken
621d051cfa Add support for TextInputType.url (flutter/engine#3730)
Adds support for requesting a platform keyboard optimised for entering
URLs.
2017-06-02 15:13:37 -07:00
Chris Bracken
0d10984a47 Add support for TextInputType.emailAddress (flutter/engine#3729)
Adds support for requesting a platform keyboard optimised for entering
email addresses.
2017-06-02 15:04:35 -07:00
Chris Bracken
3d69c9e24a Log to stdout in flutter_tester (flutter/engine#3728)
Fixes a regression introduced in
710df81249 in flutter_tester on Linux.
2017-06-02 10:25:15 -07:00
Chris Bracken
710df81249 Simplify log forwarding on iOS, Android (flutter/engine#3726)
Eliminates logging to stdout on Android -- now using __android_log_print
only.

Eliminates logging to syslog on iOS -- now writing to stdout with the
existing ASL redirection (from platform_mac.mm) only. syslog() wasn't
ever picked up in logs.

This patch is a pre-factoring change before swapping out iOS engine
logging to a flutter-specific mechanism.
2017-06-02 09:32:08 -07:00
Gary Qian
f6a2810841 Add software as fallback if Vulkan and OpenGL fails (flutter/engine#3725) 2017-06-01 17:50:03 -07:00
Gary Qian
d77f805ffe Add flags for enabling software rendering in FlutterActivity (flutter/engine#3724) 2017-06-01 13:53:12 -07:00
Chinmay Garde
8844a2f33b Ensure that gradient tile mode enum values in Dart match SkShader::TileMode. (flutter/engine#3721) 2017-06-01 12:18:13 -07:00
Zachary Anderson
a978b57e9e Stop passing ignored argument to snapshot script (flutter/engine#3723) 2017-06-01 12:09:14 -07:00
Gary Qian
49440f6e14 Allow switching to the software rendering backend on Android. (flutter/engine#3719)
* Enable software rendering backend on android. Add "enable-software-rendering" flag.

* Fix variable naming and threading.
2017-05-31 17:27:47 -07:00
Ryan Macnak
a14c3c4f80 [fuchsia] Ensure flutter_apps in the same BUILD.gn have separate scratch directories for building the FLX. (flutter/engine#3720) 2017-05-31 12:41:25 -07:00
Michael Goderbauer
e00a271112 [iOS accessibility] Dispatch taps to selected element (flutter/engine#3718)
Previously, taps were sent to the topmost tap handler in the center of the accessibility frame of the selected element nd therefore might have been handled by a different element than the desired one.
2017-05-30 16:53:10 -07:00
Chris Bracken
120a624660 Add inactive, suspending ApplicationLifecycleState values (flutter/engine#3713)
**This is a breaking change on iOS**

Previously, the `paused` state was entered when the application resigned
active status. `inactive` now maps to this status. `paused` now maps to
an app that has been backgrounded.

`inactive` is currently emitted on iOS only and corresponds to iOS's
foreground inactive state.

Current state transitions are:
`resumed` <--> `inactive` <--> `paused`

suspending is currently emitted on Android only and corresponds to the
transition to Android's stopped state.

Current state transitions are:
`resumed` <--> `paused` --> `suspending` --> `resumed`

These transitions may change in future.
2017-05-24 16:34:34 -07:00
Adam Barth
3d6a9d022a Add faster entry points for drawPoints and friends (flutter/engine#3712)
Fixes https://github.com/flutter/flutter/issues/10087
Fixes https://github.com/flutter/flutter/issues/10233
2017-05-24 13:19:44 -07:00
xster
5bb4bfb5a1 Fix a typo (flutter/engine#3710)
I weaksauced
2017-05-23 18:12:02 -07:00
Michael Goderbauer
b357c2dc67 Use children's labels if element doesn't have one (flutter/engine#3709)
Android seems to do this by default. This way, if you select a table cell it will read the content of that cell.
2017-05-23 14:50:26 -07:00
Michael Goderbauer
e1cadccf79 Fix crash in iOS accessibility (flutter/engine#3706)
* Fix crash in iOS accessbility

Previously, whenever an action would remove the focused element from the screen the app would crash. This change tells iOS to focus the first on-screen element after every change to the semantics tree. This avoids the crash.

In a future iteration, we should tell iOS which element it needs to focus by looking at the sematnics tree (instead of leaving it up to the iOS).

* Better handle the case were the focused element stays on the screen

* review comments
2017-05-23 13:14:56 -07:00
Jason Simmons
24d5ede97c Use a new Skia API for safe passing of images across threads and GrContexts (flutter/engine#3705)
Fixes https://github.com/flutter/flutter/issues/9439
2017-05-22 17:26:56 -07:00
Ian Hickson
767feb8735 Better onDrawFrame docs (flutter/engine#3704) 2017-05-22 12:30:54 -07:00
Chris Bracken
d657e3889e Update iOS HapticFeedback.vibrate implementation (flutter/engine#3702)
Use AudioServicesPlaySystemSound instead of AudioServicesPlayAlertSound.
This avoids the potential of a system beep on devices without support
for haptic feedback.
2017-05-19 17:01:36 -07:00
Michael Goderbauer
ce354876a8 AX fixes for scrolling on iOS (flutter/engine#3701)
Scrollable elements can now be scrolled in accessibility mode and they scroll in the right direction.

Note: App crashes right after scroll finishes (that's a separate problem as the app currently crashes after every action performed in accessibility mode).
2017-05-19 15:08:08 -07:00
Michael Goderbauer
e063effa8e AX fixes for iOS (flutter/engine#3700)
* AX fixes for iOS

With this, the accessibility frame (for VoiceOver, etc.) is drawn at the right position around a widget.

* review comments
2017-05-19 10:22:56 -07:00
Chris Bracken
819a40bc22 Smarter text/selection will/didChange events (flutter/engine#3699)
Check incoming text editing state and only fire textWillChange:,
textDidChange:, selectionWillChange:, selectionDidChange: when the text
or selection actually changes.

On selectionWillChange: in a text field where auto-correct is enabled,
iOS will attempt to auto-correct the word preceding the cursor. This
change also updates the text before calling selectionWillChange: to
prevent auto-correction on the preceding value of the text field.
2017-05-17 19:36:27 -07:00
mattsarett
c2e3ef609a Add appropriate include file to canvas.cc (flutter/engine#3697)
This will ensure that the engine is not broken by a future
skia roll.
2017-05-17 15:19:51 -04:00
Ian Hickson
ef706ef6f7 Fix a11y an Android (flutter/engine#3694)
The core problem was multiplying matrices the wrong way around.

While I was there I did some minor cleanup. I think that may have
fixed another bug relating to A11Y turning on or off improperly, but
since I never figured out the steps to reproduce, it's hard to tell.

Fixes https://github.com/flutter/flutter/issues/7205
Fixes https://github.com/flutter/flutter/issues/10059 (maybe)
2017-05-16 10:31:53 -07:00
Ian Hickson
7ac614e395 Trivial fixes to dart:ui docs. (flutter/engine#3689) 2017-05-15 13:30:24 -07:00
Ian Hickson
cf8689ffa2 Move the test runner to a higher DPI screen. (flutter/engine#3688)
Having the device pixel ratio of the test shell be 1.0x makes it
unlikely that we will catch errors relating to mishandling of the
device pixel ratio in the test shell.

This patch arbitrarily increases the device pixel resolution while
keeping the logical resolution the same.
2017-05-15 13:18:56 -07:00
Adam Barth
9b69c5db0a Solicit input about Canvas.drawPoints API break (flutter/engine#3693) 2017-05-15 10:07:10 -07:00
Adam Barth
5366eb0eb7 Add SkColorSpace to Picture.toImage() (flutter/engine#3691)
Skia doesn't actually create the image if we don't supply a color space.
2017-05-13 10:33:04 -07:00
Jason Simmons
1cc1f25bbf Add a flag that checkerboards offscreen render targets created by SkCanvas.saveLayer (flutter/engine#3685)
Fixes https://github.com/flutter/flutter/issues/9473
2017-05-11 15:00:16 -07:00
Chris Bracken
074cca0906 Adjust bottom padding correctly on iOS keyboard hide (flutter/engine#3684)
Handle willChangeFrame to handle keyboard show, resize, reposition
(split, move floating keyboard) events. Handle willBeHidden events for
keyboard dismissal.

Fixes incorrect bottom padding introduced in
4103fe7a40 due to didChangeFrame
notification firing after willBeHidden on keyboard dismissal.
2017-05-11 10:07:37 -07:00
mikejurka
09bae7f423 Fix Fuchsia build. (flutter/engine#3683) 2017-05-10 18:40:43 -07:00
Chinmay Garde
4626789ca2 Create a cache of unz_file_pos entries in ZipAssetStore for faster lookup. (flutter/engine#3682) 2017-05-10 17:11:08 -07:00
Chris Bracken
4103fe7a40 Update view padding on iOS keyboard frame change (flutter/engine#3681) 2017-05-10 16:35:58 -07:00
Mikkel Nygaard Ravn
27fcb31df5 Forward openURL requests to plugins (flutter/engine#3679) 2017-05-10 23:51:13 +02:00
Ian Hickson
498a9da159 Add documentation to TileMode. (flutter/engine#3668) 2017-05-10 12:22:08 -07:00
Chris Bracken
3701c34de0 Set Android keyboard actionLabel only if non-null (flutter/engine#3677) 2017-05-10 12:20:03 -07:00
freiling
9f9edcc382 [vulkan] make validation layer errors non-fatal on Fuchsia (flutter/engine#3674) 2017-05-10 10:36:26 -07:00
Sarah Zakarias
dfa8cc86a4 Remove urlLauncher and pathProvider from FlutterPlatformPlugin (flutter/engine#3673) 2017-05-10 13:42:13 +02:00
Mikkel Nygaard Ravn
6d6e19b682 Fix iOS plugin reg docs (flutter/engine#3672) 2017-05-10 08:40:14 +02:00
Chris Bracken
08bbbdfe3f Disable auto-correct for text editing when obscureText is set (flutter/engine#3661) 2017-05-09 14:55:58 -07:00
mikejurka
cc3ffeb6f0 Enable Vulkan validation layers on Fuchsia in debug mode. (flutter/engine#3663)
Disable info debug messages from the layers to cut down log spam.
2017-05-09 14:32:17 -07:00
Chinmay Garde
f366940fe7 Fix Android Vulkan build by accounting for updated GN flags. (flutter/engine#3670) 2017-05-09 14:17:24 -07:00
Mikkel Nygaard Ravn
55e8e08e75 Add documentation to iOS plugin registry (flutter/engine#3665) 2017-05-09 11:26:02 +02:00
Mikkel Nygaard Ravn
536aa72373 Use older openURL signature (flutter/engine#3660) 2017-05-08 23:29:59 +02:00
Mikkel Nygaard Ravn
4ae1c00a9e Add uikit import (flutter/engine#3659) 2017-05-08 22:53:04 +02:00
mikejurka
eee9292e3b Include new Vulkan enum values only on Fuchsia (flutter/engine#3658)
Fixes build.
2017-05-08 13:44:07 -07:00
mikejurka
eaba4f5a5d Update to match the latest Vulkan loader in Fuchsia (flutter/engine#3654) 2017-05-08 12:58:17 -07:00
Mikkel Nygaard Ravn
53e3237cfb iOS plugin registry (flutter/engine#3645) 2017-05-08 21:45:23 +02:00