1. 12 6月, 2015 1 次提交
  2. 11 6月, 2015 1 次提交
    • H
      Remove one more use of mirrors: Components now have to explicitly sync their fields. · 003083a1
      Hixie 提交于
      This also removes one bit of magic to make it more obvious what on is
      going on during a sync, which should hopefully help.
      
      Components have to decide if they support being stateful or not. If
      they do, then they must implement syncFields() and have mutable
      fields; if they don't, then they must have final fields. This isn't
      particularly enforced, though.
      
      This also renames _willSync() to _retainStatefulNodeIfPossible(), for
      clarity, and fixes some minor style issues and one typo that was
      breaking the drawer.
      
      R=abarth@chromium.org
      
      Review URL: https://codereview.chromium.org/1174023003
      003083a1
  3. 10 6月, 2015 1 次提交
  4. 06 6月, 2015 1 次提交
  5. 04 6月, 2015 3 次提交
  6. 03 6月, 2015 1 次提交
  7. 28 5月, 2015 1 次提交
  8. 27 5月, 2015 1 次提交
  9. 20 5月, 2015 2 次提交
  10. 19 5月, 2015 1 次提交
    • J
      Rationalize Dart mojo and sky package structure. · b017dfd9
      John McCutchan 提交于
      NOTE: This CL appears far larger than it actually is for two reasons:
      
      1) Many files were moved around to use the Dart package directory structure.
      2) Many .dart files had to have import paths updated.
      
      - Organize mojo/public/dart so that it uses standard Dart package layout
      - Organize mojo/dart/apptest so that it uses a standard Dart package layout
      - Organize sky/sdk so that it uses a standard Dart package layout
      - Create a mojo/testing package (used by unittests)
      - Introduce the 'dart_pkg' gn rule which populates gen/Config/dart-pkg
      - All internally vended Dart packages must have a corresponding dart_pkg rule
      - It is now possible to use dependency_overrides: in pubspec.yaml to mix internal and external package dependencies (enables analyzer, editor, webstorm usage for internal developers).
      - Package root for dart content handler ends with "packages/"
      - Imports of mojo package uris no longer need the "public/dart"
      - mojo/public/tools/dart_package.py is a clone of mojo/public/tools/gn/zip.py
      - Sky tests no longer run 'deploy_sdk' script.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1132063007
      b017dfd9
  11. 02 4月, 2015 1 次提交
  12. 25 3月, 2015 1 次提交
    • A
      Clean up stock_app.dart · 040c83d5
      Adam Barth 提交于
      This CL cleans up stock_app.dart to better separate concerns now that we have
      StyleNode. Also, this CL introduces IconButton, which will grow to include an
      ink effect in the future, and makes the background of the search bar white.
      
      R=ojan@chromium.org
      
      Review URL: https://codereview.chromium.org/1007893005
      040c83d5
  13. 14 3月, 2015 2 次提交
    • 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
    • R
      Allow Effen Styles to be extendable · 0765e85b
      Rafael Weinstein 提交于
      R=abarth@chromium.org
      
      Review URL: https://codereview.chromium.org/1006053002
      0765e85b
  14. 12 3月, 2015 1 次提交
    • A
      Update Button to be made of Material · 24a53815
      Adam Barth 提交于
      To accomplish this, I made the following changes:
      
      1) Material is now in charge of drawing the material shadows.
      2) In order to mix in the style for the shadow, Element now takes a list of
         Styles instead of a single style.
      3) Update all clients of Element#style to understand that we now have a list.
      4) Update components that drawer shadows to have Material do that work instead.
         a) One exception: FloatingActionButton draws its own shadow because of its
            crazy clip requirements. We'll probably want to find a better way for
            FloatingActionButton to clip in the future.
      
      I've also added a widgets-fn example to demo the fn material widgets.
      
      This CL introduces a bug into Drawer whereby you can get ink splashes
      everywhere in the drawer. In the future, we'll need to separate out the
      different material aspects to get non-splashable materials.
      
      R=rafaelw@chromium.org
      
      Review URL: https://codereview.chromium.org/1003553002
      24a53815
  15. 11 3月, 2015 1 次提交
  16. 10 3月, 2015 1 次提交
  17. 06 3月, 2015 1 次提交
    • A
      Don't hardcode the list of events types in fn · 075635df
      Adam Barth 提交于
      This CL changes how events work in fn. Previously, event listeners were passed
      in as constructor arguments. Now Nodes hold an |events| object, which contains
      all the event registrations. When a Component renders, all its |events| are
      copied onto the Node it produces. When an Element syncs, it walks its |events|
      and adds them as event listeners on the underlying sky.Element.
      
      The net result of this change is increased flexibility in how events are
      registered. Now components don't need to enumerate all the possible events that
      they support. Instead, the parent component can listen for whatever events it
      likes.
      
      Also, I've cleaned up the association between DrawerAnimation and Drawer. Now
      the constructor for Drawer accepts an |animation| object and wires up its
      internal event handlers itself instead of requiring the constructor to do all
      the wiring.
      
      R=rafaelw@chromium.org
      
      Review URL: https://codereview.chromium.org/975863003
      075635df
  18. 03 3月, 2015 1 次提交