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

Unified Diff: sdk/lib/html/src/dart2js_IDBKeyRangeFactoryProvider.dart

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/src/dart2js_IDBKeyRangeFactoryProvider.dart
diff --git a/sdk/lib/html/src/dart2js_IDBKeyRangeFactoryProvider.dart b/sdk/lib/html/src/dart2js_IDBKeyRangeFactoryProvider.dart
deleted file mode 100644
index 83e19068688b006af4661b37392b463a210c01ff..0000000000000000000000000000000000000000
--- a/sdk/lib/html/src/dart2js_IDBKeyRangeFactoryProvider.dart
+++ /dev/null
@@ -1,51 +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.
-
-part of html;
-
-class _IDBKeyRangeFactoryProvider {
-
- static IDBKeyRange createIDBKeyRange_only(/*IDBKey*/ value) =>
- _only(_class(), _translateKey(value));
-
- static IDBKeyRange createIDBKeyRange_lowerBound(
- /*IDBKey*/ bound, [bool open = false]) =>
- _lowerBound(_class(), _translateKey(bound), open);
-
- static IDBKeyRange createIDBKeyRange_upperBound(
- /*IDBKey*/ bound, [bool open = false]) =>
- _upperBound(_class(), _translateKey(bound), open);
-
- static IDBKeyRange createIDBKeyRange_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() =>
- JS('var',
- '''window.webkitIDBKeyRange || window.mozIDBKeyRange ||
- window.msIDBKeyRange || window.IDBKeyRange''');
-
- static _translateKey(idbkey) => idbkey; // TODO: fixme.
-
- static IDBKeyRange _only(cls, value) =>
- JS('IDBKeyRange', '#.only(#)', cls, value);
-
- static IDBKeyRange _lowerBound(cls, bound, open) =>
- JS('IDBKeyRange', '#.lowerBound(#, #)', cls, bound, open);
-
- static IDBKeyRange _upperBound(cls, bound, open) =>
- JS('IDBKeyRange', '#.upperBound(#, #)', cls, bound, open);
-
- static IDBKeyRange _bound(cls, lower, upper, lowerOpen, upperOpen) =>
- JS('IDBKeyRange', '#.bound(#, #, #, #)',
- cls, lower, upper, lowerOpen, upperOpen);
-}

Powered by Google App Engine
This is Rietveld 408576698