208 Commits

Author SHA1 Message Date
Adam Barth
11dd5cada9 Add trace events to swap buffers (#2823) 2016-07-26 12:16:32 -07:00
Jason Simmons
9546168c37 Recreate the EGL surface after a resize in order to correctly handle screen rotation on Android (#2813) 2016-07-21 15:13:26 -07:00
John McCutchan
855e23910a Add intent for running from a script file (#2807) 2016-07-20 10:35:45 -07:00
Jason Simmons
0df124f969 Add an alternate name for an FLX built in profile mode (#2806) 2016-07-19 15:13:08 -07:00
John McCutchan
0b1986a5c1 Fix DevFS on Android devices (#2801) 2016-07-18 12:16:57 -07:00
Jason Simmons
ca72520d93 Provide a PlatformView implementation for Linux (#2796) 2016-07-13 14:39:53 -07:00
Collin Jackson
1280c527e3 Make FlutterAppDelegate an empty AppDelegate (#2792) 2016-07-12 18:24:40 -07:00
Chinmay Garde
fe69b034c0 Remove dependencies on ui, third_party/mesa and mojo/convertors. Provide simple alternatives. (#2783) 2016-07-12 14:47:44 -07:00
Jason Simmons
7040ec5855 Use immersive mode on Android when all system UI overlays have been disabled (#2791)
This requires adding a way for platform services (namely SystemChromeImpl) to
listen for activity lifecycle events

Fixes https://github.com/flutter/flutter/issues/4885
2016-07-12 10:12:32 -07:00
Jason Simmons
5ccb7f9abd Allow multiple Android resource names for the app bundle (#2790)
Also provide an API for obtaining the path where the app bundle was extracted
2016-07-11 13:44:42 -07:00
Adam Barth
469d954a83 Remove spurious log message 2016-07-11 09:41:46 -07:00
Adam Barth
0d2c049fc2 Conditionally enable accessibility (#2785)
Previously we enabled accessibility unconditionally on iOS, which is more
expensive than necessary. We still enable it unconditionally on the simulator
because there's no API for determining whether accessibility is needed on the
simulator.
2016-07-08 14:03:55 -07:00
Adam Barth
304881d62c Don't crash if no root semantics node (#2784)
Fixes #4849
2016-07-08 13:39:39 -07:00
Ian McKellar
834d81e12e Better debugging support for flutter on mojo. (#2779)
Add a --pause-isolates-on-start flag to the flutter mojo content
handler to match the one that's supported by the dart mojo content
handler.

Fixes: https://github.com/flutter/flutter/issues/4802
2016-07-01 17:06:40 -07:00
Adam Barth
71ce354a44 Harmonize Android and iOS accessibility bridges (#2777)
These classes now use the same terminology and work in the same way.
Also, change semantics.mojom to use an enumeration of actions instead of
having a separate method per action. This will hopefully scale better.
2016-06-30 16:49:04 -07:00
Adam Barth
93753789bb Add isAdjustable to SemanticFlags (#2776) 2016-06-28 15:07:55 -07:00
Chinmay Garde
bb9865538b Rename uri_launcher.mojom to url_launcher.mojom. (#2773) 2016-06-22 17:15:51 -07:00
Adam Barth
f91f5ad62f Update to mojo fd8d18dbf7a4f9ed8a607648cca6d2c595b1c580 (#2770)
* Update to mojo fd8d18dbf7a4f9ed8a607648cca6d2c595b1c580

* Update mojo_sdk

* Update to account for Mojo API changes

* Backport to older base
2016-06-21 12:52:09 -07:00
Jason Simmons
f59f7dadbd Remove FlutterView.onResume (#2768)
It's empty and is easily confused with onPostResume
2016-06-20 15:01:15 -07:00
Jason Simmons
471beb05aa Pass the FlutterView to app message listeners (#2767)
This will make it simpler to write listeners that can be reused in multiple
applications.
2016-06-20 13:29:46 -07:00
Adam Barth
93e9328662 Fix iOS build 2016-06-15 14:03:35 -07:00
Chinmay Garde
02b7238cbb Android platform implementation of uri_launcher.mojom (#2760) 2016-06-15 12:35:06 -07:00
Chinmay Garde
0b31c01843 Add platform/uri_launcher.mojom with an iOS backend. (#2759) 2016-06-15 12:17:50 -07:00
Adam Barth
e34327b7b5 Move //mojo/icu to //services/icu (#2757)
The upstream mojo.git no longer contains this code.
2016-06-15 11:04:13 -07:00
John McCutchan
341495d517 Support for hot source reloading in the Linux glfw sky_shell (#2755)
- [x] Wire up synchronous script reloading in the library tag handler.
- [x] Allow glfw sky_shell to start from dart source as well as bundle.
2016-06-15 10:11:57 -07:00
Adam Barth
12fab2f28a Move dart:jni to //flutter/lib/jni (#2744)
This patch disentangles dart:jni from //sky/engine and moves it into
//flutter/lib/jni. Eventually dart:ui will move into a peer directory.
2016-06-11 09:15:39 -07:00
Adam Barth
633d674c48 Move tonic to //flutter/tonic (#2742)
Now that tonic doesn't depend on anything in //sky/engine anymore, we
can move the code to a location where its dependencies are clearer.
2016-06-10 22:36:38 -07:00
Adam Barth
81ae27ab61 Remove startup flicker on Android (#2733)
According to hackbod on Stack Overflow, we're supposed to block in the
surfaceCreated callback until we've actually drawn into the surface:

http://stackoverflow.com/questions/8772862/surfaceview-flashes-black-on-load/8888108#8888108
2016-06-02 21:01:02 -07:00
Todd Volkert
482e63dfae System chrome platform service updates (#2732)
1) Add ability to specify a system UI overlay style, to
   provide a hook into the style of the status bar icons on iOS.

2) Migrate the Activity service's task description API to the
   system chrome platform service. The old API will be removed
   once the Flutter repo is updated to use the new API after an
   engine roll.

flutter/flutter#3544
2016-06-02 15:05:51 -07:00
Todd Volkert
6c6faf5856 Run clang-format on FlutterViewController.* (no-op change) (#2731) 2016-06-01 14:18:32 -07:00
Adam Barth
4dc3c05636 FlutterViewController should not retain listeners (#2726)
This patch makes the FlutterViewController interface more idiomatic by not
retaining listeners. It's the callers responsibility to make sure the lifetimes
work out.
2016-05-31 13:18:45 -07:00
Jason Simmons
7a49b37a74 Implement a protocol for discovering active Flutter instances on Android (#2720)
Tools can send a broadcast intent that will cause Flutter processes to
write their names and observatory ports to the log in JSON format.
2016-05-27 17:11:34 -07:00
Adam Barth
b6ad88501f Roll mojo2 (#2722)
* Update to mojo 7d579155cc597aa3befcbfad66eef54bda06b57c

* Update to new API
2016-05-27 17:06:21 -07:00
Chinmay Garde
6ef35837d8 The app.flx is now present in the main application bundle. Look for it in there. (#2714) 2016-05-26 12:33:06 -07:00
Todd Volkert
38dd52719b Close the app after the user acknowledges the Launch Error alert. (#2711)
* Close the app after the user acknowledges the Launch Error alert.
2016-05-25 16:57:32 -07:00
Adam Barth
d178eafa74 Don't call Dart_TimelineGetMicros during startup on Mac (#2696)
It crashes. We either need to make it safe to call before
Dart_Initialize on Mac or we need to use some other way of measuring
startup time.

Fixes #4006
2016-05-18 09:55:11 -07:00
Yegor
a1f4a12baa report engine_main_enter_ts during iOS startup (#2640) 2016-05-13 15:35:10 -07:00
Chinmay Garde
ed3634e207 Add a switch that disables redirecting standard streams to syslog. (#2684)
When developing the engine from Xcode, it is useful to see log output in Xcode's UI. We were redirecting streams away so that the tools could pick read these logs. With the change to the scheme, when running from Xcode, the logs will show up in Xcode's UI. When, running from the tools, that flag will not be present and the tools will work as they always have.
2016-05-13 13:46:51 -07:00
Chinmay Garde
ba168e97e9 Look for the service dylib in the frameworks directory of the main bundle. (#2680) 2016-05-11 15:49:48 -07:00
Chinmay Garde
694b492b20 Look inside the main bundle for the service definitions manifest. (#2678)
Earlier, the dynamic service loader was part of the main application
bundle. But now, we package it into Flutter.framework and let the user
control "main". The old path was looking for the manifest in the wrong
spot.
2016-05-11 11:43:46 -07:00
Jason Simmons
678409b8a1 Revert "Plumb dart timeline events to mojo:tracing. (#2595)" (#2670)
This needs to be updated for the latest Mojo APIs
2016-05-10 12:05:17 -07:00
Przemysław Pietrzkiewicz
ef589f99bc Plumb dart timeline events to mojo:tracing. (#2595)
This patch:

 - makes dart traces (coming from the VM and the timeline API)
   available to mojo:tracing
 - adds --vm-complete-timeline parameter, which makes the Dart VM enable all
   categories of timeline traces from the beginning, allowing to do startup
   tracing

This is based on the equivalent support in dart content handler.

Fixes https://github.com/flutter/flutter/issues/3162.
2016-05-10 11:08:36 -07:00
Todd Volkert
77426f65fd Wire up accessibility scrolling (#2664)
* Wire up accessibility scrolling

flutter/flutter#1664
2016-05-09 12:04:38 -07:00
Adam Barth
4c3f297b1e Fix build 2016-05-09 12:04:09 -07:00
Adam Barth
1035e5e60b Roll Mojo to 9a791294e429f9f2ca4f427796a284edb6f6768e (#2663)
* Update to mojo 9a791294e429f9f2ca4f427796a284edb6f6768e

* Update to account for Mojo API changes
2016-05-09 10:56:47 -07:00
Matt Perry
f608c94934 Add mojo service for accessing the system clipboard. (#2659)
* Add mojo service for accessing the system clipboard.

Hooked up for iOS and Android.

BUG=https://github.com/flutter/flutter/issues/1567
2016-05-09 13:26:19 -04:00
Adam Barth
215fa98639 Remove main_ios.mm (#2662)
We no longer provide the main function for Flutter apps on iOS. Instead, we
just provide Flutter.framework, and the end-developer provides main.

Also, remove unused build rules for building Runner.app. We don't build that
target anymore.
2016-05-09 09:53:04 -07:00
Todd Volkert
98f020ff2d Correctly report accessibilityFrame as screen coordinates (#2660)
flutter/flutter#1664
2016-05-06 15:46:48 -07:00
Chinmay Garde
d52d3a4448 Wire up the interpreter on iOS devices. (#2648) 2016-05-06 15:37:59 -07:00
Jason Simmons
c0a5c08cd5 Roll Skia (#2658) 2016-05-06 12:04:57 -07:00