4486 Commits

Author SHA1 Message Date
Adam Barth
065d445b96 Copy Input and EditableText into fn3 2015-09-25 10:06:59 -07:00
Adam Barth
367ba2b6fd Merge pull request #1338 from abarth/fn3_flex
Fix typos in fn3
2015-09-25 08:43:08 -07:00
Adam Barth
c54f91ea3b Fix typos in fn3 2015-09-25 08:42:39 -07:00
James Robinson
8e14e22ce1 Merge pull request #1334 from jamesr/fflush_stdout_on_log
Flush stdout after printing messages from Dart
2015-09-24 17:15:32 -07:00
Adam Barth
26be6a647a Merge pull request #1336 from abarth/fn3_more_examples
Port even more examples to fn3
2015-09-24 16:11:56 -07:00
Adam Barth
6890b652c5 Port even more examples to fn3 2015-09-24 16:09:37 -07:00
Ian Hickson
f5969bffbe Merge pull request #1335 from Hixie/globalkey
fn3: GlobalKey registration progress
2015-09-24 16:07:57 -07:00
Hixie
722a097d39 fn3: GlobalKey registration progress
Remove the "update" notification logic.
Hook the register/unregister functions. We're still not notifying.
2015-09-24 16:06:00 -07:00
Ian Hickson
06710455e3 Merge pull request #1332 from Hixie/initState
Rename ComponentState and use initState().
2015-09-24 16:01:06 -07:00
Hixie
086a53d38f Rename ComponentState and use initState().
ComponentState becomes State, for brevity.
Instead of overriding its constructor, override initState().
This makes writing States much simpler.
2015-09-24 16:00:51 -07:00
James Robinson
9423be0de5 Flush stdout after printing messages from Dart
This modifies the Logger_PrintString used to implement Dart's print() to
explicitly fflush stdout after writing. In some contexts stdout may not be line
buffered, such as when launching a process that runs sky using dart:io's
Process.start.
2015-09-24 15:59:37 -07:00
Adam Barth
66322b2c77 Merge pull request #1331 from abarth/more_examples
Port some more examples to fn3
2015-09-24 15:57:30 -07:00
Adam Barth
3f622d8b09 Port some more examples to fn3 2015-09-24 15:43:40 -07:00
Jeff Brown
4b9b4683cc Merge pull request #1328 from j9brown/recognizer
Remove unused dependency on ui::GestureRecognizer.
2015-09-24 15:07:12 -07:00
Adam Barth
3b30a58067 Merge pull request #1330 from abarth/date_picker_example
Port Date Picker example to fn3
2015-09-24 14:52:30 -07:00
Ian Hickson
1b27ccd11f Merge pull request #1329 from Hixie/fn3
fn3: MixedViewport
2015-09-24 14:52:21 -07:00
Hixie
a498903957 fn3: MixedViewport
Also:
- Expose the slot of each Element.
- Minor improvements to HomogeneousViewport.
- Replace TestComponent with FlipComponent in tests.
2015-09-24 14:52:13 -07:00
Adam Barth
0eccf690ad Port Date Picker example to fn3 2015-09-24 14:46:29 -07:00
Jeff Brown
e7483b60a4 Remove unused dependency on ui::GestureRecognizer. 2015-09-24 14:00:04 -07:00
Adam Barth
aee7a95af0 Merge pull request #1327 from abarth/fn3_big_switch
Port big_switch.dart to fn3
2015-09-24 13:47:21 -07:00
Adam Barth
fb2c9e3c95 Port big_switch.dart to fn3 2015-09-24 13:29:40 -07:00
Adam Barth
e04ef5f571 Merge pull request #1324 from abarth/fn3_scaffold
Port scaffold to fn3
2015-09-24 13:14:28 -07:00
Adam Barth
1c6921cc75 Port PopupMenu to fn3
This changes how PopupMenu works slightly because there's no long an onPressed
callback on PopupMenuItem. Instead, callers should use showPopupMenu.
2015-09-24 12:57:50 -07:00
Adam Barth
2fa56ffe94 Port scaffold to fn3 2015-09-24 12:57:44 -07:00
Adam Barth
16fbd1e482 Merge pull request #1322 from abarth/date_picker
Port widgets that depend on scrolling to fn3
2015-09-24 11:19:45 -07:00
Adam Barth
0cd2e59d96 Port widgets that depend on scrolling to fn3 2015-09-24 11:13:57 -07:00
Adam Barth
ee83cfeca5 Rev pub package 2015-09-24 10:48:07 -07:00
Adam Barth
ba74e2af99 Rev pub packages 2015-09-24 10:44:09 -07:00
Adam Barth
9663b46ca2 Merge pull request #1321 from jamesr/update_for_sky_services_roll
Updates for change in Mojom dart enum generation
2015-09-24 10:42:36 -07:00
James Robinson
8a15072435 Updates for change in Mojom dart enum generation 2015-09-24 10:35:20 -07:00
Adam Barth
a00bdcc94d Merge pull request #1319 from abarth/fn3_scrollable
Port most of scrollable.dart to fn3
2015-09-24 10:32:31 -07:00
Adam Barth
2714219a2e Port most of scrollable.dart to fn3 2015-09-24 10:26:27 -07:00
Adam Barth
e91bf4c2b6 Merge pull request #1318 from abarth/fn3_transitions
Port transitions.dart to fn3
2015-09-24 09:38:30 -07:00
Adam Barth
b840e2732a Port Focus and Navigator-based widgets to fn3 2015-09-24 09:36:08 -07:00
Chinmay Garde
8e72f267cd Merge pull request #1316 from chinmaygarde/master
Map UITouch pointers to indentifiers similar to Android
2015-09-23 22:34:07 -07:00
Adam Barth
f960263d44 Port transitions.dart to fn3 2015-09-23 21:51:13 -07:00
Adam Barth
3c1b614cfb 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
93fe88f148 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
22bbc3aa6c Merge pull request #1315 from Hixie/PointerEventListenerCollision
Fix the minedigger game.
2015-09-23 17:34:55 -07:00
James Robinson
5bb2480bcd 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
James Robinson
3cb73a067a Merge pull request #1314 from jamesr/bump_sky_services
Bump sky_services pub dependency to mojo 0.1.x
2015-09-23 17:25:25 -07:00
Jeff Brown
6b4ab4d649 Merge pull request #1276 from j9brown/native2
Remove dependency on view manager and fix issue #1189.
2015-09-23 16:59:55 -07:00
Chinmay Garde
c2ed9a10c2 Make unregisterTouch return the identifier of the removed touch 2015-09-23 16:59:19 -07:00
Chinmay Garde
edf0f3379a Map UITouch pointers to indentifiers similar to Android 2015-09-23 16:53:18 -07:00
Hixie
c8e7504c6f 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
c483b2e2e6 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
Jeff Brown
4d8e765423 Run sky_viewer directly on top of native_viewport / surfaces.
Remove view manager from consideration for now.
Although we could also remove the dependency on surfaces, it makes
sense to keep it for a little while longer since the replacement
for view manager will likely depend on it or a similar compositor.
2015-09-23 16:48:14 -07:00
Jeff Brown
5d4e44fa92 Remove SurfaceAllocator because it is unused. 2015-09-23 16:48:14 -07:00
James Robinson
cddb85da08 Bump sky_services pub dependency to mojo 0.1.x
This prepares for updating sky to depend on mojo 0.1.x. This corresponds
to the already published sky_services 0.0.26.
2015-09-23 16:37:44 -07:00
Ian Hickson
8ed473901b Merge pull request #1311 from Hixie/fn3
fn3: Port HomogeneousViewport
2015-09-23 16:23:38 -07:00