27629 Commits

Author SHA1 Message Date
Adam Barth
93ae1f287e Port transitions.dart to fn3 2015-09-23 21:51:13 -07:00
Adam Barth
e7bc8f57d3 Merge pull request #1313 from abarth/fn3_drawer
Port some drawer and button widgets to fn3
2015-09-23 20:27:21 -07:00
James Robinson
7c854e121b Merge pull request #1317 from jamesr/roll_pubspec_and_mojo_sdk
Update to Mojo 4e4d51ce28a8edcb32b9c7f555e38e2ae84a825e, update deps
2015-09-23 17:58:54 -07:00
Ian Hickson
eb323dbedc Merge pull request #1315 from Hixie/PointerEventListenerCollision
Fix the minedigger game.
2015-09-23 17:34:55 -07:00
James Robinson
e854d7457d Update to Mojo 4e4d51ce28a8edcb32b9c7f555e38e2ae84a825e, update deps
This updates to mojo 4e4d51ce28a and mojo sdk 711a0bcfb141b4 and updates the sky
package's pubspec.yaml dependency to '>=0.1.0 <0.2.0' to be compatible with
the current mojo package. This includes an update to the Mojo Dart generator to
produce real classes for enums and the corresponding updates for users of the
KeyboardType enum in Sky as well as one scoped_ptr->std::unique_ptr in shell
corresponding to a change in the Mojo EDK.

When a new version of the sky and sky_services package are pushed this will fix
domokit/mojo#440.
2015-09-23 17:26:46 -07:00
Hixie
00d0a44f09 Fix the minedigger game.
Remove the Widgets framework's PointerEventListener definition now that
the Rendering layer has one. It was previously clashing in files that
imported both, which would result in it being hidden. Turns out
MineDigger is the only example that this affects.
2015-09-23 16:50:50 -07:00
Jeff Brown
307b1bfdbc Only pointers which are down should be tracked.
This change ensures that we only store the results of a hit
test on the initial pointer down event.  Moreover, we perform
new hit tests each time a hovering pointer moves.  This is
important to ensure correct behavior of input devices which can
hover, such as mice.

Previously the first hover movement after releasing a mouse
button would cause a new pointer state to be recorded along with
hit test results for wherever the pointer happened to be which
caused the following pointer down event to be delivered to the
wrong place.

Fixes issue #1189.
2015-09-23 16:48:14 -07:00
Hixie
ea45169083 fn3: Port HomogeneousViewport 2015-09-23 16:21:13 -07:00
Adam Barth
c734234631 Port some drawer and button widgets to fn3 2015-09-23 16:02:56 -07:00
Adam Barth
1836ca6172 Merge pull request #1308 from abarth/fn3_drag_target
Port DragTarget to fn3
2015-09-23 15:44:54 -07:00
Adam Barth
87107494c1 Port DragTarget to fn3 2015-09-23 15:44:40 -07:00
Viktor Lidholt
9b16ad7776 Merge pull request #1310 from vlidholt/master
Adds documentation and cleans up code
2015-09-23 15:38:31 -07:00
Viktor Lidholt
7d71cf06cf Adds documentation and cleans up code 2015-09-23 15:34:06 -07:00
Ian Fischer
2a7c7b085a Merge pull request #1306 from chinmaygarde/master
Fix sky_tool start/listen on iOS
2015-09-23 13:53:18 -07:00
Adam Barth
ec92aca869 Port more widgets to fn3 2015-09-23 13:36:18 -07:00
Chinmay Garde
cb6b303996 Fix sky_tool start/listen on iOS 2015-09-23 12:54:29 -07:00
Adam Barth
8c6073a5f4 Merge pull request #1304 from abarth/simple_widgets
Port some widgets to fn3
2015-09-23 12:34:55 -07:00
Matt Perry
707d84cd26 Merge pull request #1288 from mpcomplete/dart
Replace C++ UpdateTask with an empty dart version, loaded as a snapshot
2015-09-23 14:33:12 -04:00
Adam Barth
da2ee9129a Port some widgets to fn3 2015-09-23 11:26:55 -07:00
Hixie
6ea86b6a2f fn3: Listener
In this new world, Listener is just a wrapper around a node in the
render tree that hooks directly into the event handling logic.
2015-09-23 11:22:51 -07:00
Hixie
b3ebd4406b Expose _descendantRenderObject as 'renderer'
This allows people to use localToGlobal and company.
2015-09-23 11:13:45 -07:00
Matt Perry
10ca050890 Replace C++ UpdateTask with an empty dart version, loaded as a snapshot.
This adds a new placeholder dart package updater in sky/packages. This is built
into a snapshot and compiled into the Sky engine binary using the same
mechanism as the Dart isolate.

I also added a SkyHeadless class, similar to SkyView, used for running Dart
code without a view.
2015-09-23 14:09:38 -04:00
Viktor Lidholt
4bc4c978c9 Merge pull request #1299 from vlidholt/master
Removes artifacts from textured lines in sprites
2015-09-23 11:07:42 -07:00
Adam Barth
fa119c38b9 Add tests for ParentData 2015-09-23 10:59:49 -07:00
Adam Barth
82e8e3f079 Rev pub package 2015-09-23 10:38:25 -07:00
Adam Barth
a49120c667 Rev pub package 2015-09-23 10:34:53 -07:00
James Robinson
70c1856c06 Merge pull request #45 from jamesr/run_mojo_args
Forward additional arguments to runner in run_mojo command
2015-09-23 10:33:06 -07:00
Devon Carew
f554ba4176 Merge pull request #39 from devoncarew/path_issue
fix a path issue when creating new flutter apps
2015-09-23 09:50:16 -07:00
James Robinson
be4a9d941f Forward additional arguments to runner in run_mojo command 2015-09-23 09:48:20 -07:00
Hixie
2a5fad937b fn3: Minor cleanup
- Remove the unique objects used as slots since we decided 'null' was
  fine after all
