379 Commits

Author SHA1 Message Date
Adam Barth
2123899cc6 Jank insted of flicker in Mozart
Currently there's no good way of synchronizing layout changes with children in

Mozart. Previously we flickered when we were out of sync with our child. Now we

jank instead because that's a more acceptable artifact while we work on

improving Mozart.



Fixes https://github.com/flutter/flutter/issues/3024
2016-04-04 12:17:39 -07:00
Chinmay Garde
37847ca4c4 Merge pull request #2571 from chinmaygarde/timeline
Update thread names in the Dart timeline.
2016-04-04 11:43:17 -07:00
Collin Jackson
348c6f24a4 Allow third-party services to listen to openURL on iOS and support Google Sign-In 2016-03-31 18:15:18 -07:00
Chinmay Garde
f470aad74b Merge pull request #2567 from chinmaygarde/master
Update Dart revision to pull in changes related to tracing and add more trace types to TracingController
2016-03-30 18:07:17 -07:00
Chinmay Garde
0378099f02 Update Dart revision to pull in changes related to tracing and add more trace types to TracingController 2016-03-30 17:33:02 -07:00
Adam Barth
4e6fd739d1 Merge pull request #2566 from abarth/roll_mojo
Update Mojo
2016-03-30 15:27:57 -07:00
Chinmay Garde
d43bae3eeb Don't crash if the scene has no root layer set. 2016-03-30 15:14:17 -07:00
Adam Barth
3f7d5ef6f8 Update code to account for Mozart changes
The layout protocol in Mozart changed. Now we need to pipe a scene version
through the system to the compositor.
2016-03-30 15:13:58 -07:00
Adam Barth
6c43bd904f Fix Mac build 2016-03-28 15:55:05 -07:00
Adam Barth
c4e182743e Teach SkyShell about .packages files
SkyShell now supports --packages instead of --package-root.
2016-03-28 12:51:56 -07:00
Adam Barth
e46fca1446 Add a --use-glfw flag to //sky/tools/gn
This flag makes it easier to enable the glfw configuration.

Also, fix an unrelated build error in loader.cc.
2016-03-28 09:58:53 -07:00
Chinmay Garde
5c285787c8 Merge pull request #2551 from chinmaygarde/master
Directly load the bundle at a known path instead of doing a search by identifier.
2016-03-25 13:28:00 -07:00
Chinmay Garde
10f23121e3 Directly load the bundle at a known path instead of doing a search by identifier.
Also fixes an issue where a error would get logged even though loading from the precompiled application bundle was successful.
2016-03-25 12:33:22 -07:00
Adam Barth
a68209fe83 Merge pull request #2549 from abarth/glfw_32
Update to GLFW 3.2
2016-03-25 12:26:20 -07:00
Adam Barth
dfaf91821d Add support for mouse events
The Material Gallery is now fully interactive.
2016-03-25 12:16:11 -07:00
Chinmay Garde
3d9aaf5a85 Explicitly load and unload the precompiled code bundle.
If called via `bundleWithIdentifier:` the bundle may not have been loaded. This makes it explicit.
2016-03-25 12:11:50 -07:00
Adam Barth
0ef388f53f Adds MessagePumpGLFW
This patch teaches //sky/shell how to integrate with the GLFW runloop. After
this patch, we can correctly resize the GLFW window.
2016-03-25 10:17:38 -07:00
Adam Barth
287d187e22 Add GLFW platform to //sky/shell 2016-03-24 17:15:33 -07:00
Adam Barth
3187dd13e2 Update to mojo 891577b0517de5aeca538d99669787c6dc72412a 2016-03-23 09:36:02 -07:00
Adam Barth
fc5ddc3058 Skip char key events
It's confusing to send two key press events. Instead, just send the
lower-level, non-char event.

