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

Issue 1290643006: First cut at behaviors. This just implements the lifecycle methodsportion. We may get the rest for … (Closed)

Created:
5 years, 4 months ago by Siggi Cherem (dart-lang)
Modified:
5 years, 2 months ago
Reviewers:
jakemac
CC:
reviews_dartlang.org, jakemac
Base URL:
git@github.com:dart-lang/polymer-dart.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

First cut at behaviors. This just implements the lifecycle methodsportion. We may get the rest for free (properties, observers, listeners, hostAttributes), but haven't tested those yet BUG=

Patch Set 1 #

Total comments: 20

Patch Set 2 : #

Total comments: 16
Unified diffs Side-by-side diffs Delta from patch set Stats (+692 lines, -56 lines) Patch
M lib/polymer_micro.dart View 1 chunk +1 line, -0 lines 0 comments Download
A lib/src/common/behavior.dart View 1 1 chunk +78 lines, -0 lines 2 comments Download
M lib/src/common/declarations.dart View 1 3 chunks +32 lines, -10 lines 0 comments Download
M lib/src/common/js_proxy.dart View 1 2 chunks +7 lines, -1 line 2 comments Download
M lib/src/common/polymer_descriptor.dart View 1 7 chunks +41 lines, -22 lines 0 comments Download
M lib/src/common/polymer_mixin.dart View 1 chunk +2 lines, -1 line 0 comments Download
M lib/src/js/polymer_base_dart.html View 1 1 chunk +5 lines, -0 lines 2 comments Download
M lib/src/js/polymer_bind_dart.html View 1 3 chunks +20 lines, -3 lines 2 comments Download
A test/common.dart View 1 1 chunk +10 lines, -0 lines 2 comments Download
A test/src/common/behavior_test.dart View 1 1 chunk +238 lines, -0 lines 0 comments Download
A test/src/common/behavior_test.html View 1 1 chunk +78 lines, -0 lines 0 comments Download
M test/src/common/js_proxy_test.html View 1 1 chunk +5 lines, -0 lines 2 comments Download
M test/src/common/polymer_descriptor_test.dart View 1 4 chunks +78 lines, -18 lines 0 comments Download
M test/src/common/polymer_descriptor_test.html View 1 2 chunks +12 lines, -1 line 2 comments Download
M test/src/common/polymer_mixin_test.html View 1 1 chunk +5 lines, -0 lines 2 comments Download
M test/src/common/polymer_register_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/micro/attributes_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/micro/lifecycle_callbacks_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/mini/bottom_up_ready_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/mini/default_values_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/mini/dom_distribution_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/mini/template_stamping_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/standard/attribute_binding_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/standard/computed_properties_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/standard/event_listener_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/standard/node_finding_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/standard/property_binding_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/standard/property_change_callbacks_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/standard/property_change_notification_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/standard/read_only_properties_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/src/standard/reflect_to_attribute_test.html View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Siggi Cherem (dart-lang)
https://codereview.chromium.org/1290643006/diff/1/lib/src/common/behavior.dart File lib/src/common/behavior.dart (right): https://codereview.chromium.org/1290643006/diff/1/lib/src/common/behavior.dart#newcode1 lib/src/common/behavior.dart:1: library polymer.src.common.behavior; +copyright https://codereview.chromium.org/1290643006/diff/1/lib/src/common/behavior.dart#newcode8 lib/src/common/behavior.dart:8: typedef void _VoidFn(); delete? ...
5 years, 4 months ago (2015-08-12 22:43:15 UTC) #1
jakemac
https://codereview.chromium.org/1290643006/diff/1/lib/src/common/behavior.dart File lib/src/common/behavior.dart (right): https://codereview.chromium.org/1290643006/diff/1/lib/src/common/behavior.dart#newcode1 lib/src/common/behavior.dart:1: library polymer.src.common.behavior; On 2015/08/12 22:43:14, Siggi Cherem (dart-lang) wrote: ...
5 years, 4 months ago (2015-08-13 17:50:45 UTC) #3
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/1290643006/diff/20001/lib/src/common/behavior.dart File lib/src/common/behavior.dart (right): https://codereview.chromium.org/1290643006/diff/20001/lib/src/common/behavior.dart#newcode1 lib/src/common/behavior.dart:1: // Copyright (c) 2014, the Dart project authors. ...
5 years, 4 months ago (2015-08-13 18:52:41 UTC) #4
jakemac
5 years, 4 months ago (2015-08-13 19:14:30 UTC) #5
https://codereview.chromium.org/1290643006/diff/20001/lib/src/common/behavior...
File lib/src/common/behavior.dart (right):