- Rename 'slot' to 'newSlot' when it's used as an argument to change the
  _slot field, to clarify which variable has the newer value
- Remove the RenderObject registry since we'll do listeners a different
  way. This also removes handleEvent for the same reason.
- Remove the TODOs for mount/unmount becoming didMount/didUnmount since
  the methods do in fact do the mounting/unmounting.
2015-09-23 09:24:13 -07:00
Hixie
555138e60e fn3: Binding to RenderView
In the old world, we had two ways to bind a Widget tree to a
RenderObject node, one way for RenderView and one mostly untested way
for other cases (it's only tested by the spinning_mixed.dart demo). For
fn3, I made these the same code path.

This patch also introduces GlobalKey, though the GlobalKey logic isn't
hooked in yet.

This is Hello World in the new world:

```dart
import 'package:sky/src/fn3.dart';

void main() {
  runApp(new Text('Hello World!'));
}
```
2015-09-23 09:12:01 -07:00
Adam Barth
8b162b5950 Add tests for MultiChildRenderWidget 2015-09-23 08:52:15 -07:00
Viktor Lidholt
ac6cda4d20 Removes some of the artifacts from textured lines 2015-09-23 08:33:48 -07:00
Viktor Lidholt
53f83f795e Adds method for calculating intersection between two lines 2015-09-23 08:31:04 -07:00
James Robinson
f735604aca Add cache command to sky_tools with subcommands for populating/clearing
This adds the following commands to sky_tools:
  sky_tools cache clear: Nukes all local artifacts in the cache
  sky_tools cache populate: Populates the cache with all known artifacts

This is useful both to fix busted caches and to make sure that the cache is
fully populated so that subsequent operations can proceed without needing
network access.
2015-09-22 20:35:31 -07:00
Adam Barth
436fb0ee5f Add support for multichild widgets to fn3 2015-09-22 17:52:40 -07:00
James Robinson
0758c5922f Instantiate ArtifactStore explicit with packageRoot
This teaches commands that need binary artifacts to explicitly instantiate an
instance of the ArtifactStore with the appropriate packageRoot string. The
ArtifactStore can then remember the package root and compute the engine
revision when created and remember those for subsequence calls.
2015-09-22 17:17:01 -07:00
Adam Barth
de70bd950b Merge pull request #1291 from abarth/fn2_tag_widgets
Add TagWidget to fn3
2015-09-22 16:14:36 -07:00
Adam Barth
fb4a87ad68 Add ParentDataWidget and InheritedWidget to fn3 2015-09-22 16:07:27 -07:00
Hans Muller
d9cb525146 bumped newton to version 0.1.3 2015-09-22 16:00:21 -07:00
Hans Muller
0597d8acb8 Merge pull request #1286 from HansMuller/limit_scrolling_animation
Currently, fling scrolls animate far too long after the display has effectively stopped moving. Use the ScrollSimulation's tolerance property to stop the scrolling roughly when the display stops changing.
2015-09-22 15:48:24 -07:00
Hans Muller
eaa72f6ef7 No new functionality, just some gratuitous changes. 2015-09-22 15:37:58 -07:00
Hixie
5fb2cb3297 Fix warnings and build errors
Fixes errors from #1285 and #1281.
2015-09-22 15:32:41 -07:00
James Robinson
e5d65bcc60 Merge pull request #40 from jamesr/run_mojo_android
Teach sky_tools mojo_run to run on Android (using mojo devtools)
2015-09-22 15:29:34 -07:00
James Robinson
20e5355239 Teach sky_tools mojo_run to run on Android (using mojo devtools)
This teaches sky_tools mojo_run --android to invoke mojo's devtool's mojo_run
script with the right flags for invoking sky_viewer on android. This tells the
devtools script to load sky_viewer.mojo from https://storage.googleapis.com/...
and to load app.flx (or whatever the developer specifies as --app) from the
filesystem using the devtools http server.
2015-09-22 15:25:42 -07:00
Ian Fischer
343d96a48e Some basic tests for AndroidDevice that don’t require a device to be attached. 2015-09-22 15:17:11 -07:00
Hans Muller
abd7059ffa Set simulation tolerance field 2015-09-22 15:08:13 -07:00
Hans Muller
720a913e10 replace endDistance and endVelocity parameters with tolerance 2015-09-22 14:50:27 -07:00
Hans Muller
461b191487 Added velocity and distance thresholds to ScrollSimulation, ScrollBehavior 2015-09-22 13:34:57 -07:00
Hixie
b73b06e4ad fn3: Add a binding for fn3 and sky.
- I extracted the BuildScheduler into a separate binding.dart file.
- Various changes to expose private members that are needed by
  binding.dart.
- Registering the render objects for event dispatch.
- Convert the tests to use the new binding mechanism.

This doesn't yet have a RenderView or event handling.
2015-09-22 12:30:37 -07:00