3051 Commits

Author SHA1 Message Date
Jason Simmons
b3b626547f Log uncaught exceptions from JNI calls at a higher priority (flutter/engine#5891) 2018-07-27 14:33:44 -07:00
mikejurka
05395a3a17 [scenic] Expose compositor context from rasterizer. (flutter/engine#5739)
Needed by code to support Scenic's new API for views.
2018-07-26 21:46:07 -07:00
Chinmay Garde
6ab2c166fd Remove all dependencies on Garnet. (flutter/engine#5869) 2018-07-26 12:49:34 -07:00
Stanislav Baranov
e5b0a15bce Support hot reload in corejit mode (flutter/engine#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
4cf4ffab2e Support customizing standard accessibility actions on Android. (flutter/engine#5823) 2018-07-25 15:26:02 -07:00
Chinmay Garde
c1c309ae2d Make //flutter/synchronization Garnet free. (flutter/engine#5865) 2018-07-25 14:30:41 -07:00
Chinmay Garde
62289623fc Remove //flutter/glue and use FML directly. (flutter/engine#5862) 2018-07-25 13:20:48 -07:00
Amir Hardon
90d63afdeb 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
30562c503e 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
b2d92b2c9f Make the virtual display's presentation window non focusable. (flutter/engine#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
Jason Simmons
ebbdba1aea Migrate to a standalone Tonic repository separated from Topaz (flutter/engine#5817) 2018-07-23 11:49:35 -07:00
Jonah Williams
6526a25097 Semantics framework updates (flutter/engine#5601) 2018-07-20 11:17:59 -07:00
Joshua Seaton
967a473c6d [fml][fxl] Migrate AutoResetWaitableEvent to fml version. (flutter/engine#5808)
Thanks Jason for the speedy review
2018-07-20 10:12:38 -07:00
Jonah Williams
0c14fd36af add text capitalization support to ios and android (flutter/engine#5752) 2018-07-19 18:07:18 -07:00
Stanislav Baranov
19219f9693 Fix starting isolate directly from CoreJIT snapshot. (flutter/engine#5798) 2018-07-19 08:55:04 -07:00
Jonah Williams
9f7eec7f7a Ensure assistiveTechnologyEnabled is initialized when the android view is set up (flutter/engine#5793) 2018-07-18 15:32:38 -07:00
amirh
c649bff5af Add touch events to the platform views method channel API. (flutter/engine#5796) 2018-07-18 15:20:59 -07:00
Jonah Williams
35f0247c87 Fix allocation of JNI byte buffer on API level 22 and below (flutter/engine#5788) 2018-07-17 11:58:42 -07:00
Michael Goderbauer
a522d83c4b Roll buildroot to 7b5fd64b26afe194fa49463bad204b2cfba47fb6 (flutter/engine#5769) 2018-07-16 13:23:58 -07:00
Jason Simmons
b76d939032 Handle Android vsync callbacks that occur after the VsyncWaiter has been deleted (flutter/engine#5749)
Fixes https://github.com/flutter/flutter/issues/19159
2018-07-16 12:04:05 -07:00
Jonah Williams
c8516387e2 Revert rollback of "add assistiveTechnologyEnabled to window" (flutter/engine#5750) 2018-07-16 09:04:20 -07:00
Jonah Williams
ed18f218aa Expose keyboardAppearance field in iOS FlutterTextInputPlugin.mm (flutter/engine#5714) 2018-07-13 19:59:59 -07:00
Jonah Williams
b07e9faa35 Revert "Add assistiveTechnologyEnabled flag to window" (flutter/engine#5746)
Reverts flutter/engine#5740
2018-07-13 15:55:49 -07:00
amirh
3628fa0f6b Implement PlatformViewsController. (flutter/engine#5722)
Each platform view created (by a plugin supplied factory) is attached to
a virtual display.
The virtual displays are controlled by VirtualDisplayController objects.
The PlatformViewsController maintains a mapping from a platform view's
id to its VirtualDisplayController, which allows it to operate on the
virtual display for a given platform view ID when asked so over the
method channel.

This is using API level 20 APIs, on lower API levels all platform views
method channel calls are noops.
We can make this work on API 19 with some refactoring to the
TextureRegistry (allow the engine Java code to recycle a texture entry
id).

This CL also adds a platform view id parameter to the
PlatformViewFactory#create() method. This allows plugins to route
platform channel messages to specific instances of a platform view.

TBD in future CLs:
  * Forward touch events to the platform views.
  * Support accessibility for platform views.

flutter/flutter#19030
2018-07-13 14:08:24 -07:00
Jonah Williams
71e01bf548 Add assistiveTechnologyEnabled flag to window (flutter/engine#5740) 2018-07-13 13:47:31 -07:00
Ben Konyi
9cec23702e Background Execution Implementation for iOS (flutter/engine#5539) 2018-07-13 10:55:24 -07:00
amirh
31747d600c gitignore intellij generated folder (flutter/engine#5729) 2018-07-13 09:23:43 -07:00
Jonah Williams
9007b92cdd rollback chrome change (flutter/engine#5721) 2018-07-11 15:28:33 -07:00
amirh
e0203cb408 Platform Views: Android and MethodChannel APIs, and implementation skeleton. (flutter/engine#5684)
To keep the scope of this CL as small of possible I'm leaving the actual
implementation of the platform view mechanics to a following CL.

This CL introduces:
  * A PlatformViewsController class which will be responsible for creating,
    resizing, and disposing platform views.
  * A PlatformViewRegistry which is exposed through the PluginRegistry
    and allows plugins to register factories for platform views.

Android plugin code will add support for a new platform view type by
implementing PlatformViewFactory, and registering a factory with the
registry, e.g:
```java
registrar.platformViewRegistry().registerViewFactory(
  'webview',
  new FlutterWebViewFactory()
);
```
On the Dart side, the framework will ask the engine to create new
platform views by sending a create message over the platformviews method
channel with the unique platform view type id, dimensions, and a unique
id allocated by the framework for the new platform view instance.
The platformviews method channel is also used for resizing and disposing
platform views.
2018-07-11 14:11:15 -07:00
Jonah Williams
5bf14b1e4d Custom accessibility (local context) action support for iOS and Android. (flutter/engine#5597) 2018-07-11 10:27:50 -07:00
Jonah Williams
5898c7d068 Swap definitions of SystemChrome apis to match iOS (requires framework change when rolling) (flutter/engine#5609) 2018-07-10 17:36:31 -07:00
Jonah Williams
75ca1306fa revert change to app delegate that wont build on earlier xcodes (flutter/engine#5702) 2018-07-09 15:22:25 -07:00
Jonah Williams
6eab9d08be Remove cullRect calculation on TransformLayers with a perspective transform. (flutter/engine#5693) 2018-07-09 12:52:10 -07:00
Jonah Williams
f5e9db755b ensure that bridge is not destroyed when semantics is still enabled (flutter/engine#5672) 2018-07-03 22:25:40 -07:00
Jason Simmons
cc2776129d Do not make an extra submit callback during SurfaceFrame destruction if the frame was already submitted (flutter/engine#5669) 2018-07-03 17:17:57 -07:00
amirh
eada888921 Remove unused Java imports (flutter/engine#5663) 2018-07-03 09:21:03 -07:00
matthew-carroll
7edb7e3bc7 Support all keyboard actions. (#11344) (flutter/engine#5620)
* Support all keyboard actions. (#11344)
2018-07-02 06:58:01 +00:00
Jonah Williams
0d6edb079d ensure a11y state is communicated back to flutter (flutter/engine#5631) 2018-06-28 13:30:51 -07:00
Jason Simmons
2d1668246d Remove some unused code from the Android host (flutter/engine#5619)
These functions were made obsolete by the engine refactoring
(077d29581c)
2018-06-27 11:06:15 -07:00
Jason Simmons
1348956a03 Check for calls to FlutterMain.ensureInitializationComplete before startInitialization (flutter/engine#5614) 2018-06-25 16:32:38 -07:00
Chinmay Garde
c99feea85b Remove remaining uses of Skia private header includes. (flutter/engine#5570)
Part of fixing https://bugs.chromium.org/p/skia/issues/detail?id=7741
2018-06-25 16:15:12 -07:00
Sigurd Meldgaard
bfc31675be Postpone dart initialization to -viewWillAppear on iOS (flutter/engine#5553) 2018-06-21 12:43:38 +02:00
Jason Simmons
78dfc68e0a Make Engine::GetFontCollection public (flutter/engine#5578)
Required by the Fuchsia embedder
2018-06-20 10:54:58 -07:00
Jason Simmons
0b419727e7 Load the ICU data file asset from the "flutter_shared" path (flutter/engine#5567)
See https://github.com/flutter/flutter/issues/18514
2018-06-19 14:34:13 -07:00
Ryan Macnak
e8df7055bc Replace AssetResolver GetAsBuffer with GetAsMapping. (flutter/engine#5546)
Toward no-copy loading of kernel.
2018-06-19 14:24:19 -07:00
Chinmay Garde
a7d32b86e5 Get rid of an include of an internal Skia header in GPU Surface GL. (flutter/engine#5568) 2018-06-19 13:12:46 -07:00
Chinmay Garde
93a6d340fa Add explicit casts to pointer data members on Android. (flutter/engine#5558)
This accounts for changes made in https://github.com/flutter/engine/pull/5556
2018-06-18 12:08:11 -07:00
Ian Hickson
19d7432403 Remove spurious log messages (flutter/engine#5547)
These are making some of the tests that are sensitive to output flakey.
2018-06-15 14:15:35 -07:00
Maurice Parrish
be469ff641 Added method for receiving Dynamic Links (flutter/engine#5534) 2018-06-15 10:37:47 -07:00
Jason Simmons
97cf68d6c8 Lazily load fonts that are embedded within the application (flutter/engine#5533)
Previously the engine would load all embedded fonts listed in the app's
font manifest during startup.  This change creates a Skia font manager that
is backed by the engine's AssetManager and can load embedded font assets
on demand.
2018-06-14 16:13:56 -07:00