1. 20 3月, 2015 1 次提交
  2. 16 3月, 2015 1 次提交
  3. 19 3月, 2015 1 次提交
  4. 16 3月, 2015 1 次提交
    • R
      Change how events are handled in Effen · e8318f65
      Rafael Weinstein 提交于
      This patch removes the mutable API to event handling (Nodes no longer have a events object with which to add listeners).
      
      Instead, a new (non-Render) Node is introduced: EventTarget. This node represents a location in the Effen tree which can handle events as they bubble.
      
      Note that this also changes the implementation to use event delegation (one set of listeners at the sky.document level) rather than direct listeners on leaf nodes.
      
      R=abarth@chromium.org
      
      Review URL: https://codereview.chromium.org/1019633004
      e8318f65
  5. 19 3月, 2015 6 次提交
  6. 15 3月, 2015 1 次提交
  7. 19 3月, 2015 1 次提交
    • A
      Begin work on the PopupMenu entrance animation · 10d63a07
      Adam Barth 提交于
      This CL also refactors how animations work, particularly for the Drawer. I've
      renamed DrawerAnimation to DrawerController and switched it from being an
      Animation to having an Animation. I've also renamed Animation to AnimatedValue
      to capture the idea that the class actually presents the value being animated.
      Finally, I've factored AnimatedValueListener out of Drawer so that it can be
      used by PopupMenuItem as well.
      
      Finally, I've added a scheduleBuild convienence function to Component instead
      of having to call setState(() {}), which has come up a couple times.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1016093002
      10d63a07
  8. 18 3月, 2015 10 次提交
  9. 17 3月, 2015 2 次提交
    • A
      Cleanup events related to material splashes · 28d09890
      Adam Barth 提交于
      This CL is a warmup for using a more sophisticated gesture disambiguation.
      
      1) Use gesturetap instead of click. We should probably remove click events
         because folks should use gesturetap to integrate with the gesture system.
      
      2) Handle the case where you swipe the drawer during an animation. Previously
         we had an assert which triggered in some multitouch scenarios. We'll
         eventually move this over to gestureswipe.
      
      3) Remove an extra container for ink splashes. There's no need to group all the
         ink splashes in a container. They can all just be children of the Material
         component itself. This structure is left over from when Material was a base
         class.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1013713005
      28d09890
    • A
      Introduce sky/framework/theme/typography.dart · a2904c14
      Adam Barth 提交于
      This CL adds typography information to the Sky theme. The values are from the
      Material Design spec. I've also applied these values to the stocks app and the
      various components.
      
      We're not geting precisely the right typography in some cases because of
      https://github.com/domokit/mojo/issues/65.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1006363004
      a2904c14
  10. 13 3月, 2015 1 次提交
    • R
      Sky/Effen refactor: all nodes receive _mount/_unmount signal. · 8a9a12b1
      Rafael Weinstein 提交于
      This patch refactors Effen in advance of allowing a final transform step from Effen nodes to sky nodes. The central changes here are:
      
      1) Effen nodes get a _parentNode pointer
      2) The lifetime of effen nodes is
        ->_sync (0 to N times)
           -> the first _sync() causes a _mount()
        ->_unmount
      3) Node should expect to sync even when they are first inserted (in which case they sync against a prototypical empty node which their class must provide).
      4) Subclasses now override _syncNode() no longer takes host & insertBefore (_mount does). In the one case that a node must be replaced without being unmounted (inside _syncInternal), the old node is inspected for it's sky position.
      
      TBR=abarth
      
      Review URL: https://codereview.chromium.org/996103008
      8a9a12b1
  11. 17 3月, 2015 8 次提交
  12. 16 3月, 2015 1 次提交
  13. 14 3月, 2015 6 次提交
    • E
      Currently we use package: to mean "/gen", which is not at all how · 8ad5f146
      Eric Seidel 提交于
      Dart actually expects package: to work.  This CL makes package:foo
      map to /packages/foo, similar to how Dartium or bin/dart would expect.
      
      This also means overlaying the /gen directory over the actual package
      outputs (as consumers of an SDK would expect) as well as adding
      an additional /lib indirection for the actual package source as
      the Dart pub tool will expect.
      
      This is far from perfect, but it unlocks us actually producing a
      sky SDK.
      
      I expect there may be some fallout from this change as I'm sure I
      missed some package: uses.  We also don't have a general solution
      for all /foo/bar/baz includes which randomly included parts
      of mojo's source directory.  Those will need to be updated to use
      a package: and deploy_sdk.py taught how to build a package for them.
      
      R=abarth@chromium.org
      
      Review URL: https://codereview.chromium.org/990493002
      8ad5f146
    • A
      Improve Sky's Scrollable physics · 85d02799
      Adam Barth 提交于
      We now use a physics simulationt to drive the scroll fling. We're also closer
      to integrating fling into overscroll.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1004363002
      85d02799
    • R
      Allow Effen Styles to be extendable · 0765e85b
      Rafael Weinstein 提交于
      R=abarth@chromium.org
      
      Review URL: https://codereview.chromium.org/1006053002
      0765e85b
    • A
      SkyShell DCHECKs on startup · 19d7fa39
      Adam Barth 提交于
      We need to update how we initialize JNI to make sure we get an AtExitManager.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1003813004
      19d7fa39
    • A
      Add missing import · a8aeed8a
      Adam Barth 提交于
      a8aeed8a
    • A
      Organize sky/framework/animation · 1eb13d01
      Adam Barth 提交于
      This CL cleans up the sky/framework/animation as follows:
      
      1) I've moved code that's used only by the custom elements framework into
         sky/framework/elements/animation. This code is based on AnimationDelegates
         rather than Streams.
      2) Rename ScrollCurve to ScrollBehavior because it encapsulates more behavior
         than just a curve.
      3) Make the Generator interface explicit and mark subclasses as actual
         subclasses.
      4) Move Simulation into generators.dart because it implements the Generator
         interface.
      5) Move Animation out of generators.dart because it does not implement the
         Generator interface.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1001373002
      1eb13d01