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

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

Issue 27033009: Making all base class DOM types throw as well (to prevent a default constructor for DOM types that … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/indexed_db/dartium/indexed_db_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 72a57d8a7f61a0a8dc5160705c07823e40fa4ec5..5b2948dfec31367eac7ea807fb43b75fa684ea90 100644
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
@@ -240,7 +240,9 @@ class Cursor extends Interceptor native "IDBCursor" {
JS('void', '#.continue(#)', this, key);
}
}
-
+ // To suppress missing implicit constructor warnings.
+ factory Cursor._() { throw new UnsupportedError("Not supported"); }
+
@DomName('IDBCursor.direction')
@DocsEditable()
final String direction;
@@ -552,6 +554,8 @@ class IdbFactory extends Interceptor native "IDBFactory" {
'!!(#.getDatabaseNames || #.webkitGetDatabaseNames)', this, this);
}
+ // To suppress missing implicit constructor warnings.
+ factory IdbFactory._() { throw new UnsupportedError("Not supported"); }
@DomName('IDBFactory.cmp')
@DocsEditable()
@@ -692,7 +696,9 @@ class Index extends Interceptor native "IDBIndex" {
return ObjectStore._cursorStreamFromResult(request, autoAdvance);
}
-
+ // To suppress missing implicit constructor warnings.
+ factory Index._() { throw new UnsupportedError("Not supported"); }
+
@DomName('IDBIndex.keyPath')
@DocsEditable()
@annotation_Creates_SerializedScriptValue
@@ -779,6 +785,8 @@ class KeyRange extends Interceptor native "IDBKeyRange" {
_KeyRangeFactoryProvider.createKeyRange_bound(
lower, upper, lowerOpen, upperOpen);
+ // To suppress missing implicit constructor warnings.
+ factory KeyRange._() { throw new UnsupportedError("Not supported"); }
@DomName('IDBKeyRange.lower')
@DocsEditable()
@@ -954,6 +962,8 @@ class ObjectStore extends Interceptor native "IDBObjectStore" {
return _createIndex(name, keyPath, options);
}
+ // To suppress missing implicit constructor warnings.
+ factory ObjectStore._() { throw new UnsupportedError("Not supported"); }
@DomName('IDBObjectStore.autoIncrement')
@DocsEditable()
@@ -1343,4 +1353,6 @@ class VersionChangeEvent extends Event native "IDBVersionChangeEvent" {
@DomName('IDBAny')
@deprecated // nonstandard
abstract class _IDBAny extends Interceptor native "IDBAny" {
+ // To suppress missing implicit constructor warnings.
+ factory _IDBAny._() { throw new UnsupportedError("Not supported"); }
}
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/indexed_db/dartium/indexed_db_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698