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

Unified Diff: tools/dom/templates/html/impl/impl_MessageEvent.darttemplate

Issue 1725083002: Add MessageEvent.data template for dart2js, remove duplicate claims on ClipboardEvent and PointerEv… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_MessageEvent.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_MessageEvent.darttemplate b/tools/dom/templates/html/impl/impl_MessageEvent.darttemplate
index 1b3280d287707f799102e3dfadde9311934e40b5..fec434127b637751cd4056633f02483ec980c4fe 100644
--- a/tools/dom/templates/html/impl/impl_MessageEvent.darttemplate
+++ b/tools/dom/templates/html/impl/impl_MessageEvent.darttemplate
@@ -36,6 +36,22 @@ $if DARTIUM
@DocsEditable()
dynamic get data => convertNativeToDart_SerializedScriptValue(
_blink.BlinkMessageEvent.instance.data_Getter_(unwrap_jso(this)));
+
+$else
+ // TODO(alanknight): This really should be generated by the
+ // _OutputConversion in the systemnative.py script, but that doesn't
+ // use those conversions right now, so do this as a one-off.
+ @DomName('MessageEvent.data')
+ @DocsEditable()
+ dynamic get data => convertNativeToDart_SerializedScriptValue(this._get_data);
+
+ @JSName('data')
+ @DomName('MessageEvent.data')
+ @DocsEditable()
+ @Creates('Null')
+ @Returns('Object|Null')
+ final dynamic _get_data;
+
$endif
$!MEMBERS
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698