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

Unified Diff: tools/dom/scripts/generator.py

Issue 14732003: Implement Model-Driven-Views spec for Dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: trying upload again Created 7 years, 8 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
Index: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index 4ace8f656c19db53a816da25e1c41fb0f741842d..182ae2249aca0a33da678ee0abac5541e5079744 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -579,6 +579,13 @@ dart2js_annotations = monitored.Dict('generator.dart2js_annotations', {
"@Returns('Window|=Object')",
],
+ # Starting from a <template> element in JavaScript, this is null:
+ # template.content.ownerDocument.defaultView
+ 'Document.window': [
+ "@Creates('Window|=Object|Null')",
+ "@Returns('Window|=Object|Null')",
+ ],
+
'DOMWindow.openDatabase': [
"@Creates('SqlDatabase')",
],

Powered by Google App Engine
This is Rietveld 408576698