Commit Graph

384 Commits

Author SHA1 Message Date
Jonah Williams a5215ce500 Add hasImplicitScrolling SemanticFlag and support in Android bridge (#5941) 2018-08-06 13:57:00 -07:00
Ben Konyi bc885f319b Updated background execution implementation for Android 2018-08-06 12:27:57 -07:00
amirh ffbafc852d Flush all embedded Android views on hot restart. (#5929)
* Flush all embedded Android view on hot restart.

Adds an OnEngineRestarted method to PlatformView, this is currently only
implemented for Android where we need to use it for embedded views.

* review comments followup

* rename to OnPreEngineRestart, call before Clone
2018-08-03 08:54:12 -07:00
amirh 3b66f20d96 Don't drop MotionEvents with unknown tool type. (#5931)
Instead, send them with the new unknown PointerDeviceKind.

We hit this when running `adb shell input tap` in tests which sends events with
an unknown tool type.

This also fills in a missing conversion for TOOL_TYPE_ERASER.
2018-08-02 16:05:55 -07:00
Michael Goderbauer a76054f4b6 Switch to minimal ICU data config for flutter (#5922) 2018-08-01 17:24:07 -07:00
Jonah Williams dcd2956f88 Initial support for more finely-grained a11y features on Window (#5901) 2018-07-31 18:18:19 -07:00
Jonah Williams 236d633a49 Add word movement granularities to android (#5902) 2018-07-30 17:53:17 -07:00
Jason Simmons 46b77937b3 Clear the EGL context only if our context is currently active (#5895)
Fixes https://github.com/flutter/flutter/issues/19566
2018-07-30 09:52:39 -07:00
amirh 5da006472c Fix wrong conversion of MotionEvent to Flutter's PointerEvent kind. (#5894)
We were sending the toolType values as-is which is wrong, e.g touch
events showed in Flutter as mouse events.
2018-07-27 16:12:26 -07:00
Jason Simmons f9f40badde Log uncaught exceptions from JNI calls at a higher priority (#5891) 2018-07-27 14:33:44 -07:00
Chinmay Garde 9f8285ac6c Remove all dependencies on Garnet. (#5869) 2018-07-26 12:49:34 -07:00
Stanislav Baranov f480e32347 Support hot reload in corejit mode (#5866)
Since frontend_server --incremental doesn't support --link-platform, instead of baking host app into the snapshot, load it from kernel file when running in debug mode.
2018-07-26 08:52:19 -07:00
Jonah Williams d559afb320 Support customizing standard accessibility actions on Android. (#5823) 2018-07-25 15:26:02 -07:00
Amir Hardon d2d8bf3941 Pass touch events to embedded Android views with dispatchTouchEvents.
Was previously calling onTouchEvent directly which doesn't make the
event go through the full pipeline (e.g onInterceptTouchEvent is not
called).
2018-07-25 12:21:51 -07:00
Amir Hardon 2169086529 Synthesize Android MotionEvents with the long form obtain method.
The simple form MotionEvent.obtain method I used before does not allow
to synthesize multi pointer events.
2018-07-25 12:21:51 -07:00
amirh 42bd86d6db Make the virtual display's presentation window non focusable. (#5845)
When the FlutterView's window loses focus Flutter cannot bring up the
keyboard (so e.g tapping on text fields doesn't work).

This workaround makes sure that Flutter text fields are working but
unfortunately now the embedded Android view cannot bring up the keyboard
as it's window is not focused.

Submitting this until as a stop gap while we're trying to figure out if
it's possible to allow both windows to bring up the keyboard.
2018-07-25 08:51:56 -07:00
Jonah Williams 96f5f5b96c Semantics framework updates (#5601) 2018-07-20 11:17:59 -07:00
Joshua Seaton 663b4925b8 [fml][fxl] Migrate AutoResetWaitableEvent to fml version. (#5808)
Thanks Jason for the speedy review
2018-07-20 10:12:38 -07:00
Jonah Williams d1c71e5206 add text capitalization support to ios and android (#5752) 2018-07-19 18:07:18 -07:00
Stanislav Baranov 5d0e13a45b Fix starting isolate directly from CoreJIT snapshot. (#5798) 2018-07-19 08:55:04 -07:00
Jonah Williams 55b423f07f Ensure assistiveTechnologyEnabled is initialized when the android view is set up (#5793) 2018-07-18 15:32:38 -07:00
amirh 3054f31837 Add touch events to the platform views method channel API. (#5796) 2018-07-18 15:20:59 -07:00
Jonah Williams 5557e3006e Fix allocation of JNI byte buffer on API level 22 and below (#5788) 2018-07-17 11:58:42 -07:00
Jason Simmons 316b026807 Handle Android vsync callbacks that occur after the VsyncWaiter has been deleted (#5749)
Fixes https://github.com/flutter/flutter/issues/19159
2018-07-16 12:04:05 -07:00
Jonah Williams 2e57ecd38f Revert rollback of "add assistiveTechnologyEnabled to window" (#5750) 2018-07-16 09:04:20 -07:00