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

Side by Side Diff: lib/html/doc/interface/Storage.dartdoc

Issue 11090010: Remove explicit interface versions of dartdoc files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 /// @domName Storage 5 /// @domName Storage
6 /** 6 /**
7 * The type used by the 7 * The type used by the
8 * [Window.localStorage] and [Window.sessionStorage] properties. 8 * [Window.localStorage] and [Window.sessionStorage] properties.
9 * Storage is implemented as a Map<String, String>. 9 * Storage is implemented as a Map<String, String>.
10 * 10 *
(...skipping 11 matching lines...) Expand all
22 * window.localStorage.clear(); 22 * window.localStorage.clear();
23 * assert(window.localStorage.length == 0); 23 * assert(window.localStorage.length == 0);
24 * 24 *
25 * For more examples of using this API, see 25 * For more examples of using this API, see
26 * [localstorage_test.dart](http://code.google.com/p/dart/source/browse/branches /bleeding_edge/dart/tests/html/localstorage_test.dart). 26 * [localstorage_test.dart](http://code.google.com/p/dart/source/browse/branches /bleeding_edge/dart/tests/html/localstorage_test.dart).
27 * For details on using the Map API, see the 27 * For details on using the Map API, see the
28 * [Maps](http://www.dartlang.org/docs/library-tour/#maps-aka-dictionaries-or-ha shes) 28 * [Maps](http://www.dartlang.org/docs/library-tour/#maps-aka-dictionaries-or-ha shes)
29 * section of the library tour. 29 * section of the library tour.
30 * 30 *
31 */ 31 */
32 interface Storage extends Map<String, String> { 32 abstract class Storage implements Map<String, String> {
33 33
34 /** @domName Storage.length */ 34 /** @domName Storage.length */
35 final int $dom_length; 35 abstract int get $dom_length;
36 36
37 /** @domName Storage.clear */ 37 /** @domName Storage.clear */
38 void $dom_clear(); 38 void $dom_clear();
39 39
40 /** @domName Storage.getItem */ 40 /** @domName Storage.getItem */
41 String $dom_getItem(String key); 41 String $dom_getItem(String key);
42 42
43 /** @domName Storage.key */ 43 /** @domName Storage.key */
44 String $dom_key(int index); 44 String $dom_key(int index);
45 45
46 /** @domName Storage.removeItem */ 46 /** @domName Storage.removeItem */
47 void $dom_removeItem(String key); 47 void $dom_removeItem(String key);
48 48
49 /** @domName Storage.setItem */ 49 /** @domName Storage.setItem */
50 void $dom_setItem(String key, String data); 50 void $dom_setItem(String key, String data);
51 51
52 } 52 }
OLDNEW
« no previous file with comments | « lib/html/doc/interface/SpeechRecognitionResultList.dartdoc ('k') | lib/html/doc/interface/StorageEvent.dartdoc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698