Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Issue 132403010: big update to observe, template_binding, polymer (Closed)

Created:
6 years, 11 months ago by Jennifer Messerly
Modified:
6 years, 10 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

big update to observe, template_binding, polymer The biggest changes are in pkg:observe where we picked up a lot of optimizations to PathObserver/CompoundObserver. template_binding gets one-time bindings, synchronous expansion, and lightweight "bindable" objects. The tests are heavily refactored to use Future instead of the hacky observeTest/performMicrotaskCheckpoint pattern (I have been slowly changing the style for new tests, but observe-js made the change for all of them. yay!). Oh and the performMC stuff is gone from pkg:observe now. There's also a new pkg:polymer feature for observation, which was ported so we are at a consistent baseline. (http://www.polymer-project.org/polymer.html#observeblock) R=justinfagnani@google.com, sigmund@google.com Committed: https://code.google.com/p/dart/source/detail?r=32342

Patch Set 1 #

Patch Set 2 : ported to 23ef8f16ba0dc751d279cc179989851ec0ad00e1 #

Patch Set 3 : fix [0] indexing on _path #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : passing chrome/ff/safari/drt #

Patch Set 7 : #

Total comments: 77

Patch Set 8 : #

Total comments: 6

Patch Set 9 : refactor tokens #

Patch Set 10 : add return type for Node.bind #

Total comments: 4

