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

Unified Diff: lib/html/frog/html_frog.dart

Issue 10378003: Revert "Add IDBKeyRange to dart:html, port two indexeddb tests" (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:
Download patch
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | lib/html/src/dartium_FactoryProviders.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/frog/html_frog.dart
diff --git a/lib/html/frog/html_frog.dart b/lib/html/frog/html_frog.dart
index d5ece654d4b0699b29fa27defc2780d0714fbd00..76dc2bf7fffd365ea2c737e8b7ddbab9cd40ead7 100644
--- a/lib/html/frog/html_frog.dart
+++ b/lib/html/frog/html_frog.dart
@@ -24334,29 +24334,7 @@ interface IDBKey {
// WARNING: Do not edit - generated code.
/// @domName IDBKeyRange
-interface IDBKeyRange default _IDBKeyRangeFactoryProvider {
-
- /**
- * @domName IDBKeyRange.only
- */
- IDBKeyRange.only(/*IDBKey*/ value);
-
- /**
- * @domName IDBKeyRange.lowerBound
- */
- IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open]);
-
- /**
- * @domName IDBKeyRange.upperBound
- */
- IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open]);
-
- /**
- * @domName IDBKeyRange.bound
- */
- IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper,
- [bool lowerOpen, bool upperOpen]);
-
+interface IDBKeyRange {
/** @domName IDBKeyRange.lower */
final Dynamic lower;
@@ -36249,53 +36227,6 @@ class _TextFactoryProvider {
// 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 _IDBKeyRangeImpl _only(cls, value) native
- '''return cls.only(value);''';
-
- static _IDBKeyRangeImpl _lowerBound(cls, bound, open) native
- '''return cls.lowerBound(bound, open);''';
-
- static _IDBKeyRangeImpl _upperBound(cls, bound, open) native
- '''return cls.upperBound(bound, open);''';
-
- static _IDBKeyRangeImpl _bound(cls, lower, upper, lowerOpen, upperOpen) native
- '''return cls.bound(lower, upper, lowerOpen, upperOpen);''';
-
-}
-// 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 _TypedArrayFactoryProvider {
factory Float32Array(int length) => _F32(length);
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | lib/html/src/dartium_FactoryProviders.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698