OLD | NEW |
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 // DO NOT EDIT | 5 // DO NOT EDIT |
6 // Auto-generated dart:indexed_db library. | 6 // Auto-generated dart:indexed_db library. |
7 | 7 |
8 /** | 8 /** |
9 * A client-side key-value store with support for indexes. | 9 * A client-side key-value store with support for indexes. |
10 * | 10 * |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 * | 62 * |
63 * ## Other resources | 63 * ## Other resources |
64 * | 64 * |
65 * Other options for client-side data storage include: | 65 * Other options for client-side data storage include: |
66 * | 66 * |
67 * * [Window.localStorage]—a | 67 * * [Window.localStorage]—a |
68 * basic mechanism that stores data as a [Map], | 68 * basic mechanism that stores data as a [Map], |
69 * and where both the keys and the values are strings. | 69 * and where both the keys and the values are strings. |
70 * | 70 * |
71 * * [dart:web_sql]—a database that can be queried with SQL. | 71 * * [dart:web_sql]—a database that can be queried with SQL. |
72 * | 72 * |
73 * For a tutorial about using the indexed_db library with Dart, | 73 * For a tutorial about using the indexed_db library with Dart, |
74 * check out | 74 * check out |
75 * [Use IndexedDB](http://www.dartlang.org/docs/tutorials/indexeddb/). | 75 * [Use IndexedDB](http://www.dartlang.org/docs/tutorials/indexeddb/). |
76 * | 76 * |
77 * [IndexedDB reference](http://docs.webplatform.org/wiki/apis/indexeddb) | 77 * [IndexedDB reference](http://docs.webplatform.org/wiki/apis/indexeddb) |
78 * provides wiki-style docs about indexedDB | 78 * provides wiki-style docs about indexedDB |
79 */ | 79 */ |
80 library dart.dom.indexed_db; | 80 library dart.dom.indexed_db; |
81 | 81 |
82 import 'dart:async'; | 82 import 'dart:async'; |
83 import 'dart:html'; | 83 import 'dart:html'; |
84 import 'dart:html_common'; | 84 import 'dart:html_common'; |
85 import 'dart:nativewrappers'; | 85 import 'dart:nativewrappers'; |
86 import 'dart:_blink' as _blink; | 86 import 'dart:_blink' as _blink; |
87 import 'dart:js' as js; | |
88 | 87 |
89 $!GENERATED_DART_FILES | 88 $!GENERATED_DART_FILES |
90 | 89 |
91 class _KeyRangeFactoryProvider { | 90 class _KeyRangeFactoryProvider { |
92 | 91 |
93 static KeyRange createKeyRange_only(/*IDBKey*/ value) => | 92 static KeyRange createKeyRange_only(/*IDBKey*/ value) => |
94 KeyRange.only_(value); | 93 KeyRange.only_(value); |
95 | 94 |
96 static KeyRange createKeyRange_lowerBound( | 95 static KeyRange createKeyRange_lowerBound( |
97 /*IDBKey*/ bound, [bool open = false]) => | 96 /*IDBKey*/ bound, [bool open = false]) => |
(...skipping 12 matching lines...) Expand all Loading... |
110 final indexed_dbBlinkMap = { | 109 final indexed_dbBlinkMap = { |
111 $!TYPE_MAP | 110 $!TYPE_MAP |
112 }; | 111 }; |
113 | 112 |
114 $if JSINTEROP | 113 $if JSINTEROP |
115 // FIXME: Can we make this private? | 114 // FIXME: Can we make this private? |
116 final indexed_dbBlinkFunctionMap = { | 115 final indexed_dbBlinkFunctionMap = { |
117 $!TYPE_FUNCTION_MAP | 116 $!TYPE_FUNCTION_MAP |
118 }; | 117 }; |
119 $endif | 118 $endif |
OLD | NEW |