4410 Commits

Author SHA1 Message Date
Adam Barth
2e8df67cf2 Rev pub packages 2015-09-23 10:36:09 -07:00
Ian Hickson
4edb01a70f Merge pull request #1300 from Hixie/fn3
fn3: Minor cleanup
2015-09-23 09:38:46 -07:00
Hixie
e796e498eb 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
Ian Hickson
2eba713c07 Merge pull request #1297 from Hixie/fn3
fn3: Binding to RenderView
2015-09-23 09:12:42 -07:00
Hixie
e1afb3023f 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
d26e9f8ebb Merge pull request #1298 from abarth/test_multichild
Add tests for MultiChildRenderWidget
2015-09-23 08:56:36 -07:00
Adam Barth
06388ba5ff Add tests for MultiChildRenderWidget 2015-09-23 08:52:15 -07:00
Adam Barth
dcd9fe53e8 Merge pull request #1296 from abarth/fn3_multichild
Add support for multichild widgets to fn3
2015-09-22 17:52:58 -07:00
Adam Barth
28c4656083 Add support for multichild widgets to fn3 2015-09-22 17:52:40 -07:00
Chinmay Garde
1ed5a16e05 Merge pull request #1293 from chinmaygarde/master
Fix leak of the picture after tracing it to a file
2015-09-22 16:15:02 -07:00
Chinmay Garde
ae90923593 Use wtf/RefPtr instead of manually un-reffing the SkPicture reference in PaintContext 2015-09-22 16:14:47 -07:00
Adam Barth
b407d116fd Merge pull request #1291 from abarth/fn2_tag_widgets
Add TagWidget to fn3
2015-09-22 16:14:36 -07:00
Chinmay Garde
fedda1d8df Fix leak of the picture after tracing it to a file 2015-09-22 16:08:39 -07:00
Adam Barth
b1736518e1 Add ParentDataWidget and InheritedWidget to fn3 2015-09-22 16:07:27 -07:00
Hans Muller
211528258a Merge pull request #1292 from HansMuller/bump_newton_version
bumped newton to version 0.1.3
2015-09-22 16:04:05 -07:00
Hans Muller
54553997ad bumped newton to version 0.1.3 2015-09-22 16:00:21 -07:00
Hans Muller
60e9aa5135 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
Ian Hickson
bba36bf0a6 Merge pull request #1290 from Hixie/temp
fn3: Fix warnings and build errors
2015-09-22 15:33:42 -07:00
Hixie
724359500a Fix warnings and build errors
Fixes errors from #1285 and #1281.
2015-09-22 15:32:41 -07:00
Ian Hickson
7b2c7b33bb Merge pull request #1285 from Hixie/fn3
fn3: Add a binding for fn3 and sky.
2015-09-22 15:27:11 -07:00
Hans Muller
00c87f0a67 Set simulation tolerance field 2015-09-22 15:08:13 -07:00
Chinmay Garde
34b120c284 Merge pull request #1289 from chinmaygarde/master
Generate unique SkPicture trace files each time a trace is requested
2015-09-22 15:05:56 -07:00
Chinmay Garde
70c98ff994 Generate unique SkPicture trace files each time a trace is requested 2015-09-22 15:00:36 -07:00
Hans Muller
90e08ea94b replace endDistance and endVelocity parameters with tolerance 2015-09-22 14:50:27 -07:00
Chinmay Garde
aa3e609e60 Merge pull request #1287 from chinmaygarde/master
When capturing a frame, pass the frame size to the top level picture
2015-09-22 14:35:10 -07:00
Chinmay Garde
f222d57e4d When capturing a frame, pass the frame size to the top level picture 2015-09-22 14:33:27 -07:00
Hans Muller
1447d22756 Added velocity and distance thresholds to ScrollSimulation, ScrollBehavior 2015-09-22 13:34:57 -07:00
Hixie
a57d3ddd69 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
Adam Barth
5b4899694c Merge pull request #1283 from abarth/fn3_basic2
Add CustomPaint and few other basic widgets to fn3
2015-09-22 12:03:18 -07:00
Adam Barth
5068939407 Add CustomPaint and few other basic widgets to fn3
We'll need tag nodes before finishing Flex and Stack.
2015-09-22 11:26:20 -07:00
Ian Hickson
dfb5fbdae4 Merge pull request #1280 from Hixie/block
Fix scrolling of Block.
2015-09-22 10:43:22 -07:00
Adam Barth
b247ac824b Merge pull request #1281 from abarth/fn3_basic
Add a number of basic widgets to fn3
2015-09-22 10:42:35 -07:00
Hixie
838fa55385 Fix scrolling of Block.
Since our build function depends on scrollBehavior.isScrollable, any
time we update scrollBehavior we are implicitly updating our state. As
such, we must do so during a setState() call, or else we won't rebuild
and might not bother to listen to the scroll gestures.

