1518 Commits

Author SHA1 Message Date
Eric Seidel
817e2a08df Update SDK README to discuss about:tracing and observatory.
TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1114553004
2015-04-28 12:05:46 -07:00
Eric Seidel
c76bf3bdaf Add missing include in sky_tool
Also fixed missing entry in CHANGELOG.md

TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1108393003
2015-04-28 11:34:12 -07:00
Eric Seidel
fc50331d21 Update CHANGELOG with recent changes to Sky's pub package
TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1104093004
2015-04-27 17:01:09 -07:00
Eric Seidel
dbd54f73b0 Add start-tracing and stop-tracing commands to sky_tool
This is just copy-pasted from shelldb but should work.

TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1112433003
2015-04-27 16:59:17 -07:00
Eric Seidel
7f55f81432 Add a script to sky pub package to download assets
This is a fork of sky/tools/download_material_design_assets
which does not depend on depot_tools and assumes that its
right next to the assets directory instead of finding it
relative to the mojo root.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1106373002
2015-04-27 16:27:47 -07:00
Eric Seidel
65fdcc97e5 Add a blurb to the SDK README about Mojo IPC and Services.
R=ianh@google.com

Review URL: https://codereview.chromium.org/1111573002
2015-04-27 15:41:59 -07:00
Eric Seidel
4badf359d6 Remove missing word from example command line
TBR=mpcomplete@chromium.org

Review URL: https://codereview.chromium.org/1106343002
2015-04-27 14:36:27 -07:00
Eric Seidel
a108fb12f6 Update sky/sdk/README.md instructions
R=ianh@google.com

Review URL: https://codereview.chromium.org/1107203003
2015-04-27 14:28:45 -07:00
Hixie
8c4d2556e6 [Effen] fix some dart warnings (mostly unused imports)
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1104233003
2015-04-27 10:54:26 -07:00
Hixie
122a5220a1 [Effen] stop using custom layout for now, since it's in flux
TBR=hansmuller

Review URL: https://codereview.chromium.org/1102393002
2015-04-27 09:18:01 -07:00
Hixie
b7427362cd shelldb: Make shelldb analyze also analyze the packages, since that's where most development is actually happening at the moment.
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1101893002
2015-04-27 09:16:50 -07:00
Jim Beveridge
d0439a8ba2 Copy of Issue 1100753003, so I can roll Mojo to Modular.
Add support for extra mojom dirs to deploy_sdk.py

TBR=blundell

