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

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

Issue 284863002: Add type maps from blink name to html name (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use implementation name Created 6 years, 7 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 16 matching lines...) Expand all
27 27
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?
38 const indexed_dbBlinkMap = const {
39 'IDBCursor': Cursor,
40 'IDBCursorWithValue': CursorWithValue,
41 'IDBDatabase': Database,
42 'IDBFactory': IdbFactory,
43 'IDBIndex': Index,
44 'IDBKeyRange': KeyRange,
45 'IDBObjectStore': ObjectStore,
46 'IDBOpenDBRequest': OpenDBRequest,
47 'IDBRequest': Request,
48 'IDBTransaction': Transaction,
49 'IDBVersionChangeEvent': VersionChangeEvent,
50
51 };
37 // 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
38 // 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
39 // BSD-style license that can be found in the LICENSE file. 54 // BSD-style license that can be found in the LICENSE file.
40 55
41 56
42 @DomName('IDBCursor') 57 @DomName('IDBCursor')
43 @Unstable() 58 @Unstable()
44 class Cursor extends NativeFieldWrapperClass2 { 59 class Cursor extends NativeFieldWrapperClass2 {
45 @DomName('IDBCursor.delete') 60 @DomName('IDBCursor.delete')
46 Future delete() { 61 Future delete() {
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 1109
1095 @DomName('IDBVersionChangeEvent.newVersion') 1110 @DomName('IDBVersionChangeEvent.newVersion')
1096 @DocsEditable() 1111 @DocsEditable()
1097 Object get newVersion => _blink.Native_IDBVersionChangeEvent_newVersion_Getter (this); 1112 Object get newVersion => _blink.Native_IDBVersionChangeEvent_newVersion_Getter (this);
1098 1113
1099 @DomName('IDBVersionChangeEvent.oldVersion') 1114 @DomName('IDBVersionChangeEvent.oldVersion')
1100 @DocsEditable() 1115 @DocsEditable()
1101 Object get oldVersion => _blink.Native_IDBVersionChangeEvent_oldVersion_Getter (this); 1116 Object get oldVersion => _blink.Native_IDBVersionChangeEvent_oldVersion_Getter (this);
1102 1117
1103 } 1118 }
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