Index: tools/dom/scripts/dartmetadata.py |
diff --git a/tools/dom/scripts/dartmetadata.py b/tools/dom/scripts/dartmetadata.py |
index f278864aa3b231e238dfa1e5d746d1738b35316d..7ec8331df2b54288efb4b619dbdb212c4d8801d2 100644 |
--- a/tools/dom/scripts/dartmetadata.py |
+++ b/tools/dom/scripts/dartmetadata.py |
@@ -158,6 +158,21 @@ _dart2js_annotations = monitored.Dict('dartmetadata._dart2js_annotations', { |
"@Returns('EventTarget|=Object')", |
], |
+ # TODO(sra): Investigate how ExtendableMessageEvent.data is different from |
+ # MessageEvent.data. It might be necessary to put in a method to translate |
+ # the JavaScript wire type into a Dart type. |
Jacob
2017/05/12 02:41:36
Yeah this is most likely busted as is.
|
+ 'ExtendableMessageEvent.data': [ |
+ "@annotation_Creates_SerializedScriptValue", |
+ "@annotation_Returns_SerializedScriptValue", |
+ ], |
+ |
+ # TODO(sra): We could determine the following by parsing the compound IDL |
+ # type. |
+ 'ExtendableMessageEvent.source': [ |
+ "@Creates('Client|_ServiceWorker|MessagePort')", |
+ "@Returns('Client|_ServiceWorker|MessagePort|Null')", |
+ ], |
+ |
'File.lastModifiedDate': [ |
"@Creates('Null')", # JS date object. |
], |