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

Side by Side Diff: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart

Issue 300923003: Modify blink type map to finalize lazily (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regenerate / merge Created 6 years, 6 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
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library dart.dom.indexed_db; 1 library dart.dom.indexed_db;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:html'; 4 import 'dart:html';
5 import 'dart:html_common'; 5 import 'dart:html_common';
6 import 'dart:nativewrappers'; 6 import 'dart:nativewrappers';
7 import 'dart:_blink' as _blink; 7 import 'dart:_blink' as _blink;
8 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9 // for details. All rights reserved. Use of this source code is governed by a 9 // for details. All rights reserved. Use of this source code is governed by a
10 // BSD-style license that can be found in the LICENSE file. 10 // BSD-style license that can be found in the LICENSE file.
(...skipping 17 matching lines...) Expand all
28 static KeyRange createKeyRange_upperBound( 28 static KeyRange createKeyRange_upperBound(
29 /*IDBKey*/ bound, [bool open = false]) => 29 /*IDBKey*/ bound, [bool open = false]) =>
30 KeyRange.upperBound_(bound, open); 30 KeyRange.upperBound_(bound, open);
31 31
32 static KeyRange createKeyRange_bound( 32 static KeyRange createKeyRange_bound(
33 /*IDBKey*/ lower, /*IDBKey*/ upper, 33 /*IDBKey*/ lower, /*IDBKey*/ upper,
34 [bool lowerOpen = false, bool upperOpen = false]) => 34 [bool lowerOpen = false, bool upperOpen = false]) =>
35 KeyRange.bound_(lower, upper, lowerOpen, upperOpen); 35 KeyRange.bound_(lower, upper, lowerOpen, upperOpen);
36 } 36 }
37 // FIXME: Can we make this private? 37 // FIXME: Can we make this private?
38 const indexed_dbBlinkMap = const { 38 final indexed_dbBlinkMap = {
39 'IDBCursor': Cursor, 39 'IDBCursor': () => Cursor,
40 'IDBCursorWithValue': CursorWithValue, 40 'IDBCursorWithValue': () => CursorWithValue,
41 'IDBDatabase': Database, 41 'IDBDatabase': () => Database,
42 'IDBFactory': IdbFactory, 42 'IDBFactory': () => IdbFactory,
43 'IDBIndex': Index, 43 'IDBIndex': () => Index,
44 'IDBKeyRange': KeyRange, 44 'IDBKeyRange': () => KeyRange,
45 'IDBObjectStore': ObjectStore, 45 'IDBObjectStore': () => ObjectStore,
46 'IDBOpenDBRequest': OpenDBRequest, 46 'IDBOpenDBRequest': () => OpenDBRequest,
47 'IDBRequest': Request, 47 'IDBRequest': () => Request,
48 'IDBTransaction': Transaction, 48 'IDBTransaction': () => Transaction,
49 'IDBVersionChangeEvent': VersionChangeEvent, 49 'IDBVersionChangeEvent': () => VersionChangeEvent,
50 50
51 }; 51 };
52 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 52 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
53 // for details. All rights reserved. Use of this source code is governed by a 53 // for details. All rights reserved. Use of this source code is governed by a
54 // BSD-style license that can be found in the LICENSE file. 54 // BSD-style license that can be found in the LICENSE file.
55 55
56 56
57 @DomName('IDBCursor') 57 @DomName('IDBCursor')
58 @Unstable() 58 @Unstable()
59 class Cursor extends NativeFieldWrapperClass2 { 59 class Cursor extends NativeFieldWrapperClass2 {
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 1073
1074 @DomName('IDBVersionChangeEvent.newVersion') 1074 @DomName('IDBVersionChangeEvent.newVersion')
1075 @DocsEditable() 1075 @DocsEditable()
1076 Object get newVersion => _blink.BlinkIDBVersionChangeEvent.$newVersion_Getter( this); 1076 Object get newVersion => _blink.BlinkIDBVersionChangeEvent.$newVersion_Getter( this);
1077 1077
1078 @DomName('IDBVersionChangeEvent.oldVersion') 1078 @DomName('IDBVersionChangeEvent.oldVersion')
1079 @DocsEditable() 1079 @DocsEditable()
1080 Object get oldVersion => _blink.BlinkIDBVersionChangeEvent.$oldVersion_Getter( this); 1080 Object get oldVersion => _blink.BlinkIDBVersionChangeEvent.$oldVersion_Getter( this);
1081 1081
1082 } 1082 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698