903 Commits

Author SHA1 Message Date
Hixie
c308cfbf1e Test MixedViewport
add/remove/add smoketest
basic vertical behaviour
basic horizontal behaviour
2015-08-28 16:59:10 -07:00
Adam Barth
537a192e50 Rev pub package 2015-08-28 16:13:02 -07:00
Adam Barth
fc3e91600c Rev pub package 2015-08-28 16:08:30 -07:00
Hixie
9fee250249 Set and remove the callbacks on the RenderObject when we create and remove it.
...and not when we mount and dismount.

Turns out that when we dismount, it's too late -- we've already set
renderObject to null.

We also mark the mixed viewport as dirty when it is removed from its parent.
Without this, we try to reuse the child nodes in subsequent syncs, which is a disaster.
2015-08-28 15:07:51 -07:00
Adam Barth
3e4bc25dbc Merge pull request #934 from abarth/scroll_start
onScrollStart shouldn't have an offset
2015-08-28 15:07:42 -07:00
Adam Barth
ab13ea240d onScrollStart shouldn't have an offset
Instead, we pump a onScrollUpdate with the offset if there is an offset.
2015-08-28 15:07:30 -07:00
Adam Barth
e25c6aafa3 Remove --only from run_tests
This feature is built into package:test. We don't need to reimplement it
poorly.
2015-08-28 14:39:53 -07:00
Hixie
2f3d1fdeb8 Add support for 'direction' to MixedViewport. 2015-08-28 14:27:51 -07:00
Adam Barth
9c8406f99f Merge pull request #930 from abarth/scroll
Add scroll gestures and use them in Scrollable
2015-08-28 14:05:36 -07:00
Adam Barth
6c2f3b9419 Add scroll gestures and use them in Scrollable
This patch replaces the scroll gestures used by Scrollable with ones detected
by the ScrollGestureDetector.
2015-08-28 13:59:46 -07:00
James Robinson
66eeff595c Merge pull request #927 from jamesr/tp_khr_only_egl
Remove //gpu and GLES* headers from third_party/khronos
2015-08-28 13:28:32 -07:00
James Robinson
3c7f75853a Remove //gpu and GLES* headers from third_party/khronos
This gets rid of the rest of the files in //gpu and the GLES{2,3}
headers from //third_party/khronos. The GL headers used for GLES{2,3}
come from the platform being targetted, that is
//mojo/public/c/gpu/GLES2 for Mojo,
//third_party/android_tools/ndk/platforms/android-XX/usr/include/GLES2
for Android and the OpenGL framework for Mac/iOS.

The //third_party/khronos/EGL headers are still being used by some
utility code in //ui/gl. This code is only really useful on Android, as
Sky doesn't use EGL on iOS/Mac/Mojo, but it's compiled in on all
platforms currently and relies on some EGL defines that are not set in
the EGL headers we currently use. These could probably be removed
without much trouble.

The //third_party/khronos/GLES2 headers are still used by some of
//ui/gl on iOS. These should be using the iOS OpenGL framework headers,
and will in the future.

Removes the unneeded KHRONOS_APICALL override from KHR/khrplatform.h

Rolls to a newer Mojo SDK that doesn't expect //third_party/khronos
2015-08-28 13:26:57 -07:00
Hixie
08b7ea3e3d Rationalise the Key API.
Add a way of having keys based on numeric types or DateTimes by having a ValueKey<T> class.
Remove the redundant ways of declaring things, except for leaving one shorthand -- you can say `new Key(s)` instead of `new ValueKey<String>(s)`.
2015-08-28 13:17:34 -07:00
Hixie
9ac880d425 Stop exporting framework.dart from basic.dart, since we now have widgets.dart exporting all of framework.dart. 2015-08-28 13:06:11 -07:00
Adam Barth
05d245bd5f Merge pull request #921 from abarth/use_tap
Use GestureDetector in the framework and examples
2015-08-28 12:52:51 -07:00
Ian Fischer
e2854ac628 Merge pull request #922 from iansf/verbose_flag
Add a --verbose flag to sky_tool
2015-08-28 12:40:59 -07:00
Ian Fischer
06769d9fca Add a verbose flag to sky_tool that logs all of shell commands being run.
Also clean up some formatting issues.
2015-08-28 11:00:54 -07:00
Adam Barth
9c82589fc3 Use GestureDetector in the framework and examples
We're now using it at the widget layer for everything except scrolling and
flinging.
2015-08-28 10:58:46 -07:00
Adam Barth
df5e2f7812 Merge pull request #912 from abarth/tap
Add tap, show press, and long press gestures and use tap in IconButton
2015-08-28 10:23:01 -07:00
Adam Barth
8047f1e289 Add tap, show press, and long press gestures and use tap in IconButton
These gestures use the new gesture detection system.
2015-08-28 10:21:35 -07:00
Adam Barth
28ee74da95 Merge pull request #917 from abarth/pointer_packet
Add a mojom for delivering pointer events in packets
2015-08-28 10:11:39 -07:00
Ian Fischer
6b3ed6a922 Merge pull request #916 from iansf/release_flag
Add --release flag
2015-08-28 09:56:33 -07:00
Adam Barth
30a05aab46 Add a mojom for delivering pointer events in packets
We don't use this interface yet.
2015-08-28 09:39:35 -07:00
Ian Fischer
56d85276c8 Add global release flag that will attempt to use release builds during install. 2015-08-28 09:37:54 -07:00
Adam Barth
bb844a62de Fix analyzer warning 2015-08-27 22:59:24 -07:00
Alhaad Gokhale
e2b4149320 Go back to master. 2015-08-27 18:16:45 -07:00
Adam Barth
c9a7149955 Merge pull request #908 from abarth/gesture_arena
Add GestureArena
2015-08-27 17:17:28 -07:00
Adam Barth
03fffdfef9 Add GestureArena
In the GestureArena, gestures will fight it out to see which is the real
ultimate gesture.
2015-08-27 17:17:12 -07:00
James Robinson
ac393ede71 Remove //gpu and other unused code
Oneline diffstat: 489 files changed, 4 insertions(+), 186980
deletions(-)

