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

Issue 177113014: Adding a mechanism to 'upgrade' the Dart type of elements (Closed)

Created:
6 years, 9 months ago by blois
Modified:
6 years, 8 months ago
Reviewers:
vsm, sra, Jennifer Messerly, sra1
CC:
reviews_dartlang.org, ricow1, Jennifer Messerly, justinfagnani
Visibility:
Public.

Description

Adding a mechanism to 'upgrade' the Dart type of elements This is to allow custom Dart wrappers for Polymer elements to provide improved JS custom element integration. The Dartium portion of this is at https://codereview.chromium.org/188083002 BUG= R=jmesserly@google.com, sra@google.com Committed: https://code.google.com/p/dart/source/detail?r=34615

Patch Set 1 : #

Total comments: 12

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+556 lines, -162 lines) Patch
M sdk/lib/html/dart2js/html_dart2js.dart View 4 chunks +80 lines, -27 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 6 chunks +117 lines, -69 lines 0 comments Download
A tests/html/custom/element_upgrade_test.dart View 1 1 chunk +132 lines, -0 lines 0 comments Download
A tests/html/custom/element_upgrade_test.html View 1 chunk +49 lines, -0 lines 0 comments Download
M tests/html/html.status View 1 chunk +1 line, -0 lines 0 comments Download
M tools/dom/src/dart2js_CustomElementSupport.dart View 2 chunks +58 lines, -1 line 1 comment Download
A tools/dom/src/dartium_CustomElementSupport.dart View 1 chunk +89 lines, -0 lines 0 comments Download
M tools/dom/src/native_DOMImplementation.dart View 2 chunks +3 lines, -39 lines 0 comments Download
M tools/dom/templates/html/dartium/html_dartium.darttemplate View 1 chunk +1 line, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate View 2 chunks +26 lines, -26 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
blois
6 years, 9 months ago (2014-03-05 22:17:19 UTC) #1
Jennifer Messerly
LGTM https://codereview.chromium.org/177113014/diff/20001/tests/html/custom/element_upgrade_test.dart File tests/html/custom/element_upgrade_test.dart (right): https://codereview.chromium.org/177113014/diff/20001/tests/html/custom/element_upgrade_test.dart#newcode22 tests/html/custom/element_upgrade_test.dart:22: _proxy = new js.JsObject.fromBrowserObject(this); I wonder if, eventually, ...
6 years, 9 months ago (2014-03-07 00:00:48 UTC) #2
sra1
lgtm
6 years, 9 months ago (2014-03-07 05:18:56 UTC) #3
blois
https://codereview.chromium.org/177113014/diff/20001/tests/html/custom/element_upgrade_test.dart File tests/html/custom/element_upgrade_test.dart (right): https://codereview.chromium.org/177113014/diff/20001/tests/html/custom/element_upgrade_test.dart#newcode86 tests/html/custom/element_upgrade_test.dart:86: test('cannot upgrade non-matching elements', () { On 2014/03/07 00:00:49, ...
6 years, 8 months ago (2014-04-01 19:52:21 UTC) #4
blois
Committed patchset #2 manually as r34615 (presubmit successful).
6 years, 8 months ago (2014-04-01 20:17:40 UTC) #5
Jennifer Messerly
6 years, 8 months ago (2014-04-04 01:56:50 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/177113014/diff/40001/tools/dom/src/dart2js_Cu...
File tools/dom/src/dart2js_CustomElementSupport.dart (right):

https://codereview.chromium.org/177113014/diff/40001/tools/dom/src/dart2js_Cu...
tools/dom/src/dart2js_CustomElementSupport.dart:180: throw new
ArgumentError('element is not subclass of $_nativeType');
I just noticed, this error message is different from the comment 2 lines up :)
... it should probably say 'element is not an instance of type $_nativeType'

Powered by Google App Engine
This is Rietveld 408576698