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

Unified Diff: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart

Issue 16638013: Adding annotations for native types of type Object or dynamic. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
diff --git a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
index ee98234579ad00979b9b4a21919b86f7cbef5fdf..9dd0d9a6f6a4810a54abfb6379801cd2095a1dc7 100644
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
@@ -171,10 +171,14 @@ class Cursor native "IDBCursor" {
@DomName('IDBCursor.primaryKey')
@DocsEditable
+ @_annotation_Creates_IDBKey
+ @_annotation_Returns_IDBKey
final Object primaryKey;
@DomName('IDBCursor.source')
@DocsEditable
+ @Creates('Null')
+ @Returns('ObjectStore|Index|Null')
final dynamic source;
@DomName('IDBCursor.advance')
@@ -291,6 +295,8 @@ class Database extends EventTarget native "IDBDatabase" {
@DomName('IDBDatabase.version')
@DocsEditable
+ @Creates('int|String|Null')
+ @Returns('int|String|Null')
final dynamic version;
@JSName('addEventListener')
@@ -588,6 +594,7 @@ class Index native "IDBIndex" {
@DomName('IDBIndex.keyPath')
@DocsEditable
+ @annotation_Creates_SerializedScriptValue
final dynamic keyPath;
@DomName('IDBIndex.multiEntry')
@@ -674,6 +681,7 @@ class KeyRange native "IDBKeyRange" {
@DomName('IDBKeyRange.lower')
@DocsEditable
+ @annotation_Creates_SerializedScriptValue
final Object lower;
@DomName('IDBKeyRange.lowerOpen')
@@ -682,6 +690,7 @@ class KeyRange native "IDBKeyRange" {
@DomName('IDBKeyRange.upper')
@DocsEditable
+ @annotation_Creates_SerializedScriptValue
final Object upper;
@DomName('IDBKeyRange.upperOpen')
@@ -862,6 +871,7 @@ class ObjectStore native "IDBObjectStore" {
@DomName('IDBObjectStore.keyPath')
@DocsEditable
+ @annotation_Creates_SerializedScriptValue
final dynamic keyPath;
@DomName('IDBObjectStore.name')
@@ -1249,10 +1259,14 @@ class VersionChangeEvent extends Event native "IDBVersionChangeEvent" {
@DomName('IDBVersionChangeEvent.newVersion')
@DocsEditable
+ @Creates('int|String|Null')
+ @Returns('int|String|Null')
final dynamic newVersion;
@DomName('IDBVersionChangeEvent.oldVersion')
@DocsEditable
+ @Creates('int|String|Null')
+ @Returns('int|String|Null')
final dynamic oldVersion;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file

Powered by Google App Engine
This is Rietveld 408576698