2365 Commits

Author SHA1 Message Date
mpcomplete
edd9b3152d Merge pull request #3 from domokit/drawer.spring
Make Drawer animate using a spring force instead of a linear curve.
2015-07-16 12:48:33 -07:00
Matt Perry
871eeb24ad DEPS 2015-07-16 12:43:02 -07:00
Matt Perry
e79d9ca20f Merge remote-tracking branch 'origin' into drawer.spring 2015-07-16 12:41:25 -07:00
Eric Seidel
cf074be4b3 Merge pull request #2 from abarth/creating_pull_requests
Add instructions for creating pull requests
2015-07-16 12:39:59 -07:00
Adam Barth
05ed2cbbd2 Add instructions for creating pull requests 2015-07-16 12:36:54 -07:00
Matt Perry
ab2ed5f8a8 apply.patch 2015-07-16 12:34:11 -07:00
Adam Barth
51b9fa42a3 Merge pull request #1 from abarth/contributing_md
Add a basic CONTRIBUTING.md
2015-07-16 12:33:11 -07:00
Adam Barth
d974d65186 Add a basic CONTRIBUTING.md 2015-07-16 12:32:52 -07:00
Collin Jackson
01ff5c383f Merge history from sky/ directory in https://github.com/domokit/mojo/ 2015-07-16 11:56:03 -07:00
Collin Jackson
a64559ab70 After running filter-branch, move root directory into sky/ 2015-07-16 11:54:25 -07:00
Adam Barth
d2650414b8 Remove dependencies on Skia and the prebuilt network library 2015-07-16 11:44:27 -07:00
Adam Barth
ad9b135217 Update to mojo 5f5dfcc9af8b40a14dd76e34c60a5766b9f58bb4 2015-07-16 11:44:14 -07:00
John McCutchan
008830de1b Remove some more WTF usage
BUG=
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1237563003 .
2015-07-16 10:57:14 -07:00
John McCutchan
2613a2972e Port more uses of OwnPtr to std::unique_ptr
BUG=
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1243483002 .
2015-07-16 10:46:52 -07:00
Adam Barth
a14806018f Top-level files 2015-07-16 10:16:42 -07:00
Adam Barth
388568d2ce Create a repository for Sky 2015-07-16 10:15:20 -07:00
Eric Seidel
dcce0d6a5a Make skyx files for fitness and cards actually build
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1230423003 .
2015-07-16 10:14:20 -07:00
John McCutchan
8ae6b80bc4 Remove all remaining HashMap and HashSet usages except dart_string_cache
BUG=
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1241583003 .
2015-07-16 10:01:02 -07:00
Adam Barth
1147d3869f Clean up some more DEPS
Sky itself does't need to depend on //services/debugger. That's already taken
care of by //services depending on //services/debugger. Also, add some direct
depenencies from //sky/sdk to the mojom interfaces used by //sky/sdk.

TBR=eseidel@google.com

Review URL: https://codereview.chromium.org/1232783006 .
2015-07-16 09:44:27 -07:00
Adam Barth
52becafbb9 Rebaseline tests after console spam reduction
TBR=tonyg@google.com

Review URL: https://codereview.chromium.org/1239983002 .
2015-07-16 09:43:12 -07:00
Przemyslaw Pietrzkiewicz
ab9720d6cb Cut the spam in the sky log printouts.
This is a port of
f61746083f
.

This patch eliminates the tag "[0708/123945:INFO:builtin_natives.cc(86)]
CONSOLE" prefixing each message in sky log Android output by
implementing the Android logging directly, ie. without base LOG macros.

The log message is now written directly to stdout on Android as well as
on Linux and iOS, and is also written to android logcat tagged as
"chromium", which is the tag we use to pick up native LOG messages from
the logcat when running on unrooted device.

A user running `mojo_shell.py --sky` on a rooted device will now see:

  hello

instead of

  [0715/174636:INFO:builtin_natives.cc(86)] CONSOLE: hello

A user running `mojo_shell.py --sky` on unrooted device will now see:

  I/chromium(29585): hello

instead of

  I/chromium(26587): [0715/174636:INFO:builtin_natives.cc(86)] CONSOLE: hello

Fixes #317.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1237403002 .
2015-07-16 18:19:01 +02:00
Przemyslaw Pietrzkiewicz
9ace5ba7c7 Update sky HACKING.md instructions to use mojo_shell.py.
See #238.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1242453002 .
2015-07-16 17:08:16 +02:00
John McCutchan
eb2cef413d Port more String and HashMap usages
BUG=
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1237973004 .
2015-07-16 07:30:56 -07:00
Eric Seidel
3fff8ce303 Make skyx files for fitness and cards actually build
TBR=jackson@google.com

Review URL: https://codereview.chromium.org/1229423003 .
2015-07-15 16:37:42 -07:00
Eric Seidel
df2711620f Add Cards and Fitness demos, remove sector.
The launch cards still need to be made nicer.

R=abarth@chromium.org, abarth@google.com

Review URL: https://codereview.chromium.org/1232103006 .
2015-07-15 16:31:24 -07:00
Eric Seidel
30cdf9997e Make the Cards in DemoLauncher.apk splash on touch.
R=abarth@chromium.org, jackson@google.com
BUG=

Review URL: https://codereview.chromium.org/1237693008 .
2015-07-15 15:55:14 -07:00
Chinmay Garde
93006a03d4 Minor sky/engine updates for Mac target
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1241673004 .
2015-07-15 14:11:58 -07:00
Matt Perry
9a2f2a5f4f Add support for "flinging" the animation timeline with a spring force. So far,
Drawer uses this when you fling it.