Review URL: https://codereview.chromium.org/1102883003
2015-04-24 15:03:47 -07:00
Ojan Vafai
fc1dff4288 Expose minContentWidth/maxContentWidth and a callback for computing them.
This exposes the last hooks needed to implement flexbox layout. For now,
I didn't worry too much about the exact API we're exposing since this will
all change with the upcoming redesign (e.g. https://codereview.chromium.org/1093633002).

minContentWidth == the width if the element were to wrap at every wrapping point (not including border/padding)

maxContentWidth == the width if the element were to only wrap at hard wrapping points (e.g. \n inside a whitespace: pre).

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1101793003
2015-04-24 13:14:41 -07:00
Zachary Anderson
ec37fed8f9 Dart: Put generated .mojom.dart files under mojoms pacakge.
BUG=
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1092793005
2015-04-23 15:23:50 -07:00
Hixie
a2e1ec82f5 [Effen] Tapping on a menu while it's closing should not make it instantly disappear.
This tries to make the menu controller more careful about the state
transitions it goes through, in particular, not firing off animations
while we're already closing (since that used to trigger the "we're
done animating" callback which then closes the menu forcibly).

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1074883005
2015-04-23 13:20:39 -07:00
Benjamin Lerman
cd3929c139 java libraries: Fix warnings in eclipse.
R=ppi@chromium.org

Review URL: https://codereview.chromium.org/1098243003
2015-04-22 13:59:00 +02:00
Dave Moore
9adc226ba7 Fix check for MojoShell.apk
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1097343002
2015-04-21 20:58:18 -07:00
James Robinson
1d79fef476 Teach sky_server not to serve up /.git
Sky doesn't need the git repo of the mojo repo.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1059113004
2015-04-21 16:01:17 -07:00
Eric Seidel
31f36426b2 Fix display of 404s in SkyShell to show error text.
In MojoShell we never hit this path since the NetworkFetcher
aborts earlier on, not knowing what content_handler to use.

R=ojan@chromium.org, ianh@google.com

Review URL: https://codereview.chromium.org/1080993005
2015-04-21 15:38:12 -07:00
Hixie
3338073894 fix 'feeback' typo in stock app in menus
TBR=eseidel

Review URL: https://codereview.chromium.org/1065653009
2015-04-21 14:32:22 -07:00
Hixie
77ffda1e8a [Effen] fix warnings
remove members that are never read
remove imports that are never used

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1099203002
2015-04-21 14:05:28 -07:00
Hixie
830f8bf0f7 [Effen] Prevent scrolling past the bottom of a scrollable list.
- make the ScrollBehavior instance long-lived, rather than recreating
  it each time we update the list contents.
- have OverscrollBehavior track the total height of the contents and
  the height of the scrollable region, so that it can determine when
  to stop scrolling down.
- teach OverscrollBehavior about how to determine when to stop
  scrolling down, and how to bounce when it's too far down.
- replace the 'energy' concept in Particles with a method that sets
  the energy and direction at the same time, instead of assuming that
  the direction is always positive when setting energy.
- make FixedHeightScrollable lists track the number of items in the
  list and have them update their ScrollBehavior regarding this
  information as it changes.
- track how many items are currently showing in the list stock list.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1097373002
2015-04-21 13:20:30 -07:00
Viet-Trung Luu
ab3c30d97e Roll skia to 409fd66a5afcef5f165f7ccec7c3473add231752.
R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/1100833002
2015-04-21 13:15:25 -07:00
Dave Moore
1d74d5f631 Add sensors application to mojo
R=qsr@chromium.org

Review URL: https://codereview.chromium.org/1093033002
2015-04-21 09:56:05 -07:00
Hixie
c1dd855d2d [Effen] Only skip rows we're showing, when skipping past the rows that we've scrolled beyond in the stock list.
Currently, if you then scroll down N items with a filter set, we select which
stock to show by taking the entire list of stocks, skipping the first N, then
filtering the list, then selecting as many stocks as needed to fill the list.

So suppose the list is A, B, Cx, Dx, Ex, F, and the filter is "x", and you've
scrolled down 1 item.

Currently we'd show Cx, Dx, Ex.

Scroll down 1 again.

We still show Cx, Dx, Ex.

What we _should_ show is Dx, Ex if you've scrolled down 1, and just Ex if you've
scrolled two.

This patch fixes this. We now skip rows _after_ filtering. This fixes
the bug whereby if you set a filter then fling the list, we show the
same item over and over as if in a loop.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1057603006
2015-04-20 16:35:49 -07:00
Hixie
0b125319e5 [Effen] Make the material splashes a bit lighter.
TBR=eseidel

Review URL: https://codereview.chromium.org/1065643003
2015-04-20 16:08:25 -07:00
Hixie
2f37fc0928 [Effen] Typo in splash code: s/sise/size/
TBR=eseidel

Review URL: https://codereview.chromium.org/1066513006
2015-04-20 15:55:11 -07:00
Hixie
1b76bf43d1 [Effen] Reduce splashes when scrolling.
Pipe the remaining time for an animation all the way out to the AnimatedValue.
Make splashes abortable, which causes them to continue to fade but no longer grow, by having them fade in 100ms or however long the animation was still going to go for, whichever is quickest.
Make Scrollables support objects registering with them to be told when scrolling happens.
Make UINode support subclasses being informed when _remove() was called.
Hook all that together to make splashes go away when scrolling by having them register with any ancestor Scrollables such that when those scroll, all the splashes get aborted. Unregister when removed.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1092423003
2015-04-20 15:51:24 -07:00
Hixie
f646c8ac58 Make the keyboard reappear when you tap on a text field after having dismissed the keyboard.
- the keyboard service now has a showByRequest() method that invokes Android's InputMethodManager's imm.showSoftInput with no flags set.
- the Input component calls through to the keyboard service's showByRequest() when it receives a pointer down.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1089163005
2015-04-20 11:45:33 -07:00
Hixie
33e9822625 [Effen] implement bounce back behaviour for lists.
Turns out this is
actually three simulations in a row, so we now have a system that can
transition from one to another.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1100583002
2015-04-20 11:44:45 -07:00
Hixie
76b93c11c5 Make sky_server include no-cache headers since we don't really want caching during development.
TBR=eseidel

Review URL: https://codereview.chromium.org/1091163003
2015-04-17 16:35:35 -07:00
Hixie
ddc2ffd0c7 [Effen] typo fix: 'cusor' => 'cursor' in editable_text.dart
TBR=eseidel

Review URL: https://codereview.chromium.org/1070313005
2015-04-17 12:13:27 -07:00
James Robinson
1c5cac4efa Expose sky KeyboardService in android mojo_shell
R=eseidel@chromium.org, qsr@chromium.org

Review URL: https://codereview.chromium.org/1088793003
2015-04-16 17:11:15 -07:00
Ryan Macnak
a6ffc52bea Ensure isolates have a root library so createMirrorSystem() and spawnUri() are happy.
https://github.com/domokit/mojo/issues/98

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1088263004
2015-04-16 15:49:11 -07:00
Zachary Anderson
11315b5314 Uses mojom module names as Dart's package: import URI
At present there is a special case in Dart bindings generation which
makes the Mojo SDK and things under mojo/services portable. However,
we must not require things under mojo/services to be next to the
Mojo SDK under mojo/public/... in client repos. Further, other
collections of mojoms should also be portable.

To fix this, instead of using the path in the host repo as the
canonical package: import URI for the generated Dart code, this CL
uses the mojom module name.

BUG=https://github.com/domokit/mojo/issues/73
R=blundell@chromium.org, johnmccutchan@google.com, tonyg@chromium.org

Review URL: https://codereview.chromium.org/1071693003
2015-04-16 07:50:47 -07:00
Eric Seidel
f25edfd741 Revert "skyshell: disable cache for now"
This reverts commit 9b03c575a4e12f80739d1de7d2c6d66a7cdb214a.
https://codereview.chromium.org/999253005

I've not seen the stale caching behavior.  I think we need
to debug that and fix it.  Living with out the cache
causes very long load times in SkyShell.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1086233002
2015-04-15 15:12:00 -07:00
Eric Seidel
465c66d337 Improve commit message generation for deploy_sdk.
Hopefully this will make it slightly more clear that the sky_sdk
repository is not actually a stand-alone repository, but rather
generated by a script.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1088223003
2015-04-15 14:12:59 -07:00
Eric Seidel
2c9ddfc8ff Fix typo in sky_tool causing crash
This will require me to roll the sky pub package, sigh.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1090713002
2015-04-15 13:29:47 -07:00
Eric Seidel
22d00b5cd7 Update README per recommendations from Seth:
https://github.com/domokit/sky_sdk/pull/2
https://github.com/domokit/sky_sdk/pull/3

R=sethladd@google.com, ianh@google.com

Review URL: https://codereview.chromium.org/1091613002
2015-04-15 13:26:53 -07:00
Ojan Vafai
c8d918efa9 Make changing your layout manager work.
If your layout manager changes, then you need to setNeedsLayout,
otherwise the next frame doesn't even get scheduled. We already
correctly handle going from not having layout to having one or
vice versa by doing the more drastic reattaching since that
requires changing your actual render class.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1060013005
2015-04-15 11:08:32 -07:00
Ojan Vafai
a1d93b2847 Fix getChildElements.
It was returing all element descendants instead of all element
immediate children.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1048333006
2015-04-14 16:40:58 -07:00
Eric Seidel
cf80ee6250 Update CHANGELOGs for pub packages on trunk
TBR=hansmuller@chromium.org

Review URL: https://codereview.chromium.org/1082413002
2015-04-14 16:14:31 -07:00
Eric Seidel
9398450cbd Remove Widgets Demo, it's broken and doesn't provide any value over Stocks App
R=ianh@google.com, ojan@chromium.org

Review URL: https://codereview.chromium.org/1085933002
2015-04-14 14:47:21 -07:00
Ojan Vafai
7c974ed8cd Fix crash when removing layout managers.
We weren't correctly marking an element as needing style
recalc if it was *losing* it's layout manager. We were
only doing so when it was gaining a layout manager for
the first time.

Review URL: https://codereview.chromium.org/1082273004
2015-04-14 13:57:07 -07:00
Hixie
f76dd382b8 [Effen] We need to update the layout manager in _syncNode() also,
otherwise when you switch from one Container instance to another, you
end up with the the layout being done by the wrong instance.

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1086983004
2015-04-14 13:35:24 -07:00
Eric Seidel
987ba83d49 Make shelldb load sky_home by default
TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1083963003
2015-04-14 12:49:22 -07:00
Eric Seidel
9fa6ca170a Teach window.location.href setter to handle relative urls.
Also fixed display of text in touch-demo.sky

R=ianh@google.com

Review URL: https://codereview.chromium.org/1059743004
2015-04-14 12:16:51 -07:00
Hixie
0e24ccd944 [Effen] Custom layout. For now, FixedHeightScrollable uses a custom BlockLayout algorithm, mostly as a proof of concept.
R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1064983002
2015-04-14 10:38:05 -07:00
Hans Muller
ef3df2f4fb Scrollable should use scrollTo() instead of setting _scrollOffset directly, when starting an animation.
I'd missed this case when adding Scrollable.scrollTo()
https://codereview.chromium.org/1074033002

R=ianh@google.com

Review URL: https://codereview.chromium.org/1082163002
2015-04-14 10:01:44 -07:00
Eric Seidel
03b16f05b5 Remove needless comments in CSSValueKeywords.in
TBR=ojan@chromium.org

Review URL: https://codereview.chromium.org/1056433004
2015-04-13 13:10:18 -07:00