92 Commits

Author SHA1 Message Date
Alhaad Gokhale
9c1e48434b
Updates for Fuchsia roll. (#4765)
* AssetProvider
* libtxt
2018-03-09 12:18:25 -08:00
mikejurka
3fbdbe3637
[fuchsia] Update to using a Mozart session. (#4701) 2018-02-23 21:06:59 -08:00
Adam Barth
63b9dab168
[fuchsia] Rename fidl namespace to f1dl (#4707)
This rename is to prepare for the migration to FIDL2.
2018-02-23 14:07:08 -08:00
Carlos Pizano-Uribe
e5b72e5f87 Wire pointer buttons for fuchsia (#4658)
* Wire pointer buttons for fuchsia

Right now can't tell right from left button.
2018-02-17 07:53:22 -08:00
Zachary Anderson
816baf2883
[Fuchsia] Reads a config file when running from source (#4669) 2018-02-13 15:15:46 -08:00
Zachary Anderson
76d4928b05
Reland: [fuchsia] Enable running from source packages (#4634)
This relands https://github.com/flutter/engine/pull/4629 with a
tonic roll to fix the build.
2018-02-06 10:08:24 -08:00
Yegor
6dd49f0695
iOS a11y text entry (~70% of it) (#4575)
* implement iOS text field editing in a11y mode

* address Chinmay's comments

* replace node in child list when changing type
2018-02-05 15:14:13 -08:00
Zachary Anderson
151bb37435
Revert "[fuchsia] Enable running from source packages (#4629)" (#4632)
This reverts commit 8f638591e97b350962001f5af38d2464421ec3dc.
2018-02-02 22:38:49 -08:00
Zachary Anderson
8f638591e9
[fuchsia] Enable running from source packages (#4629) 2018-02-02 15:43:21 -08:00
Zachary Anderson
d5338ed143
[fuchsia] Set up the namespace in dart:zircon (#4628) 2018-02-01 22:47:01 -08:00
Adam Barth
0818d8c03d
[fuchsia] Update FIDL1 C++ bindings to match FIDL2 interface (#4620)
This change will make it easier to transition to FIDL2.
2018-01-30 12:35:26 -08:00
Ryan Macnak
5e89d7a751
Initial implementation of idle tasks for Fuchsia. (#4565) 2018-01-18 10:28:36 -08:00
Sarah Zakarias
1e23d648cb
Run Fuchsia apps without flx (#4550) 2018-01-15 11:09:01 +01:00
Sarah Zakarias
ce8ea0f742
Revert "Run Fuchsia apps without flx" (#4545)
* Revert "include portable_unistd.h in directory_asset_bundle (#4542)"

This reverts commit 211150fe40fbca68580af2f923b87ddb5ac924c6.

* Revert "Run Fuchsia apps without flx (#4538)"

This reverts commit 8718438d83c2cf3acdd3781df8ae4d00b8de56b1.
2018-01-12 15:55:47 +01:00
Sarah Zakarias
8718438d83
Run Fuchsia apps without flx (#4538) 2018-01-12 13:31:54 +01:00
Kevin Lindkvist
63c34d8330 Add clipboard actions to Fuchsia. (#4479)
This adds a ClipboardPtr to RuntimeHolder that is used to handle
Clipboard.setData and Clipboard.getData.
2017-12-22 10:28:20 -08:00
Benjamin Lerman
32270c7836 Update API to use sized vmo instead of raw vmo. 2017-11-21 10:09:20 +01:00
Ian McKellar
d917c35e72
Allow Flutter apps on Fuchsia to shut down cleanly (#4366)
The UIDartState is now always owned by the isolate and always freed in
the isolate cleanup callback.

In the isolate shutdown callback, if the isolate being shut down is the
main isolate, the RuntimeController is informed which in turn notifies
the RuntimeHolder and thus the ApplicationControllerImpl. The
ApplicationControllerImpl tears down the whole Flutter application.

This fixes Fuchsia bug: MI4-328
2017-11-15 13:28:21 -08:00
Chris Bracken
bc2acf7bdd
Revert "Roll Fuchsia buildtools to 85907c59e97527d79bbfdfd849d8e85c24959cc5 (#4331)" (#4340)
With the update to HEAD of the Fuchsia buildtools repo, the new clang
toolchain picked up caused link-time breakage in android x86_64
libFlutter.so builds.

Sample log:
https://build.chromium.org/p/client.flutter/builders/Linux%20Engine/builds/1974/steps/build%20android_debug_x64/logs/stdio

Sample failure:
FAILED: libflutter.so libflutter.so.TOC lib.stripped/libflutter.so
../../third_party/android_tools/ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld.gold: error: obj/flutter/shell/platform/android/libflutter/android_context_gl.o: unsupported reloc 42 against global symbol std::__ndk1::num_put<char, std::__ndk1::ostreambuf_iterator<char, std::__ndk1::char_traits<char> > >::id

This reverts commit 8ad42f0dae3cb1267c2b9ab99db80e4696ddbc3d.
2017-11-08 16:48:00 -08:00
Chris Bracken
8ad42f0dae
Roll Fuchsia buildtools to 85907c59e97527d79bbfdfd849d8e85c24959cc5 (#4331)
* Roll Fuchsia buildtools to 85907c59e97527d79bbfdfd849d8e85c24959cc5

This also updates Flutter buildroot to a6e52dbb776c45cc8c57d7143b8eb8b2e762fdfb
which disables -Wtautological-constant-compare temporarily until
https://reviews.llvm.org/D39462 lands in clang. This is in line with
Fuchsia's compiler options.

* Apply clang-format diffs

No logical changes. This applies clang-format from the latest Fuchsia
buildtools to the engine codebase.
2017-11-08 11:18:17 -08:00
Mikkel Nygaard Ravn
ce7202d73c
Fix compile error in runtime holder (#4312) 2017-11-02 13:31:30 +01:00
Alexander Aprelev
ef02c69652 Fix Fuchsia build - pass newly introduce parameter in Fuchsia flow (#4274) 2017-10-25 07:49:35 -07:00
Alexander Aprelev
ec19da1c80 Initialize service isolate from kernel file, rather than from embedded sources. (#4263)
* Read core platform kernel file during Dart initialization.

Currently service isolate is initialized from the source code parsed by VM.
This CL changes it so service isolate created during Dart initialization
is created from the kernel platform.dill file if it is present in the application
bundle. Then this platform kernel file is kept in dart_init module and reused
for application sciprt isolates.

* Reformat and merge

* Use accessor method

* Avoid passing running_from_kernel param. Add TODO for cleanup. Rename param.
2017-10-24 19:37:24 -07:00
P.Y. Laligand
6fcb45991d Move //dart to //third_party/dart. (#4245) 2017-10-19 01:20:38 -07:00
Adam Barth
2528e533d6 Don't crash when we get unexpected pointer events. (#4230)
Just log them as errors
2017-10-17 13:25:09 -07:00
Erik Gilling
6b1878e096 Set ui, io, and gpu thread names. (#4196) 2017-10-13 23:02:14 -07:00
Travis Martin
9d98d886ad Report onscreen text to Fuchsia context engine. (#4097)
Add a class to track onscreen text via SemanticsNodes from the
accessibility layer, and report this text to the ContextEngine.
2017-09-21 12:41:13 -07:00
George Kulakowski
550d0c6490 Rename Magenta to Zircon, along with associated abbreviations (#4114) 2017-09-14 22:49:46 -07:00
Michael Goderbauer
08961f8ec5 Format all c-like sources with clang-format (#4088)
* format

* license script adaptions

* updated licenses

* review comments
2017-09-12 15:36:20 -07:00
George Kulakowski
31d03de019 Rename mtl to fsl (#4094) 2017-09-11 17:56:02 -07:00
George Kulakowski
3aa7522c11 Rename ftl to fxl in Fuchsia specific code (#4090) 2017-09-11 15:58:48 -07:00
Adam Barth
2a13951fa9 Update paths for //application move (#4085) 2017-09-11 14:40:03 -07:00
Zachary Anderson
2abd7c87e7 [Fuchsia] Disable dart:io exit() (#4080) 2017-09-11 11:25:38 -07:00
Ian McKellar
0047b71aaf Updates for the dart:fidl.internal rename and split. (#4070)
Now it references dart:zircon and dart:fuchsia.
2017-09-06 15:33:43 -07:00
Ian McKellar
79332e5c42 Support the ApplicationController::Wait interface. (#4061)
This only operates correctly when the application is killed using the
Kill() method. Flutter applications on Fuchsia currently don't have any
way to shut themselves down, see:
https://github.com/flutter/flutter/issues/11934
2017-09-05 12:21:41 -07:00
Josh Gargus
321e68e8bf Rename Mozart SceneManager to "Scenic". (#4056) 2017-09-01 17:40:27 -07:00
Zachary Anderson
6e2d67fa1d [Fuchsia] Pass namespaces to Isolates (#4047) 2017-09-01 13:17:20 -07:00
Ian McKellar
f08b08417d Update to new Dart FIDL bindings API. (#3988)
* Update to new Dart FIDL bindings API.
2017-08-22 13:32:46 -07:00
Ian McKellar
68d3553f5b Use the tonic::HandleTable (#3924) 2017-07-26 12:19:34 -07:00
Jeff Brown
8ee1910ca9 Use metrics provided by scene events. (#3922)
Compute the necessary texture resolution using more accurate scaling
information provided by Mozart scene node metrics events instead of the
device pixel ratio provided by the Mozart view properties (which we
might remove in the future).

This allows us to allocate smaller textures when a Flutter view is
being scaled down.
2017-07-24 19:17:55 -07:00
Ian McKellar
193de2f4cb Fix build broken by flutter ba9a525bdcdd859cb12dd9e6e2d9678c2ae9c9ef (#3918) 2017-07-24 11:05:54 -07:00
Chinmay Garde
925298d947 Update the content handler to use the Mozart session API. (#3887) 2017-07-18 15:40:18 -07:00
Jason Simmons
f0c3ebfb81 Send text input action events on Fuchsia (#3843)
Fixes https://github.com/flutter/flutter/issues/10061
2017-06-29 18:03:51 -07:00
Jason Simmons
cbbdd8849e Convert Fuchsia event timestamps to microseconds (#3828)
Fixes https://github.com/flutter/flutter/issues/10569
2017-06-26 14:56:42 -07:00
Chinmay Garde
800d817b8b Forward frame construction time to the compositor context. (#3765) 2017-06-12 17:52:42 -07:00
Benjamin Lerman
7dbd8dbfcc Add missing method on RuntimeHolder. (#3742) 2017-06-06 09:09:18 -07:00
mikejurka
b7dd2a3f97 Invoke deferred invalidation callback before destroying it. (#3734)
If it is not invoked, it triggers a fatal fidl runtime check.
2017-06-05 14:07:09 -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
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
Jêrôme Poichet
e3dd318f81 Fixing typo for OfferServiceProvider Mozart API (#3698) 2017-05-17 13:02:45 -07:00