I refactored Timeline to be based on AnimatedSimulation. When playing normally,
we use a TweenSimulation, which just gives values linearly in a range. You can
optionally replace this simulation with one of your choice (in Drawer's case, a
SpringSimulation).

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1233653003 .
2015-07-15 14:07:42 -07:00
Collin Jackson
cb86e621f9 Wire up popup menus to back button
R=abarth@chromium.org, abarth

Review URL: https://codereview.chromium.org/1237213003 .
2015-07-15 13:40:38 -07:00
John McCutchan
781413c925 Remove some HashMap
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1228353005 .
2015-07-15 13:01:09 -07:00
Adam Barth
7ca2e4fb10 Improve drawer performance
- Instead of using a ColorFilter or an Opacity widget to colorize the Icons,
   add a ColorFilter parameter it the image classes. This avoids needing to
   call saveLayer for each DrawerItem.
 - Ask Android for unbuffered input events to avoid bad synchronization with
   vsync.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1236043004 .
2015-07-15 11:07:53 -07:00
Adam Barth
4ce0e4386d Use @android:style/Theme.Black.NoTitleBar to avoid white flash
Using this theme appears to remove the white flash during startup.

R=eseidel@chromium.org, jackson@google.com

Review URL: https://codereview.chromium.org/1240433004 .
2015-07-15 11:06:16 -07:00
John McCutchan
7bef123648 Remove #include of RefPtr in dart_state.h
BUG=
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1235063005 .
2015-07-15 09:11:23 -07:00
John McCutchan
c60c99bfcb Remove most usage of Vector
BUG=
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1237973002 .
2015-07-15 09:10:40 -07:00
Adam Barth
05049ac6e4 Convert Dismissable over to using animated subcomponents
R=hansmuller@chromium.org, mpcomplete@chromium.org, mpcomplete@google.com

Review URL: https://codereview.chromium.org/1228803008 .
2015-07-14 22:32:37 -07:00
Adam Barth
ce0b58e068 Simplify the Drawer animation
Instead of using AnimationBuilder, this CL has the Drawer just
use the animations system directly.

R=mpcomplete@chromium.org, mpcomplete@google.com

Review URL: https://codereview.chromium.org/1234073005 .
2015-07-14 20:32:54 -07:00
Hans Muller
05cd2e92ab Correct bottom overscroll in VariableHeightScrollable
Also updated the createDefaultScrollSimulation()
springConstant and drag parameters to make
non-overscroll fling scrolls slowdown faster and
overscrolls snap back into place a little more
snappily.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1241733002 .
2015-07-14 15:36:42 -07:00
Hixie
64c5420007 Remove Animations and Transitions.
And all related CSS properties.
And page transitions, whatever those are.
And will-change.
And page visibility.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1229273004 .
2015-07-14 15:07:35 -07:00
Adam Barth
0a0c36a4df Polish the menu animation
- Delay the close of the menu by the appropriate amount.
 - Fade the menu items for equal amounts of time.
 - Contract the height of the menu just after each item fade.

R=mpcomplete@chromium.org, mpcomplete@google.com

Review URL: https://codereview.chromium.org/1223113004 .
2015-07-14 13:56:34 -07:00
Adam Barth
ef34605122 Update test after removing Material from Scrollable
TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1233743003 .
2015-07-14 13:54:44 -07:00
Adam Barth
0ccd25a43d Make the popup menu width animation work
Previously, the scrollable classes were adding a material, which created a
background that obscured the menu background. This CL removes that background
and improves the animation parameters for the popup menu.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1235233004 .
2015-07-14 13:19:11 -07:00
Eric Seidel
fcf3eb5478 Add an AspectRatio widget for doing proportional height sizing
This is needed for Material Design since rich media is supposed
to be displayed as 16:9 when possible.

http://www.google.com/design/spec/components/cards.html#cards-content-blocks

R=abarth@chromium.org, abarth@google.com

Review URL: https://codereview.chromium.org/1227093010 .
2015-07-14 13:17:55 -07:00
Adam Barth
722bde6a8e Use AnimationVariables to drive PopupMenu animation
R=mpcomplete@chromium.org, mpcomplete@google.com

Review URL: https://codereview.chromium.org/1241703003 .
2015-07-14 13:10:30 -07:00
Collin Jackson
00aa68c787 Support for anonymous state routes
R=abarth@chromium.org, abarth

Review URL: https://codereview.chromium.org/1231753008 .
2015-07-14 12:53:38 -07:00
Collin Jackson
d51e68beb4 Delete drawerController and make drawer handle back behavior natively
R=abarth@chromium.org, abarth

Review URL: https://codereview.chromium.org/1232673003 .
2015-07-14 11:51:45 -07:00
John McCutchan
1789fc85bf Update Dart SDK to 1.12.0-dev.3.1
BUG=
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1229953008 .
2015-07-14 11:34:03 -07:00
Adam Barth
80325c9693 Add a timeDilation factor for debugging
R=ianh@google.com

Review URL: https://codereview.chromium.org/1235153005 .
2015-07-14 11:10:28 -07:00
Adam Barth
273e282554 Make it possible to detect PopupMenuItem presses
R=ianh@google.com

Review URL: https://codereview.chromium.org/1240573007 .
2015-07-14 10:58:35 -07:00
Hixie
29d2362963 We can't use block when we have constrained space anymore. Use Flex instead.
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1230053005 .
2015-07-14 10:52:49 -07:00
Adam Barth
fdeb7b670a Remove PopupMenuController
Rather than using a controller, the PopupMenu now takes input via its
constructor. I'm not 100% happy with PopupMenuStatusChangedCallback, but we can
continue to iterate.

Also, fix the positioning of the menu to be correct.

R=jackson@google.com

Review URL: https://codereview.chromium.org/1234063003 .
2015-07-14 10:44:44 -07:00