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

Side by Side Diff: lib/html/src/dart2js_IDBKeyRangeFactoryProvider.dart

Issue 10915245: Removing interfaces from dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Further fixes to dartium. Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class _IDBKeyRangeFactoryProvider { 5 class _IDBKeyRangeFactoryProvider {
6 6
7 factory IDBKeyRange.only(/*IDBKey*/ value) => 7 static IDBKeyRange createIDBKeyRange_only(/*IDBKey*/ value) =>
8 _only(_class(), _translateKey(value)); 8 _only(_class(), _translateKey(value));
9 9
10 factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) => 10 static IDBKeyRange createIDBKeyRange_lowerBound(
11 /*IDBKey*/ bound, [bool open = false]) =>
11 _lowerBound(_class(), _translateKey(bound), open); 12 _lowerBound(_class(), _translateKey(bound), open);
12 13
13 factory IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open = false]) => 14 static IDBKeyRange createIDBKeyRange_upperBound(
15 /*IDBKey*/ bound, [bool open = false]) =>
14 _upperBound(_class(), _translateKey(bound), open); 16 _upperBound(_class(), _translateKey(bound), open);
15 17
16 factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper, 18 static IDBKeyRange createIDBKeyRange_bound(/*IDBKey*/ lower, /*IDBKey*/ upper,
17 [bool lowerOpen = false, bool upperOpen = false]) => 19 [bool lowerOpen = false, bool upperOpen = false]) =>
18 _bound(_class(), _translateKey(lower), _translateKey(upper), 20 _bound(_class(), _translateKey(lower), _translateKey(upper),
19 lowerOpen, upperOpen); 21 lowerOpen, upperOpen);
20 22
21 static var _cachedClass; 23 static var _cachedClass;
22 24
23 static _class() { 25 static _class() {
24 if (_cachedClass != null) return _cachedClass; 26 if (_cachedClass != null) return _cachedClass;
25 return _cachedClass = _uncachedClass(); 27 return _cachedClass = _uncachedClass();
26 } 28 }
27 29
(...skipping 10 matching lines...) Expand all
38 static _IDBKeyRangeImpl _lowerBound(cls, bound, open) native 40 static _IDBKeyRangeImpl _lowerBound(cls, bound, open) native
39 '''return cls.lowerBound(bound, open);'''; 41 '''return cls.lowerBound(bound, open);''';
40 42
41 static _IDBKeyRangeImpl _upperBound(cls, bound, open) native 43 static _IDBKeyRangeImpl _upperBound(cls, bound, open) native
42 '''return cls.upperBound(bound, open);'''; 44 '''return cls.upperBound(bound, open);''';
43 45
44 static _IDBKeyRangeImpl _bound(cls, lower, upper, lowerOpen, upperOpen) native 46 static _IDBKeyRangeImpl _bound(cls, lower, upper, lowerOpen, upperOpen) native
45 '''return cls.bound(lower, upper, lowerOpen, upperOpen);'''; 47 '''return cls.bound(lower, upper, lowerOpen, upperOpen);''';
46 48
47 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698