3211 Commits

Author SHA1 Message Date
Rich Kadel
c2ad820db9 Migrated integration_flutter_test/embedder (scenic integration test) from fuchsia.git (flutter/engine#26880) 2021-09-30 17:10:02 -07:00
Alexander Biggs
dad7453c05 [fuchsia] Dart Runner for CF v2 components. (flutter/engine#28923)
Bug: fxb/79871

Implements the ComponentRunner protocol for the Dart runner, making the Dart runner compatible with CF v2.
2021-09-30 19:41:02 -04:00
Dan Field
8424cd2767 Avoid GCing aggressively during startup, and forward trim messages beyond low to application (flutter/engine#28891) 2021-09-30 12:46:49 -07:00
WenJingRui
8cc6aa3a61 [shared_engine] Avoid the method surfaceUpdated is called many times when multiple FlutterViewController shared one engine (flutter/engine#28658) 2021-09-29 20:53:01 -07:00
gaaclarke
4a47a9f60d fixed android unit tests (rotted before CI is running) (flutter/engine#28938) 2021-09-29 14:19:44 -07:00
Emircan Uysaler
7faf37c825 [fuchsia] Rename FuchsiaExternalViewEmbedder to GfxExternalViewEmbedder (flutter/engine#28820) 2021-09-29 11:55:45 -07:00
Jaeheon Yi
c60637ac3f [fuchsia] Flatland endpoints hookup (flutter/engine#28852)
This patch gives the view-specific protocol
endpoints to the Flatland instance.
2021-09-29 11:21:11 -07:00
Camille Simon
0eddf5471a Deprecate SplashScreenProvider (flutter/engine#28921) 2021-09-29 11:11:06 -07:00
ColdPaleLight
3bd57ac05a Make FlutterEngineGroup support initialRoute (flutter/engine#28884) 2021-09-29 11:02:37 -07:00
Tong Mu
f53ff208be [Linux] Fix crash when a method channel is reassigned (flutter/engine#28878)
* Impl

* Format

* Doc
2021-09-29 10:47:00 -07:00
Tong Mu
8ef081034c [Linux, Embedder] Add engine restart hooks (flutter/engine#28924)
* Restart

* Format

* Doc

* Test

* Format

* Revert keyboard
2021-09-29 10:46:43 -07:00
Emmanuel Garcia
03fc3660f6 Destroy overlay surfaces when the rasterizer is torn down (flutter/engine#28894) 2021-09-28 14:38:02 -07:00
gaaclarke
452b0bd2f9 added unit tests for the android embedder that run on android devices (flutter/engine#28784) 2021-09-28 14:02:18 -07:00
David Worsham
5633de2702 fix test again 2021-09-28 12:48:12 -07:00
David Worsham
d5d15aba36 fix test 2021-09-28 12:48:12 -07:00
David Worsham
4114da27f4 fuchsia: Use runner services 2021-09-28 12:48:12 -07:00
moko256
b8809dde77 Windows: Add dark theme support. (flutter/engine#28131)
This PR adds the dark theme support for both windows and winuwp engine, based on flutter/flutter#54612.

On Win32: using a registry value that is not documented. (I tested on Windows 10.0.19043.1165)
On UWP: using default background color. (I couldn't find WinRT API that returns dark/light directly, without xaml package.)

Flutter PR for win32: flutter/flutter#88520.
This PR will close flutter/flutter#54612.
This PR will complete one item in flutter/flutter#70214.
2021-09-28 11:03:18 -07:00
moko256
fecbc63bec [UWP] Implement clipboard. (flutter/engine#28064)
This PR implements clipboard in platform handler in UWP.
2021-09-27 17:01:42 -07:00
Emircan Uysaler
ea8305d95f fuchsia: Add child views to flatland engine (flutter/engine#28811) 2021-09-27 12:13:01 -07:00
Chris Yang
c9f351741d backdrop_filter_layer only pushes to the leaf_nodes_canvas (flutter/engine#28500) 2021-09-27 11:33:01 -07:00
moko256
00ca12c712 [UWP] Add modifier keys support (flutter/engine#28724)
Implement GetModsForKeyState in keyboard_key_channel_handler.cc
2021-09-27 11:19:29 -07:00
LongCatIsLooong
047a8acf2d [iOSTextInput] remove floating cursor asserts (flutter/engine#28868) 2021-09-27 11:08:16 -07:00
Jaeheon Yi
482c08216e fuchsia.ui.pointer.TouchSource implementation for fuchsia platform view (flutter/engine#28242) 2021-09-26 07:43:05 -07:00
Alexander Biggs
2e9689d1a3 [fuchsia] Remove unused deps on fidl optional.h. (flutter/engine#28863)
Removed in https://fuchsia-review.googlesource.com/c/fuchsia/+/585444
making our SDK roll fail in #28862.
2021-09-26 09:49:08 -04:00
chunhtai
c10d96d6c9 Fixes FlutterSemanticsScrollView to not implement accessibility container API (flutter/engine#28846) 2021-09-24 14:59:42 -07:00
Alexander Biggs
6dd9777440 [Fuchsia] Notify Shell when memory becomes low. (flutter/engine#28821) 2021-09-24 12:23:01 -07:00
Gary Qian
98716a1274 Fix deprecated WindowManager INCORRECT_CONTEXT_USAGE and VsyncWaiter takes FPS float (flutter/engine#28774) 2021-09-23 16:38:40 -07:00
ColdPaleLight
b5b786f13a Delete is_background_view from FlutterJNI (flutter/engine#28566) 2021-09-23 13:58:01 -07:00
Yuhui Huang
1b2b1cae4c Linux texture support (flutter/engine#24916) 2021-09-23 13:53:02 -07:00
Jason Simmons
3aaefc576f Make DartExecutor.IsolateServiceIdListener public (flutter/engine#28806) 2021-09-23 07:38:01 -07:00
Jenn Magder
f9f6708037 Set MinimumOSVersion in iOS Info.plist based on buildroot setting (flutter/engine#28743) 2021-09-22 14:38:02 -07:00
Jenn Magder
47865c93b8 Set MinimumOSVersion to iOS 9 in Info.plist (flutter/engine#28783) 2021-09-21 19:08:01 -07:00
Emmanuel Garcia
4cb3bf45b2 Replace jcenter() for mavenCentral() (flutter/engine#28777) 2021-09-21 14:09:08 -07:00
Darren Chan
b82554ae4a Implement a default font manager for Fuchsia. (flutter/engine#28673)
This helps us get rid of our hacky font switch after engine initialization.

See https://fxbug.dev/76406 and https://github.com/flutter/flutter/issues/82202.
2021-09-21 12:33:37 -07:00
Alexander Biggs
7da9095bfb [fuchsia] Fix missing function in V2 dart runner. (flutter/engine#28734) 2021-09-20 18:21:22 -04:00
Jason Simmons
5cca7e4f66 Do not share the GrDirectContext across engine instances on Android (flutter/engine#28694) 2021-09-17 17:43:01 -07:00
David Worsham
877ab26be3 fuchsia: Use buffer_collection_x extension (flutter/engine#28683) 2021-09-17 15:31:26 -07:00
Rulong Chen(陈汝龙)
3c7cce85f0 [android] Fix black and blank screen issues on the platform view page. (flutter/engine#28277) 2021-09-17 11:25:06 -07:00
David Worsham
6e7589fc42 fuchsia: Add FuchsiaExternalViewEmbedder tests (flutter/engine#28144) 2021-09-16 22:10:38 -07:00
Zachary Anderson
75c1fbccc7 Don't use Dart's application_snapshot() rule (flutter/engine#28361) 2021-09-16 13:37:01 -07:00
Emmanuel Garcia
294895d132 Don't use Build.VERSION_CODES.S in test (flutter/engine#28667) 2021-09-16 13:27:01 -07:00
Niklas Schulze
fec4d526e3 Windows: FlutterDesktopPixelBuffer: Add optional release callback (flutter/engine#28298) 2021-09-16 13:07:02 -07:00
Brandon DeRosier
7b6fa075a7 Flip on leak detector and suppress or fix remaining leak traces (flutter/engine#28625)
Patch/suppress the remaining leaks and flip on the leak detector to start catching new leaks in CI.
2021-09-16 12:58:56 -07:00
Renzo Olivares
6b8c6b6711 TextEditingDelta support for iOS (flutter/engine#28418) 2021-09-16 10:07:02 -07:00
Renzo Olivares
b2b2f705de TextEditingDelta support for Android (flutter/engine#28175)
* Add new channel updateEditingStateWithDelta

* Fix formatting

* Fix formatting

* Fix formatting

* Add equality case

* formatting

* Implement TextEditingDelta class to encapsulate delta logic

* Formatting

* Also send new composing/selection along with delta

* Utilize an ArrayList of TextEditingDeltas to take into account batch editing

* clear batch deltas when editing state is updated by framework, we don't want to collect deltas from the framework because they have already been applied to the value on the framework side

* fix formatting

* formatting

* formatting

* Add enableDeltaModel flag to choose between updateEditingValue and updateEditingValueWithDeltas

* Add autofill support for delta model

* formatting

* update

* Fix issues with composing region

* formatting

* Remove

* Fix out of bounds error when textfield is initialized with text

* Clean up logs

* formatting

* update licenses

* Fix deletion issues

* formatting

* delta -> deltaType

* updates

* formatting

* formatting

* Fix logs

* Add tests for TextEditingDelta

* formatting fixes

* remove unused imports

* Fix return type for getDeltaType

* Fix tests

* Fix ListenableEditingStateTest

* formatting

* Fix typo

* Add test for deltas when setComposingText

* formatting

* Updates to test

* fix typo

* formatting

* Verify all properties of delta for test

* formatting

* Add VisibleForTesting import

* fix test

* fix formatting

* fix tests

* fix tests

* fix tests

* updates for tests

* remove ide made file

* Fix more tests

* Fix TextEditingDelta tests

* Add test for verifying delta is generated on setComposingText

* Add TextInputPlugin tests for replacement and deletion deltas

* formatting

* formatting

* Capture delta on setSpan and clear deltas when generated from the framework and when we skip updating the framework

* fix formatting

* update tests to reflect new clear batch delta calls

* Make deletion inline with platform

* fix tests

* Address reviewer comments

* formatting

* fix tests

* fix tests

* move delta inference to framework

* update tests

* formatting

* fix tests

* Formatting

* get -> extract

* More tests and address reviewer comments

* clean up logs

* Address reviewer comments

* formatting

* formatting

* Remove testing constructor

* send as deltas
2021-09-15 13:41:21 -07:00
Alexander Biggs
66fe4ff7d1 [fuchsia] Create DartComponentController for CFv2. (flutter/engine#28613)
Bug: fxb/79871

The code is still using the CFv1 implementation, so this should not affect the existing behavior.

For this version of the PR, I forked the existing DartComponentController. There were a few reasons for this:

Reduces the chance of the change breaking existing tests during Fuchsia GI.
Makes the V2 version of the DartComponentController simpler to read.
Makes it easier to switch over to using the V2 version of the DartComponentController once the migration is ready to happen (less cleanup).
The rate of changes to the DartComponentController is slow so there shouldn't be much maintenance required for the fork.
Changes to the DartRunner itself will happen in a follow-up PR - this PR only verifies that the ComponentController builds.

Relands GN and C++ changes for #27226 after rollback in #28036.
2021-09-14 16:15:53 -07:00
Kate Lovett
297946f1c1 Update API availability of edge to edge (flutter/engine#28616) 2021-09-14 17:14:23 -05:00
Emmanuel Garcia
e10e8ca58e Don't use rFD in pre-Q versions (flutter/engine#28593) 2021-09-13 15:31:54 -07:00
Daco Harkes
eb9ef3e99c [Desktop][Linux] Add RUNPATH $ORIGIN to flutter_linux_gtk (flutter/engine#28525) 2021-09-13 07:57:29 +02:00
Dan Field
33b811183a Allow injection of ExecutorService (flutter/engine#28543)
* Allow injection of ExecutorService

* Set thread names, use cached pool
2021-09-10 12:52:02 -07:00