The real fix will be to define a sensible key event protocol for Mozart, but
this patch unblocks people who are experimenting at higher layers of the stack.
2016-03-22 12:42:10 -07:00
Adam Barth
56bca69d7a Revert "Update to mojo 891577b0517de5aeca538d99669787c6dc72412a"
This reverts commit 7bfce5cb2644c64f172e64708b0b246db3567154.
This reverts commit a550e7e3958a9910946acc4e37f1fd0ed4ccd17c.
2016-03-21 17:17:50 -07:00
Adam Barth
a550e7e395 Update use of Mojo APIs 2016-03-21 16:52:01 -07:00
Jason Simmons
370db6cda3 Provide Mojo services for passing application-specific messages between the host and Flutter 2016-03-21 11:25:00 -07:00
Adam Barth
d8ed73e0a9 Wire up raw keyboard events in Mozart 2016-03-18 14:13:12 -07:00
Adam Barth
944b2eeca9 Move Keyboard and RawKeyboard to view services
These services are relative to the current view, which means they should come
in through the view services.
2016-03-18 12:37:30 -07:00
Adam Barth
678d5f9bac Cleanup MojoServices in dart:ui
This patch cleans up the way we expose Mojo services into Dart. It also adds a
service provider for "view services," which will evetually contain the raw
keyboard service.
2016-03-18 10:52:13 -07:00
Adam Barth
410aac589b Flutter apps in Mozart should have reasonable Uri.base
Previously this value was the temp directory that we used to store the FLX
bundle. Now it's the URL given to us by MojoShell.
2016-03-18 09:53:44 -07:00
Chinmay Garde
99f1529ebd Merge pull request #2522 from chinmaygarde/master
Make the iOS shell use the public Flutter framework API.
2016-03-17 17:03:04 -07:00
Chinmay Garde
46070d433e Make the iOS shell use the public Flutter framework API.
Also cleans up the messages when errors occur in both modes. I have also made the API a lot simpler and moved more of the extraneous stuff out of public. Only FlutterViewController and the Dart project configuration are publically available.
2016-03-17 16:44:25 -07:00
John McCutchan
a8ea37b714 Merge pull request #2515 from johnmccutchan/observatory_auto_port
Auto select Observatory port on Android and iOS simulators
2016-03-17 14:24:19 -07:00
John McCutchan
4d7272446d Auto select Observatory port on Android and iOS simulators 2016-03-17 11:43:41 -07:00
Chinmay Garde
e09819e544 Fix Android builds. Accessing traces is now possible from observatory. 2016-03-17 11:24:52 -07:00
Chinmay Garde
f5f8636cc6 Merge pull request #2502 from chinmaygarde/master
Wire up the TracingController to the the Dart embedder timeline API
2016-03-16 18:17:30 -07:00
Chinmay Garde
09972ad11c Wire up the TracingController to the the Dart embedder timeline API 2016-03-16 16:08:47 -07:00
Jason Simmons
a3201f2023 Move SkyApplication initialization into SkyMain
This allows Flutter embedders to set up Flutter from their own application
class instead of using or subclassing SkyApplication
2016-03-16 10:28:40 -07:00
Adam Barth
e3c3be1c21 Handle 0x0 sizes in Mozart
When we're created off-screen, Mozart gives us a 0x0 view to populate. Rather
than trying to draw a 0x0 texture, we just acknolwedge the frame request
immediately. This matches what we do in the non-Mozart rasterizer.
2016-03-15 13:37:17 -07:00
Jason Simmons
e2e7e4c79a Make the engine private to the Sky package and expose the relevant public methods on PlatformViewAndroid 2016-03-14 16:37:58 -07:00
Jason Simmons
722d712b7e Expose some public APIs for use by Flutter embedders outside the sky shell package
Also add a PlatformViewAndroid constructor required to support inflating
a Flutter view from an XML layout
2016-03-11 14:43:35 -08:00
Jason Simmons
787e69fc45 Merge pull request #2492 from jason-simmons/gradle_flutter_jar
Build a Flutter.jar output for use by Android projects built without …
2016-03-11 14:11:07 -08:00
Chinmay Garde
d0839ab662 Fix issue caught by Clang analyzer in the Flutter iOS framework 2016-03-10 17:20:46 -08:00
Jason Simmons
982a6f0ef6 Build a Flutter.jar output for use by Android projects built without the Flutter tools
Flutter.jar contains the Flutter engine Java code, native code and resources.
It can be incorporated into projects built with external build systems such as Gradle.
2016-03-10 14:41:33 -08:00
Adam Barth
3f4224d069 Update mojo_sdk 2016-03-10 12:58:18 -08:00
Chinmay Garde
02547a3d47 iOS: Rename ObjC files to follow Google style guide 2016-03-10 12:23:59 -08:00
Chinmay Garde
d1376fc93c Allow PlatformMacMain to be called multiple times
It is called each time the embedder initializes a Flutter view controller. The Mac shell (which does not have a view controller), calls it before NSApplicationMain.

Common items like the base::AtExitManager and the platform message loop are stored in `EmbedderState`
2016-03-09 17:49:17 -08:00
yjbanov
7e2a05427b [shell] fix missing header in shell.cc 2016-03-09 17:26:10 -08:00
yjbanov
288dfae36f [tracing] refactor TracingController
- remove the unnecessary MessageLoop
- split stopping the trace from downloading it
- support waiting for the trace file to be finalized
- fix the missing null-termination in the trace data string
2016-03-09 16:45:47 -08:00
Chinmay Garde
274f98ef0d If a custom ICU data file path is specified, attempt loading from that instead of loading from the default path. 2016-03-09 11:27:52 -08:00
Chinmay Garde
a6464d0298 Allow PlatformMacMain to be called mutliple times by third party flutter embedders
If we control the embedder, we call it just once and have it wrap UIApplicationMain.
2016-03-08 17:12:18 -08:00
Chinmay Garde
a021befd19 Prepare a framework providing an embeddable Flutter view controller 2016-03-08 16:42:07 -08:00
Chinmay Garde
9dfa087e92 iOS: Export symbols for public API from the framework dylib 2016-03-08 12:34:24 -08:00