7905 Commits

Author SHA1 Message Date
freiling
e954e2f689 [MA-225][DNO-95] remove message loop handlers when destroying VulkanSurfaceProducer to avoid callbacks on deleted pointers (#3733) 2017-06-02 16:31:39 -07:00
Chris Bracken
bd09286e4a Improve auto-correct disabling on Android when obscureText is true (#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
28e50a6291 Fix crash when iOS accessibility is turned off and then on again (#3732) 2017-06-02 15:50:12 -07:00
Chris Bracken
5cd58ba4fa Add support for TextInputType.url (#3730)
Adds support for requesting a platform keyboard optimised for entering
URLs.
2017-06-02 15:13:37 -07:00
Chris Bracken
f990f8b0d3 Add support for TextInputType.emailAddress (#3729)
Adds support for requesting a platform keyboard optimised for entering
email addresses.
2017-06-02 15:04:35 -07:00
Chris Bracken
9af413ca8b Log to stdout in flutter_tester (#3728)
Fixes a regression introduced in
dcfcc9259d4f4321e8daea24f1778694a8dca98a in flutter_tester on Linux.
2017-06-02 10:25:15 -07:00
Chris Bracken
dcfcc9259d Simplify log forwarding on iOS, Android (#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
09de6f79da Add software as fallback if Vulkan and OpenGL fails (#3725) 2017-06-01 17:50:03 -07:00
Gary Qian
1f2aa07571 Add flags for enabling software rendering in FlutterActivity (#3724) 2017-06-01 13:53:12 -07:00
Chinmay Garde
71da3d7955 Ensure that gradient tile mode enum values in Dart match SkShader::TileMode. (#3721) 2017-06-01 12:18:13 -07:00
Zachary Anderson
a808ab9f0c Stop passing ignored argument to snapshot script (#3723) 2017-06-01 12:09:14 -07:00
Gary Qian
796259c089 Allow switching to the software rendering backend on Android. (#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
9e0eaa151d [fuchsia] Ensure flutter_apps in the same BUILD.gn have separate scratch directories for building the FLX. (#3720) 2017-05-31 12:41:25 -07:00
Michael Goderbauer
249fab6b10 [iOS accessibility] Dispatch taps to selected element (#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
Jêrôme Poichet
88c24a6c1a Updating to take into account the new Mozart IME Action API (#3714) 2017-05-26 09:34:01 -07:00
Chris Bracken
75c74dc463 Add inactive, suspending ApplicationLifecycleState values (#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
73508ed1c1 Add faster entry points for drawPoints and friends (#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
Chris Bracken
af60e003d0 Roll dart to ae57eca5040cc32e97c9f4728842127f8ca5f742 (#3711) 2017-05-23 18:39:17 -07:00
xster
acb3816ed1 Fix a typo (#3710)
I weaksauced
2017-05-23 18:12:02 -07:00
Chris Bracken
1295b4718b Roll Dart SDK to 54bd8a79c48b4346d926ab3d3c3f986e5e691bc3 (#3708) 2017-05-23 15:37:20 -07:00
Adam Barth
84ccfde363 Teach flutter_runner about namespaces (#3707)
Rather than receiving an ApplicationEnvironment, we now receive a namespace.
Once we have FIDL2, we can plumb the namespace all the way through to Dart.
2017-05-23 15:21:07 -07:00
Michael Goderbauer
6187779e9c Use children's labels if element doesn't have one (#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
69b75b5810 Fix crash in iOS accessibility (#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
c992b1ee92 Use a new Skia API for safe passing of images across threads and GrContexts (#3705)
Fixes https://github.com/flutter/flutter/issues/9439
2017-05-22 17:26:56 -07:00
Ian Hickson
8b09c7231e Better onDrawFrame docs (#3704) 2017-05-22 12:30:54 -07:00
Ian Hickson
8bad02c184 Roll Dart (#3703) 2017-05-22 12:30:46 -07:00
Chris Bracken
5a7e862cbe Update iOS HapticFeedback.vibrate implementation (#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
dac0841394 AX fixes for scrolling on iOS (#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
9db5ebee2c AX fixes for iOS (#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
82815836eb Smarter text/selection will/didChange events (#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
Jêrôme Poichet
e3dd318f81 Fixing typo for OfferServiceProvider Mozart API (#3698) 2017-05-17 13:02:45 -07:00
mattsarett
c6b05f19c1 Add appropriate include file to canvas.cc (#3697)
This will ensure that the engine is not broken by a future
skia roll.
2017-05-17 15:19:51 -04:00
Adam Barth
7552150f77 Support Mozart::NativesDelegate on Fuchsia (#3696) 2017-05-17 11:04:50 -07:00
Adam Barth
cf3424ab3f Update ICU initialization on Fuchsia (#3695)
The new pattern is needed to support the migration to service namespaces.
2017-05-16 14:22:03 -07:00
Ian Hickson
0d94214df4 Fix a11y an Android (#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
6fef702cfa Trivial fixes to dart:ui docs. (#3689) 2017-05-15 13:30:24 -07:00
Ian Hickson
87398c9c77 Move the test runner to a higher DPI screen. (#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
7dd359e165 Solicit input about Canvas.drawPoints API break (#3693) 2017-05-15 10:07:10 -07:00
Adam Barth
f1bfdddfc8 Add SkColorSpace to Picture.toImage() (#3691)
Skia doesn't actually create the image if we don't supply a color space.
2017-05-13 10:33:04 -07:00
Jêrôme Poichet
30edb3c02f Adapting to Mozart API changes for the IME. (#3687) 2017-05-12 13:02:43 -07:00
Adam Barth
bc8e3b5e72 Fix some text input-related typos (#3686) 2017-05-12 09:28:15 -07:00
Jason Simmons
df5f62f236 Add a flag that checkerboards offscreen render targets created by SkCanvas.saveLayer (#3685)
Fixes https://github.com/flutter/flutter/issues/9473
2017-05-11 15:00:16 -07:00
Chris Bracken
f99d3ef108 Adjust bottom padding correctly on iOS keyboard hide (#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
f2581c9bcc32f9e2e7372eb7e94a8aa9f5aab0b2 due to didChangeFrame
notification firing after willBeHidden on keyboard dismissal.
2017-05-11 10:07:37 -07:00
Adam Barth
ce11143b0e Fix Fuchsia IME crashes (#3680)
We still don't get IME text, but at least we don't crash.
2017-05-10 19:20:07 -07:00
mikejurka
ab52094995 Fix Fuchsia build. (#3683) 2017-05-10 18:40:43 -07:00
Chinmay Garde
8d428e71b2 Create a cache of unz_file_pos entries in ZipAssetStore for faster lookup. (#3682) 2017-05-10 17:11:08 -07:00
Chris Bracken
f2581c9bcc Update view padding on iOS keyboard frame change (#3681) 2017-05-10 16:35:58 -07:00
Adam Barth
725b77e1e6 Connect to text input service now that it doesn't crash (#3675) 2017-05-10 15:08:46 -07:00
Mikkel Nygaard Ravn
006ae2fef4 Forward openURL requests to plugins (#3679) 2017-05-10 23:51:13 +02:00
Ian Hickson
b7f214902c Add documentation to TileMode. (#3668) 2017-05-10 12:22:08 -07:00