26 Commits

Author SHA1 Message Date
Adam Barth
95b5d5dfa8 Update uses of Mojo to new interfaces 2016-03-02 14:14:55 -08:00
Adam Barth
24eb9b3c19 Flutter.mojo should support multiple views
Each view gets its own Dart isolate. Unfortunately, the ShellPtr is a unique
resource, which means we need to proxy an implementation of Shell to each view.
In the future, we should probably switch dart to expect an ApplicationConnector
rather than a Shell.
2016-02-18 16:22:39 -08:00
Adam Barth
8111a77f73 Remove ServiceRegistry
We don't need this anymore now that we have Mozart.
2016-02-18 16:09:58 -08:00
Adam Barth
b09cd543bd Add an off-by-default flag for background compilation 2016-02-12 16:01:18 -08:00
Jason Simmons
f4542c9152 Use Engine::RunFromBundle and the ZipAssetBundle on all platforms 2016-02-12 11:50:00 -08:00
Adam Barth
d3dbc1cda4 Polish Mojo platform implementation
* Use Node::Combinator::PRUNE, which stops the Mozart launcher from showing red
  when we're loading child views. Instead of blocking the whole app, we'll now
  just prune away the children that aren't ready. Eventually we'll want
  to let authors control these operations.

* Grab the service registry in AcceptConnection rather than CreateView. The
  CreateView comes from the Mozart launcher, which isn't where we want to get
  the service registry. Now we get the service registry from the first app to
  connect, which isn't right either but at least works while we sort out what
  we really want.
2016-02-11 12:43:37 -08:00
Adam Barth
aec7d422e7 Pass the Mozart ViewHost into Dart
Dart needs access to the ViewHost in order to create child views.
2016-02-03 14:39:45 -08:00
Adam Barth
411c6bfa4b Port flutter.mojo to Mozart
Everything should work except the keyboard.
2016-01-28 16:04:19 -08:00
Adam Barth
142c5dc5ec Remove almost all uses of base::scoped_ptr
We now use std::unique_ptr more consistently.
2016-01-27 01:05:47 -08:00
Adam Barth
b4377c93dd Remove RuntimeEnabledFeatures
This complex machinery made sense for Blink, which has hundreds of
developers. In our case, we're just moving around two bools. We can do
that in a much simpler way.
2015-12-29 22:27:18 -08:00
Adam Barth
9c3aac7c2f Remove //url
We don't use this anymore.
2015-12-11 11:20:23 -08:00
Hixie
9236be1360 Fix mouse on linux. 2015-12-09 10:16:23 -08:00
Hixie
07aa429175 Fix pointers in mojo.
Make the mojo implementation of the pointer packet logic fake move
events when it would send ups or downs without corresponding moves.
2015-12-08 13:07:31 -08:00
Kris Giesing
d392aea9da Add support for IME on mojo/Linux 2015-11-20 15:02:56 -08:00
Adam Barth
db2c9d43ce Remove sky_viewer.mojo
We now use flutter.mojo instead.
2015-11-17 14:32:57 -08:00
Adam Barth
4e0ec4c23b Fix the units for Pointer events
The time_stamp is supposed to be in microseconds. Previously we were using
milliseconds.
2015-11-17 11:21:58 -08:00
Adam Barth
c9b7f2f7d4 Scrollable widgets don't fling in MojoShell
There's some confusion over the units for time_stamp. This patch works around
the issue. I've filed a bug (https://github.com/domokit/mojo/issues/541) to
figure out the right fix.

Also, rename the final target to flutter.mojo, which is a more descriptive
name.
2015-11-17 09:41:07 -08:00
Adam Barth
ae58ba7c8c Bring sky_shell.mojo up to feature parity with sky_viewer.mojo
I believe this patch implements all the remaining features from
sky_viewer.mojo.
2015-11-16 17:19:35 -08:00
Adam Barth
ba603acc04 Fix build and rename a variable
I was supposed to rename this variable before landing the previous patch.
2015-11-16 14:42:44 -08:00
Adam Barth
530d7f3851 Handle pointer input in sky_shell.mojo 2015-11-16 14:26:45 -08:00
Adam Barth
77f873c1a4 Wire in Mojo services to sky_shell.mojo
After this patch, code running in sky_shell.mojo has access to Mojo services.
2015-11-16 12:56:08 -08:00
Adam Barth
9dc71cb51f Refactor how we wire up platform services
Now the control flow for wiring up platform services starts in the
platform-specific code. Previously we started in shared code, which was
imposing constraints on the startup sequence for all platforms. Now that we
start in platform-specific code, we'll be able to add better support for Mojo
in a future patch.
2015-11-16 12:24:28 -08:00
Adam Barth
56601fcfa3 Wire sky_shell.mojo to draw via MGL
After this patch, we can execute Dart code and draw the result via MGL. We
still need to plumb in services.
2015-11-14 07:42:25 -08:00
Adam Barth
96b847cd43 Wire sky_shell.mojo up to native_viewport
After this patch, we can execute Dart code an create an X window. There's a
sketch of some graphics code, but it's not wired up yet.
2015-11-13 14:00:34 -08:00
James Robinson
3e79cc5829 Nuke //ui/events, all users are runtime dead 2015-11-11 17:33:07 -08:00
Adam Barth
04391cf941 Add a basic sky_shell.mojo
Currently sky_shell.mojo can't load any Flutter apps or draw to the screen, but
that will come in later patches.
2015-11-11 14:06:55 -08:00