7877 Commits

Author SHA1 Message Date
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
Chris Bracken
813623a3f8 Set Android keyboard actionLabel only if non-null (#3677) 2017-05-10 12:20:03 -07:00
Jason Simmons
c3ff4c8d9d Roll Skia (#3676) 2017-05-10 12:04:53 -07:00
freiling
aa0bf7d347 [vulkan] make validation layer errors non-fatal on Fuchsia (#3674) 2017-05-10 10:36:26 -07:00
Sarah Zakarias
d51126b56b Remove urlLauncher and pathProvider from FlutterPlatformPlugin (#3673) 2017-05-10 13:42:13 +02:00
Mikkel Nygaard Ravn
cb5a86a1dc Fix iOS plugin reg docs (#3672) 2017-05-10 08:40:14 +02:00
freiling
a26700cea8 [MA-216] fix vulkan teardown order (#3666) 2017-05-09 15:18:40 -07:00
Adam Barth
29531fb16e Wire up Mozart's text input interface (#3669)
This patch wires Mozart's text input system to flutter/textinput. This patch
doesn't fully work yet because the Mozart side isn't fully implemented.
2017-05-09 15:07:41 -07:00
Chris Bracken
ce14f6907b Disable auto-correct for text editing when obscureText is set (#3661) 2017-05-09 14:55:58 -07:00
mikejurka
ffed885296 Enable Vulkan validation layers on Fuchsia in debug mode. (#3663)
Disable info debug messages from the layers to cut down log spam.
2017-05-09 14:32:17 -07:00
Chinmay Garde
aac4fdca96 Fix Android Vulkan build by accounting for updated GN flags. (#3670) 2017-05-09 14:17:24 -07:00
Chinmay Garde
fd9f111029 Update Skia revision to 7120b2d577d3aab1f51c5af1530a68c57ca51696. (#3667)
* Update Skia revision to 7120b2d577d3aab1f51c5af1530a68c57ca51696.
* Update licenses.
* Account for content handler updates.
2017-05-09 12:35:04 -07:00
Mikkel Nygaard Ravn
cbbf956fcb Add documentation to iOS plugin registry (#3665) 2017-05-09 11:26:02 +02:00
Mikkel Nygaard Ravn
432fc1db4c Use older openURL signature (#3660) 2017-05-08 23:29:59 +02:00
Mikkel Nygaard Ravn
5e6bd48aa5 Add uikit import (#3659) 2017-05-08 22:53:04 +02:00
mikejurka
0304668183 Include new Vulkan enum values only on Fuchsia (#3658)
Fixes build.
2017-05-08 13:44:07 -07:00
mikejurka
15cb187cc9 Update to match the latest Vulkan loader in Fuchsia (#3654) 2017-05-08 12:58:17 -07:00
Mikkel Nygaard Ravn
bf2166b659 iOS plugin registry (#3645) 2017-05-08 21:45:23 +02:00
Mikkel Nygaard Ravn
b273d1ad04 Android plugin registry (#3641) 2017-05-08 21:44:49 +02:00
Adam Barth
33ee0a50d6 Add Picture.toImage (#3657)
Fixes https://github.com/flutter/flutter/issues/6774
2017-05-08 09:10:34 -07:00
Ian Hickson
1c90fe6b23 Correct the docs for Size.lerp. (#3653) 2017-05-06 21:07:13 -07:00
P.Y. Laligand
3ddf163063 Fixed some analysis issues. (#3656) 2017-05-05 18:37:40 -07:00
Chris Bracken
1b01211ee6 Default return key behaviour to 'done' on iOS (#3655)
This change brings iOS return key behaviour in line with current behaviour on
Android.

* Implements TextInputClient.performAction for iOS Adds FlutterTextInputAction
* enum Defaults return key to 'Done' Ends editing and hides the keyboard if
* 'Done' is pressed

Future work is planned to support configurable return/action key behaviour.
See: #9573, #9210, #8028.
2017-05-05 17:40:52 -07:00
Adam Barth
bd2592bb4e Wait for Vulkan display driver on Fuchsia (#3651)
We now wait for 1 second for the display driver to appear on Fuchsia. This
approach is a stopgap until Vulkan is required for graphics.
2017-05-05 11:24:24 -07:00
Ian Hickson
0071651ecb Some doc typos (#3647) 2017-05-04 22:42:04 -07:00
Adam Barth
9cfc67ef57 Retrieve the last error from the proper thread (#3649)
Previously, the last error was a global static. Now it is a thread-specific
value, which means we need to visit the UI thread to read the value.
2017-05-04 21:30:39 -07:00
Adam Barth
0efcb4a618 Update tonic to fix build (#3648) 2017-05-04 20:56:05 -07:00
Todd Volkert
f5d92bee15 Add ipv6 flag to shell. (#3646)
It controls whether the observatory and diagnostic server will
bind to the IPv6 loopback address rather than the IPv4.

Fixes https://github.com/flutter/flutter/issues/9813
2017-05-04 19:35:59 -07:00
Adam Barth
da0b1f5a36 Make microtask queue be per thread (#3644)
Previously, it was a static. Doesn't have much effect in practice because we
only use this microtask queue for main isolates, which exist on a single
thread.
2017-05-04 15:06:43 -07:00