https://codereview.chromium.org/1290643006/diff/20001/lib/src/common/behavior...
lib/src/common/behavior.dart:1: // Copyright (c) 2014, the Dart project authors.
 Please see the AUTHORS file
On 2015/08/13 18:52:41, Siggi Cherem (dart-lang) wrote:
> 2015 :)

Acknowledged.

https://codereview.chromium.org/1290643006/diff/20001/lib/src/common/js_proxy...
File lib/src/common/js_proxy.dart (right):

https://codereview.chromium.org/1290643006/diff/20001/lib/src/common/js_proxy...
lib/src/common/js_proxy.dart:67: return !declaration.owner.metadata.any((m) => m
is BehaviorProxy);
On 2015/08/13 18:52:41, Siggi Cherem (dart-lang) wrote:
> should we have a type to declare things that don't require the js constructor?
> (BehaviorProxy is currently the only one, but wouldn't that be necessary for
any
> other mixin that relies on code from JS?) I guess maybe there is nothing else
> like it in the polymer.js world?

Nothing else that I know of today, I think we can add that if needed later on.

https://codereview.chromium.org/1290643006/diff/20001/lib/src/js/polymer_base...
File lib/src/js/polymer_base_dart.html (right):

https://codereview.chromium.org/1290643006/diff/20001/lib/src/js/polymer_base...
lib/src/js/polymer_base_dart.html:2: Copyright (c) 2014, the Dart project
authors.  Please see the AUTHORS file
On 2015/08/13 18:52:41, Siggi Cherem (dart-lang) wrote:
> 2015

Done.

https://codereview.chromium.org/1290643006/diff/20001/lib/src/js/polymer_bind...
File lib/src/js/polymer_bind_dart.html (right):

https://codereview.chromium.org/1290643006/diff/20001/lib/src/js/polymer_bind...
lib/src/js/polymer_bind_dart.html:2: Copyright (c) 2014, the Dart project
authors.  Please see the AUTHORS file
On 2015/08/13 18:52:41, Siggi Cherem (dart-lang) wrote:
> +1 :)

Done.

https://codereview.chromium.org/1290643006/diff/20001/test/common.dart
File test/common.dart (right):

https://codereview.chromium.org/1290643006/diff/20001/test/common.dart#newcode1
test/common.dart:1: //Copyright (c) 2014, the Dart project authors.  Please see
the AUTHORS file
On 2015/08/13 18:52:41, Siggi Cherem (dart-lang) wrote:
> ++

Done.

https://codereview.chromium.org/1290643006/diff/20001/test/src/common/js_prox...
File test/src/common/js_proxy_test.html (right):

https://codereview.chromium.org/1290643006/diff/20001/test/src/common/js_prox...
test/src/common/js_proxy_test.html:3: Copyright (c) 2014, the Dart project
authors.  Please see the AUTHORS file
On 2015/08/13 18:52:41, Siggi Cherem (dart-lang) wrote:
> ++

Done.

https://codereview.chromium.org/1290643006/diff/20001/test/src/common/polymer...
File test/src/common/polymer_descriptor_test.html (right):

https://codereview.chromium.org/1290643006/diff/20001/test/src/common/polymer...
test/src/common/polymer_descriptor_test.html:3: Copyright (c) 2014, the Dart
project authors.  Please see the AUTHORS file
On 2015/08/13 18:52:41, Siggi Cherem (dart-lang) wrote:
> ++

Done.

https://codereview.chromium.org/1290643006/diff/20001/test/src/common/polymer...
File test/src/common/polymer_mixin_test.html (right):

https://codereview.chromium.org/1290643006/diff/20001/test/src/common/polymer...
test/src/common/polymer_mixin_test.html:3: Copyright (c) 2014, the Dart project
authors.  Please see the AUTHORS file
On 2015/08/13 18:52:41, Siggi Cherem (dart-lang) wrote:
> ++ (Seems this might be the case on all of them)

Done.

Powered by Google App Engine
This is Rietveld 408576698