This probably broke when we made Block not listen to gestures if it
wasn't overflowing.
2015-09-22 10:36:34 -07:00
Adam Barth
dd78171041 Add a number of basic widgets to fn3
There are some TODOs in this file that I'll address in the next patch.
2015-09-22 10:27:28 -07:00
Adam Barth
c0a7b2a2fb Merge pull request #1279 from Hixie/fn3
More dartdocs for fn3, refactor buildDirtyElements
2015-09-22 09:41:38 -07:00
Jason Simmons
e4c329d19b Merge pull request #1245 from jason-simmons/editable_text_initial_blink
Ensure that EditableText always shows a cursor
2015-09-22 09:29:52 -07:00
Jason Simmons
148dade286 Merge pull request #1255 from jason-simmons/skyanalyzer_pub_cache
Some cleanup of the Sky analyzer script
2015-09-22 09:29:27 -07:00
Hixie
43ee253c09 More dartdocs for fn3, refactor buildDirtyElements
The buildDirtyElements() method now enforces that we only build deeper
nodes and never go back to build higher nodes during a frame.
2015-09-22 09:20:30 -07:00
Adam Barth
985e430532 Merge pull request #1273 from abarth/rm_gesture_event
Remove GestureEvent.idl
2015-09-21 21:36:45 -07:00
Adam Barth
6b3133405c Merge pull request #1277 from abarth/fix_analyzer
Fix analyzer warning
2015-09-21 21:36:16 -07:00
Adam Barth
ca72b60a29 Fix analyzer warning 2015-09-21 21:35:36 -07:00
Ian Hickson
cc82617792 Merge pull request #1274 from Hixie/fn3
More dartdoc for fn3, and sundry changes.
2015-09-21 17:44:19 -07:00
Hixie
e2fefe0fc0 More dartdoc for fn3, and sundry changes.
- move _uniqueChild earlier since a comment now mentions it earlier.
- reorder methods in Element to more closely reflect call order.
- change mount to be the place that sets the parent pointer, for consistency.
- make the lifecycleState a purely debug-time thing for consistency.
- make BuildableElement.unmount set dirty to false so that we won't
  build unmounted objects.
- rename "updated" to "newWidget" for clarity.
- change how we unmount things so that the slot is reset up to a
  RenderObjectElement, but not further, and don't reset the depth.
2015-09-21 17:44:15 -07:00
James Robinson
e93e326614 Merge pull request #1275 from jamesr/content_handler_flx
Teach content handler service to serve flx (and only flx) files
2015-09-21 17:43:14 -07:00
James Robinson
defb7d2c6f Teach content handler service to serve flx (and only flx) files 2015-09-21 17:34:29 -07:00
Adam Barth
ffb27159d7 Remove GestureEvent.idl
This interface no longer has any clients.
2015-09-21 17:14:04 -07:00
James Robinson
77d5aa16b3 Merge pull request #1272 from jamesr/fix_build
Add include of <memory> for std::unique_ptr
2015-09-21 17:13:32 -07:00
James Robinson
1c40171d31 Add include of <memory> for std::unique_ptr 2015-09-21 17:10:47 -07:00
Adam Barth
44083d2edc Merge pull request #1270 from abarth/rm_gesture_events
Remove uses of sky.GestureEvent
2015-09-21 17:06:07 -07:00
Adam Barth
7d7986a993 Remove uses of sky.GestureEvent 2015-09-21 17:05:45 -07:00