Patch Set 11 : long line #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4572 lines, -3215 lines) Patch
M pkg/observe/lib/html.dart View 1 2 3 4 5 6 2 chunks +19 lines, -4 lines 0 comments Download
M pkg/observe/lib/observe.dart View 1 2 3 4 5 6 7 2 chunks +6 lines, -14 lines 0 comments Download
A pkg/observe/lib/src/bindable.dart View 1 2 3 4 5 6 7 1 chunk +35 lines, -0 lines 0 comments Download
D pkg/observe/lib/src/compound_path_observer.dart View 1 chunk +0 lines, -115 lines 0 comments Download
M pkg/observe/lib/src/list_diff.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
D pkg/observe/lib/src/microtask.dart View 1 chunk +0 lines, -72 lines 0 comments Download
M pkg/observe/lib/src/observable_list.dart View 1 2 3 4 5 6 2 chunks +26 lines, -1 line 0 comments Download
A pkg/observe/lib/src/observer_transform.dart View 1 2 3 4 5 6 7 1 chunk +83 lines, -0 lines 0 comments Download
M pkg/observe/lib/src/path_observer.dart View 1 2 3 4 5 6 7 4 chunks +544 lines, -175 lines 0 comments Download
M pkg/observe/pubspec.yaml View 1 chunk +1 line, -1 line 0 comments Download
M pkg/observe/test/list_change_test.dart View 7 chunks +66 lines, -89 lines 0 comments Download
M pkg/observe/test/observable_list_test.dart View 5 chunks +110 lines, -88 lines 0 comments Download
M pkg/observe/test/observable_map_test.dart View 5 chunks +107 lines, -86 lines 0 comments Download
M pkg/observe/test/observe_test.dart View 10 chunks +48 lines, -42 lines 0 comments Download
M pkg/observe/test/observe_test_utils.dart View 2 chunks +7 lines, -13 lines 0 comments Download
M pkg/observe/test/path_observer_test.dart View 1 2 3 4 5 6 4 chunks +177 lines, -123 lines 0 comments Download
M pkg/pkg.status View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -1 line 0 comments Download
M pkg/polymer/lib/polymer.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M pkg/polymer/lib/src/declaration.dart View 1 2 3 4 5 6 7 8 9 10 11 21 chunks +103 lines, -31 lines 0 comments Download
M pkg/polymer/lib/src/instance.dart View 1 2 3 4 5 6 7 8 9 10 11 19 chunks +194 lines, -136 lines 0 comments Download
M pkg/polymer/lib/src/loader.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/polymer/test/attr_mustache_test.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/polymer/test/custom_event_test.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/polymer/test/nested_binding_test.dart View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
A pkg/polymer/test/property_observe_test.dart View 1 2 3 4 5 6 7 1 chunk +91 lines, -0 lines 0 comments Download
A + pkg/polymer/test/property_observe_test.html View 1 2 3 4 5 6 1 chunk +6 lines, -2 lines 0 comments Download
M pkg/polymer/test/publish_attributes_test.dart View 1 2 3 4 5 6 1 chunk +5 lines, -5 lines 0 comments Download
M pkg/polymer/test/publish_inherited_properties_test.dart View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/polymer_expressions/example/streams/collect_key_press.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/polymer_expressions/lib/eval.dart View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/polymer_expressions/lib/polymer_expressions.dart View 1 2 3 4 5 2 chunks +60 lines, -22 lines 0 comments Download
M pkg/polymer_expressions/test/bindings_test.dart View 1 2 3 chunks +64 lines, -61 lines 0 comments Download
M pkg/polymer_expressions/test/globals_test.dart View 1 2 3 chunks +41 lines, -41 lines 0 comments Download
M pkg/polymer_expressions/test/syntax_test.dart View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M pkg/template_binding/lib/src/binding_delegate.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/template_binding/lib/src/element.dart View 1 chunk +37 lines, -50 lines 0 comments Download
M pkg/template_binding/lib/src/input_bindings.dart View 3 chunks +66 lines, -110 lines 0 comments Download
M pkg/template_binding/lib/src/input_element.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -6 lines 0 comments Download
M pkg/template_binding/lib/src/instance_binding_map.dart View 1 2 3 4 5 6 7 8 1 chunk +44 lines, -42 lines 0 comments Download
A pkg/template_binding/lib/src/mustache_tokens.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +146 lines, -0 lines 0 comments Download
M pkg/template_binding/lib/src/node.dart View 1 2 3 4 5 6 7 8 9 4 chunks +17 lines, -9 lines 0 comments Download
D pkg/template_binding/lib/src/node_binding.dart View 1 chunk +0 lines, -92 lines 0 comments Download
M pkg/template_binding/lib/src/select_element.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +11 lines, -4 lines 0 comments Download
M pkg/template_binding/lib/src/template.dart View 1 2 9 chunks +120 lines, -154 lines 0 comments Download
M pkg/template_binding/lib/src/template_iterator.dart View 1 2 3 4 5 6 7 8 13 chunks +249 lines, -249 lines 0 comments Download
M pkg/template_binding/lib/src/text.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +14 lines, -9 lines 0 comments Download
M pkg/template_binding/lib/src/text_area_element.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -3 lines 0 comments Download
M pkg/template_binding/lib/template_binding.dart View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -3 lines 0 comments Download
M pkg/template_binding/pubspec.yaml View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/template_binding/test/binding_syntax.dart View 1 2 7 chunks +137 lines, -71 lines 0 comments Download
M pkg/template_binding/test/custom_element_bindings_test.dart View 1 2 6 chunks +88 lines, -89 lines 0 comments Download
M pkg/template_binding/test/node_bind_test.dart View 1 2 10 chunks +397 lines, -319 lines 0 comments Download
M pkg/template_binding/test/template_binding_test.dart View 1 2 45 chunks +1363 lines, -845 lines 0 comments Download
M pkg/template_binding/test/utils.dart View 1 2 3 chunks +14 lines, -8 lines 0 comments Download
M samples/third_party/todomvc/test/utils.dart View 1 2 3 4 5 1 chunk +4 lines, -5 lines 0 comments Download
M tools/line_doc_comments.dart View 3 chunks +17 lines, -7 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Jennifer Messerly
Hey Justin & Siggi, Here's a new CL updating us to latest code (well, as ...
6 years, 10 months ago (2014-02-01 01:23:01 UTC) #1
Siggi Cherem (dart-lang)
https://codereview.chromium.org/132403010/diff/160001/pkg/observe/lib/observe.dart File pkg/observe/lib/observe.dart (right): https://codereview.chromium.org/132403010/diff/160001/pkg/observe/lib/observe.dart#newcode80 pkg/observe/lib/observe.dart:80: // This library contains code is inspired by observe-js: ...
6 years, 10 months ago (2014-02-03 22:52:48 UTC) #2
Jennifer Messerly
Thanks Siggi! Addressed comments. Justin, any thoughts? :) https://codereview.chromium.org/132403010/diff/160001/pkg/observe/lib/observe.dart File pkg/observe/lib/observe.dart (right): https://codereview.chromium.org/132403010/diff/160001/pkg/observe/lib/observe.dart#newcode80 pkg/observe/lib/observe.dart:80: // ...
6 years, 10 months ago (2014-02-04 00:33:05 UTC) #3
Siggi Cherem (dart-lang)
observe/polymer changes lgtm
6 years, 10 months ago (2014-02-04 03:25:56 UTC) #4
justinfagnani
On 2014/02/04 03:25:56, Siggi Cherem (dart-lang) wrote: > observe/polymer changes lgtm I've only gotten from ...
6 years, 10 months ago (2014-02-04 03:45:35 UTC) #5
justinfagnani
A few comments on template binding. https://codereview.chromium.org/132403010/diff/160001/pkg/template_binding/lib/src/element.dart File pkg/template_binding/lib/src/element.dart (right): https://codereview.chromium.org/132403010/diff/160001/pkg/template_binding/lib/src/element.dart#newcode11 pkg/template_binding/lib/src/element.dart:11: bind(String name, value, ...
6 years, 10 months ago (2014-02-04 20:16:07 UTC) #6
justinfagnani
On 2014/02/04 20:16:07, justinfagnani wrote: > A few comments on template binding. > > https://codereview.chromium.org/132403010/diff/160001/pkg/template_binding/lib/src/element.dart ...
6 years, 10 months ago (2014-02-04 20:25:43 UTC) #7
Jennifer Messerly
Thanks Justin! PTAL at the new token code :) https://codereview.chromium.org/132403010/diff/160001/pkg/template_binding/lib/src/element.dart File pkg/template_binding/lib/src/element.dart (right): https://codereview.chromium.org/132403010/diff/160001/pkg/template_binding/lib/src/element.dart#newcode11 pkg/template_binding/lib/src/element.dart:11: ...
6 years, 10 months ago (2014-02-04 23:00:30 UTC) #8
Jennifer Messerly
also, patch set #10 adds return type to Node.bind
6 years, 10 months ago (2014-02-04 23:05:52 UTC) #9
justinfagnani
lgtm again! https://codereview.chromium.org/132403010/diff/160001/pkg/template_binding/lib/src/element.dart File pkg/template_binding/lib/src/element.dart (right): https://codereview.chromium.org/132403010/diff/160001/pkg/template_binding/lib/src/element.dart#newcode11 pkg/template_binding/lib/src/element.dart:11: bind(String name, value, {bool oneTime: false}) { ...
6 years, 10 months ago (2014-02-04 23:34:48 UTC) #10
Jennifer Messerly
https://codereview.chromium.org/132403010/diff/160001/pkg/template_binding/lib/src/element.dart File pkg/template_binding/lib/src/element.dart (right): https://codereview.chromium.org/132403010/diff/160001/pkg/template_binding/lib/src/element.dart#newcode11 pkg/template_binding/lib/src/element.dart:11: bind(String name, value, {bool oneTime: false}) { On 2014/02/04 ...
6 years, 10 months ago (2014-02-04 23:40:40 UTC) #11
Jennifer Messerly
6 years, 10 months ago (2014-02-05 22:23:17 UTC) #12
Message was sent while issue was closed.
Committed patchset #12 manually as r32342 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698