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

Unified Diff: lib/dom/src/frog_IDBKeyRangeFactoryProvider.dart

Issue 10146002: Revert "Revert "Revert "Constructors for IDBKeyRange""" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « lib/dom/src/dummy_FactoryProviders.dart ('k') | lib/dom/src/native_FactoryProviders.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/src/frog_IDBKeyRangeFactoryProvider.dart
diff --git a/lib/dom/src/frog_IDBKeyRangeFactoryProvider.dart b/lib/dom/src/frog_IDBKeyRangeFactoryProvider.dart
deleted file mode 100644
index dfe16304c711f13f050b8aa7e3405b64475d74e8..0000000000000000000000000000000000000000
--- a/lib/dom/src/frog_IDBKeyRangeFactoryProvider.dart
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-class _IDBKeyRangeFactoryProvider {
-
- factory IDBKeyRange.only(/*IDBKey*/ value) =>
- _only(_class(), _translateKey(value));
-
- factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) =>
- _lowerBound(_class(), _translateKey(bound), open);
-
- factory IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open = false]) =>
- _upperBound(_class(), _translateKey(bound), open);
-
- factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper,
- [bool lowerOpen = false, bool upperOpen = false]) =>
- _bound(_class(), _translateKey(lower), _translateKey(upper),
- lowerOpen, upperOpen);
-
- static var _cachedClass;
-
- static _class() {
- if (_cachedClass != null) return _cachedClass;
- return _cachedClass = _uncachedClass();
- }
-
- static _uncachedClass() native '''
- return window.webkitIDBKeyRange || window.mozIDBKeyRange ||
- window.msIDBKeyRange || window.IDBKeyRange;
- ''';
-
- static _translateKey(idbkey) => idbkey; // TODO: fixme.
-
- static _IDBKeyRangeJs _only(cls, value) native
- '''return cls.only(value);''';
-
- static _IDBKeyRangeJs _lowerBound(cls, bound, open) native
- '''return cls.lowerBound(bound, open);''';
-
- static _IDBKeyRangeJs _upperBound(cls, bound, open) native
- '''return cls.upperBound(bound, open);''';
-
- static _IDBKeyRangeJs _bound(cls, lower, upper, lowerOpen, upperOpen) native
- '''return cls.bound(lower, upper, lowerOpen, upperOpen);''';
-
-}
« no previous file with comments | « lib/dom/src/dummy_FactoryProviders.dart ('k') | lib/dom/src/native_FactoryProviders.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698