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

Unified Diff: sdk/lib/html/scripts/generator.py

Issue 11419300: Dartifying dart:html type names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporating review feedback. Created 8 years 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: sdk/lib/html/scripts/generator.py
diff --git a/sdk/lib/html/scripts/generator.py b/sdk/lib/html/scripts/generator.py
index 1ba1bcd576fee9b3c010633cb448b1bcde7989b2..3d34d019387ad574e67c23e8891446f968e715c3 100644
--- a/sdk/lib/html/scripts/generator.py
+++ b/sdk/lib/html/scripts/generator.py
@@ -631,20 +631,20 @@ dart2js_annotations = {
# IDBRequest.
'IDBRequest.source': "@Creates('Null')",
- 'IDBFactory.open': "@Creates('IDBDatabase')",
+ 'IDBFactory.open': "@Creates('Database')",
'IDBObjectStore.put': "@_annotation_Creates_IDBKey",
'IDBObjectStore.add': "@_annotation_Creates_IDBKey",
'IDBObjectStore.get': "@annotation_Creates_SerializedScriptValue",
- 'IDBObjectStore.openCursor': "@Creates('IDBCursor')",
+ 'IDBObjectStore.openCursor': "@Creates('Cursor')",
'IDBIndex.get': "@annotation_Creates_SerializedScriptValue",
'IDBIndex.getKey':
"@annotation_Creates_SerializedScriptValue "
# The source is the object store behind the index.
- "@Creates('IDBObjectStore')",
- 'IDBIndex.openCursor': "@Creates('IDBCursor')",
- 'IDBIndex.openKeyCursor': "@Creates('IDBCursor')",
+ "@Creates('ObjectStore')",
+ 'IDBIndex.openCursor': "@Creates('Cursor')",
+ 'IDBIndex.openKeyCursor': "@Creates('Cursor')",
'IDBCursorWithValue.value':
'@annotation_Creates_SerializedScriptValue '
@@ -652,10 +652,10 @@ dart2js_annotations = {
'IDBCursor.key': "@_annotation_Creates_IDBKey @_annotation_Returns_IDBKey",
- '+IDBRequest': "@Returns('IDBRequest') @Creates('IDBRequest')",
+ '+IDBRequest': "@Returns('Request') @Creates('Request')",
- '+IDBOpenDBRequest': "@Returns('IDBRequest') @Creates('IDBRequest')",
- '+IDBVersionChangeRequest': "@Returns('IDBRequest') @Creates('IDBRequest')",
+ '+IDBOpenDBRequest': "@Returns('Request') @Creates('Request')",
+ '+IDBVersionChangeRequest': "@Returns('Request') @Creates('Request')",
'MessageEvent.ports': "@Creates('=List')",

Powered by Google App Engine
This is Rietveld 408576698