This deletes all of //gpu (except for one export header) and
various bits of //mojo/{gpu,gles2} that are
not used. SkyShell on Android/iOS/etc bind to the system's GL
driver via //ui/gl. sky_viewer.mojo
binds to the Mojo C entry points.
2015-08-27 16:38:20 -07:00
James Robinson
790e5c2e31 Merge pull request #896 from jamesr/gpu_bindings
Use C bindings to Mojo GL entry points exclusively
2015-08-27 16:35:26 -07:00
James Robinson
8b4bdd242d Use C bindings to Mojo GL entry points exclusively 2015-08-27 15:58:24 -07:00
Eric Seidel
d8664718c3 Merge pull request #878 from eseidelGoogle/grid
Add basic Grid widget and test RenderGrid
2015-08-27 15:55:39 -07:00
Ian Hickson
c5809d658b Merge pull request #901 from Hixie/layout-callback
Allow parents of RenderObjects that have layout callbacks to depend on those objects' sizes.
2015-08-27 15:32:02 -07:00
Ian Fischer
785451aaca Merge pull request #903 from iansf/fix_dumb_mistake
Fix infinite loop
2015-08-27 15:31:04 -07:00
Adam Barth
74e35e7de6 Add test for PointerRouter 2015-08-27 15:29:31 -07:00
Ian Fischer
1700ae5a87 Fix infinite loop in sky_tool listen if you didn’t specify —local-build 2015-08-27 15:29:26 -07:00
Hixie
78c46af9c6 Allow parents of RenderObjects that have layout callbacks to depend on those objects' sizes.
Previously, if you used a layout callback, you could not have a parent
that did parentUsesSize, or if you did, you had to be marked
sizedByParent. With this patch, we allow the parent to depend on your
layout, even if you modify your child list during your layout using a
layout callback, by checking that the parent is still actively being
laid out in this scenario.
2015-08-27 15:26:57 -07:00
Adam Barth
b3087a14aa Merge pull request #899 from abarth/pointer_router
Add PointerRouter
2015-08-27 15:25:51 -07:00
Adam Barth
ebf5b44fb3 Add PointerRouter
This patch is the first step towards implementing gestures. The pointer router
allows the gesture detectors to hook in at the end of the pointer event
propagation chain.

Related to #145
2015-08-27 15:02:35 -07:00
Eric Seidel
6a5e0aac93 Add a Widget wrapper around Grid and test RenderGrid
@abarth
2015-08-27 14:52:19 -07:00
Eric Seidel
27b4d010f2 Add a pageChanged callback to PageableList
Also includes changes to widget_tester sufficient to
test scrolling.

@abarth
2015-08-27 14:51:53 -07:00
Ian Fischer
519db7562f Make sure that local build paths exist before doing things that expect them. 2015-08-27 13:46:15 -07:00
Chinmay Garde
d556e09e66 Merge branch 'skia' 2015-08-27 12:19:55 -07:00
Adam Barth
34f7bbebb5 Merge pull request #890 from abarth/cancel_queued_callback
Scheduler should be able to cancel a queued callback
2015-08-27 11:06:26 -07:00
Ian Fischer
008a6cf8b3 Merge pull request #891 from iansf/reorder_listen
Start "sky_tool listen" with a refresh
2015-08-27 10:56:59 -07:00
Ian Fischer
d87d5ba897 Have “sky_tool listen” start with a refresh so that iOS devices don’t wait on a black screen for the first filesystem change. 2015-08-27 10:54:10 -07:00
Adam Barth
7d5ef20bb1 Scheduler should be able to cancel a queued callback
Previously, once a callback was in the execution queue, it couldn't be
canceled. Now we check whether the callback was canceled before executing it.
2015-08-27 10:51:01 -07:00
Ian Hickson
3a1706b8ea Merge pull request #879 from Hixie/RenderBlockViewport
Abstract out syncChildren().
2015-08-27 10:44:45 -07:00
Adam Barth
45bc387953 Rev pub package 2015-08-27 10:29:47 -07:00
Adam Barth
10f276d519 Rev pub packages 2015-08-27 10:27:41 -07:00