16560 Commits

Author SHA1 Message Date
Eric Seidel
e70a5c94e5 Roll versions in perparation for another APK release.
Also fixed roll_versions to no longer roll mojo paths
since those are not part of the sky_engine repository.

R=abarth@google.com
2015-07-16 15:42:57 -07:00
Hixie
a77a9c18b2 Remove EventTarget, and subsequent fallout.
The primary goal of this change was to remove EventTarget from the
sky_engine C++ code. Since EventTarget is so core to the entire event
system that sky_engine was based on, this is a rather invasive change.
As such, it had some knock-on effects. I deleted some of the files
that were affected, and cauterised the remainder.

In many cases, a file would depend on another file that it didn't
include directly, but instead included indirectly via another file
that I deleted. When this happened, if the features that this broke
were obsolete, I sometimes just removed the features instead.

Specifically:
- removed EventTarget
- removed EventQueue, since without a target, what's a queue going to
  do?
- same with EventDispatch*
- removed ExecutionContext, since it had an EventQueue and nothing
  else it did was relevant to Sky anymore
- removed ActiveDOMObject, which was all about ExecutionContexts
- removed ContextLifecycleNotifier since it dependend on
  ExecutionContext and ActiveDOMObject
- removed the other Lifecycle classes for consistency, and replaced
  them with four booleans in the Document class
- removed some of the attributes that are no longer relevant from
  IDLExtendedAttributes (ConstructorCallWith and
  CallWith=ExecutionContext)
- removed the Document member on DOMDartState since we never set it to
  anything but null.
- removed BuiltinSky::InstallWindow since it relied on the Document
  member of DOMDartState
- removed EventHandler, EventListener, and mentions of those in
  various binding scripts
