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

Side by Side Diff: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart

Issue 23681003: added library-level description for dart:indexed_db (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 /**
2 * A client-side storage mechanism with efficient data retrieval and search.
sethladd 2013/08/28 14:41:54 How about being more explicit that this is a key-v
mem 2013/08/29 08:07:07 Done.
3 *
4 * The classes in this library provide an interface
5 * to the browser's indexed database, if it has one.
sethladd 2013/08/28 14:41:54 Can you define an indexed database here or close t
mem 2013/08/29 08:07:07 Done.
6 * To use this library in your code:
7 *
8 * import 'dart:indexed_db';
9 *
10 * A web app can determine if the browser has an
11 * indexed database by using the `supported` property from
12 * the [IdbFactory] class:
13 *
14 * if (IdbFactory.supported)
15 * // Use indexeddb.
16 * else
17 * // Find an alternative.
18 *
19 * Open an indexed database using the top-level [Window] object for the app.
20 * For example:
21 *
22 * Future open() {
23 * return window.indexedDB.open('myIndexedDB',
24 * version: 1,
25 * onUpgradeNeeded: /* Initalize the database. */ )
26 * .then( /* Load data from the database. */ );
27 * }
28 *
29 * ## Other resources
30 *
31 * For a tutorial about using this library,
32 * check out
33 * [Use IndexedDB](https://www.dartlang.org/docs/tutorials/indexeddb/).
sethladd 2013/08/28 14:41:54 Also, let's link to http://caniuse.com/#feat=index
mem 2013/08/29 08:07:07 Done.
34 */
1 library dart.dom.indexed_db; 35 library dart.dom.indexed_db;
2 36
3 import 'dart:async'; 37 import 'dart:async';
4 import 'dart:html'; 38 import 'dart:html';
5 import 'dart:html_common'; 39 import 'dart:html_common';
6 import 'dart:typed_data'; 40 import 'dart:typed_data';
7 import 'dart:_js_helper' show Creates, Returns, JSName, Null; 41 import 'dart:_js_helper' show Creates, Returns, JSName, Null;
8 import 'dart:_foreign_helper' show JS; 42 import 'dart:_foreign_helper' show JS;
9 import 'dart:_interceptors' show Interceptor, JSExtendableArray; 43 import 'dart:_interceptors' show Interceptor, JSExtendableArray;
10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 44 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1303 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1270 // for details. All rights reserved. Use of this source code is governed by a 1304 // for details. All rights reserved. Use of this source code is governed by a
1271 // BSD-style license that can be found in the LICENSE file. 1305 // BSD-style license that can be found in the LICENSE file.
1272 1306
1273 1307
1274 @DocsEditable() 1308 @DocsEditable()
1275 @DomName('IDBAny') 1309 @DomName('IDBAny')
1276 @deprecated // nonstandard 1310 @deprecated // nonstandard
1277 abstract class _IDBAny extends Interceptor native "IDBAny" { 1311 abstract class _IDBAny extends Interceptor native "IDBAny" {
1278 } 1312 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698