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

Unified Diff: sdk/lib/indexed_db/dartium/indexed_db_dartium.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/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
diff --git a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
index 9a14a83e46ec2ec34d14230d5d4b39b8f6d5f786..34dcf6bb979a12ca536deda4020d0bd2c26bc7e1 100644
--- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
+++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
@@ -59,7 +59,9 @@ class Cursor extends NativeFieldWrapperClass1 {
}
}
-
+ // To suppress missing implicit constructor warnings.
+ factory Cursor._() { throw new UnsupportedError("Not supported"); }
+
@DomName('IDBCursor.direction')
@DocsEditable()
String get direction native "IDBCursor_direction_Getter";
@@ -339,6 +341,8 @@ class IdbFactory extends NativeFieldWrapperClass1 {
return true;
}
+ // To suppress missing implicit constructor warnings.
+ factory IdbFactory._() { throw new UnsupportedError("Not supported"); }
@DomName('IDBFactory.cmp')
@DocsEditable()
@@ -477,7 +481,9 @@ class Index extends NativeFieldWrapperClass1 {
return ObjectStore._cursorStreamFromResult(request, autoAdvance);
}
-
+ // To suppress missing implicit constructor warnings.
+ factory Index._() { throw new UnsupportedError("Not supported"); }
+
@DomName('IDBIndex.keyPath')
@DocsEditable()
dynamic get keyPath native "IDBIndex_keyPath_Getter";
@@ -545,6 +551,8 @@ class KeyRange extends NativeFieldWrapperClass1 {
_KeyRangeFactoryProvider.createKeyRange_bound(
lower, upper, lowerOpen, upperOpen);
+ // To suppress missing implicit constructor warnings.
+ factory KeyRange._() { throw new UnsupportedError("Not supported"); }
@DomName('IDBKeyRange.lower')
@DocsEditable()
@@ -718,6 +726,8 @@ class ObjectStore extends NativeFieldWrapperClass1 {
return _createIndex(name, keyPath, options);
}
+ // To suppress missing implicit constructor warnings.
+ factory ObjectStore._() { throw new UnsupportedError("Not supported"); }
@DomName('IDBObjectStore.autoIncrement')
@DocsEditable()
@@ -1044,5 +1054,7 @@ class VersionChangeEvent extends Event {
@DomName('IDBAny')
@deprecated // nonstandard
abstract class _IDBAny extends NativeFieldWrapperClass1 {
+ // To suppress missing implicit constructor warnings.
+ factory _IDBAny._() { throw new UnsupportedError("Not supported"); }
}
« no previous file with comments | « sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698