- removed NewEventHandler, since we're not using that either
- removed the following interfaces from the Sky Dart API:
  - EventTarget
  - EventListener (since without a target, there's no way to listen)
  - FocusEvent (since it's only member was an EventTarget)
  - HashChangeEvent (mostly by accident, but it's defunct anyway)
  - FontFace (it used ConstructorCallWith=ExecutionContext)
- changed the following interfaces of the Sky DART API:
  - MediaQueryList is no longer an EventTarget
  - Node is no longer an EventTarget
  - Document no longer has defaultView (depended on
    DOMDartState's document)
  - DocumentFragment, Element, Range, and Text no longer have a
    constructor (they all depended on DOMDartState's document, which
    is now gone)
  - Event lost its EventTarget members and path.
  - Window lost its WindowTimers partial interface (it used
    EventTarget and ExecutionContext a lot)
- removed numerous hacks in the bindings around features that are now
  gone, like addEventListener
- removed a bunch of console logging code, since that relied on
  ExecutionContext
- cauterised the wound in FontFace.cpp by removing constructors and
  methods that called now-removed features
- same with MediaQuery and friends
- same with some editor features and focus-related features
- same with Document
- removed DOMTimer classes since they use ExecutionContexts
2015-07-16 14:40:10 -07:00
Collin Jackson
3501bb6359 center the hello world text so it isn’t covered up by the status bar 2015-07-16 14:11:12 -07:00
Matt Perry
c491ad7cbe Add forces.dart 2015-07-16 13:09:30 -07:00
Matt Perry
7724dc7587 apply.patch 2015-07-16 12:34:11 -07:00
Collin Jackson
633b65010c After running filter-branch, move root directory into sky/ 2015-07-16 11:54:25 -07:00
Chinmay Garde
1ad857b53b Allow explicitly setting tolerances on simulations 2015-07-14 16:00:00 -07:00
Adam Barth
1f1cd6c279 Increase the simulation epsilon
We don't need to compute simulations out to that many decimal places because
we're working in pixels.

R=chinmaygarde@google.com
2015-07-10 16:34:13 -07:00
Chinmay Garde
be7e02851a Add test to verify that composite scroll simulation ends correctly
even if the spring was never initialized.
2015-07-10 16:07:59 -07:00
Chinmay Garde
1633ac7f12 Use the more concise syntax for initialization of variables in the constructor 2015-07-08 18:15:18 -07:00
Chinmay Garde
7b77043eba Newton: Address initial code review concerns 2015-07-08 17:56:14 -07:00
Chinmay Garde
d29a0b526b Address initial code review concerns 2015-07-08 16:40:51 -07:00
Chinmay Garde
99dc91eb36 Add bulk remove options 2015-07-08 12:38:22 -07:00
Chinmay Garde
e933565993 Add bulk edit update options to the solver 2015-07-08 10:39:17 -07:00
Chinmay Garde
149a2ca1f8 Get rid of the return type decl on the equality operator override on EquationMember 2015-07-08 10:38:42 -07:00
Chinmay Garde
e0f38529ed == operator override on expression returns a constraint 2015-07-07 13:19:36 -07:00
Chinmay Garde
be5e52bc7c Add build status and coverage badges 2015-07-06 14:31:21 -07:00
Chinmay Garde
fc098d8c65 Rename concrete simulation subclasses 2015-07-06 14:11:41 -07:00
Chinmay Garde
9932e9f03a Test kinetic scrolling group simulation 2015-07-06 14:03:10 -07:00
Chinmay Garde
c3aaf8aa33 Test individial spring types 2015-07-06 13:30:53 -07:00
Chinmay Garde
ab7a6dd6c2 Add accessors for spring type 2015-07-06 12:48:52 -07:00
Chinmay Garde
bcf1f8d05e Test gravity 2015-07-06 12:33:21 -07:00
Chinmay Garde
30965c0984 Test Friction simulation 2015-07-06 12:19:37 -07:00
Chinmay Garde
8c91b9b7c7 Implement simulation groups for kinetic scrolling 2015-07-06 10:57:26 -07:00
Chinmay Garde
5a439792f1 Non composite simulations: Friction, gravity, spring 2015-07-01 18:07:25 -07:00
Chinmay Garde
1ad945f897 Make the constant member value final 2015-07-01 12:26:46 -07:00
Chinmay Garde
a223491d00 Equality override on equation member returns a constraint 2015-07-01 12:26:33 -07:00
Chinmay Garde
e66e88834e Parameter contexts are non-final 2015-06-30 16:49:15 -07:00
Chinmay Garde
704d0174e0 Solver.flush update returns the set of context associated with parameters in play 2015-06-30 14:05:52 -07:00
Chinmay Garde
4568b088e0 Solver.flushParameterUpdates returns the a collection of updated parameters 2015-06-29 15:51:29 -07:00
Ian Fischer
82404e030a Move sky/examples to sky/sdk/lib/example, and code changes to support that change. Fixes T277.
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1218593002.
2015-06-26 15:06:40 -07:00
Chinmay Garde
df2eb202cc Minor: A slightly more contrived test case to verify contraint priorities 2015-06-26 12:21:06 -07:00
Chinmay Garde
e65fd76ead Since params are usually created to be edited later, make the initial value optional 2015-06-26 12:20:02 -07:00
Hans Muller
75f1c05b85 Use Theme to define the colors and TextStyles for Tab, TabBar
Also added a smoke test for examples/widgets/tabs.dart.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1213873002.
2015-06-26 09:30:53 -07:00
Chinmay Garde
eedbb4f167 Add a simple test for the toString() override so that the coverage
tool is not sad
2015-06-25 18:13:56 -07:00
Hixie
d532b3fa7c Rename setParentData to setupParentData since it's not a setter per se.
TBR=abarth

Review URL: https://codereview.chromium.org/1208293002.
2015-06-25 17:28:34 -07:00
Chinmay Garde
d8d07a31dd Add tests edit constraints 2015-06-25 17:28:00 -07:00
Hixie
12b21997ca Let's hide double.INFINITY a bit more, by providing cleaner APIs for the cases where we're currently trying to use it.
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1209233002.
2015-06-25 17:27:43 -07:00
Chinmay Garde
97cd09d2a1 Avoid adding implicit constraints for edit variables at required priority 2015-06-25 17:27:42 -07:00
Hixie
aef18a90ab Add asserts to catch potential misuses of the rendering framework.
New asserts:
- verify that after layout, the size fits the constraints
- verify that after layout, the size isn't infinite
- verify that you don't set the size in performLayout() if you have
  sizedByParent set
- verify that nobody reads your size during layout except you, or your
  parent if they said parentUsesSize:true

Fixes some bugs found by those asserts:
- RenderBlock, RenderStack, and RenderScaffold were not always setting
  parentUsesSize correctly
- RenderScaffold was setting its slot entries to null rather than
  removing them when the slot went away, which led to null derefs in
  certain circumstances

Also, rename a local variable in RenderStack.performLayout() because
it was shadowing a variable on the object itself, which was really
confusing when I first tried to debug this function...

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1213473003.
2015-06-25 17:08:06 -07:00
Chinmay Garde
49d14caa69 Make the midpoints test pass. Fixes incorrect Row.reverseSign 2015-06-25 17:07:15 -07:00
Chinmay Garde
20908034d5 Make constraint priority setup more expressive 2015-06-25 16:24:21 -07:00
Chinmay Garde
2f3e5aa70b Add toString() overrides to internal solver members 2015-06-25 14:30:37 -07:00
Hans Muller
ab246ebcef Version 0 of TabLabel, Tab, and TabBar components
There's is no support for animating the selected tab indicator, there isn't a TabNavigator container yet, overflow layout (tabs don't fit) isn't supported yet, etc.

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

Review URL: https://codereview.chromium.org/1205953002.
2015-06-25 14:25:33 -07:00
Viktor Lidholt
2e32c6721d Adds support for rotated textures
Adds documentation to Texture and SpriteSheet

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1212073002.
2015-06-25 13:13:33 -07:00
Chinmay Garde
9d075adabb Minor: Add tests to check for addition of multiple constraints 2015-06-25 12:20:10 -07:00
Chinmay Garde
a029c93ed1 Remove the << overload on solver. Operator precendence rules made it awkward to use anyway 2015-06-25 12:11:00 -07:00
Chinmay Garde
882a17f75b Minor: Add more tests 2015-06-25 11:45:47 -07:00
Chinmay Garde
8be3c640cc Minor: Refactor -> Rename internal private methods in the solver 2015-06-25 10:25:33 -07:00
Chinmay Garde
7dcd8115c3 Avoid exposing internal classes from the cassowary library 2015-06-24 18:18:58 -07:00