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

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

Issue 12041090: Changed how Experimental annotation works. No longer is a constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 library indexed_db; 1 library 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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7 // for details. All rights reserved. Use of this source code is governed by a 7 // for details. All rights reserved. Use of this source code is governed by a
8 // BSD-style license that can be found in the LICENSE file. 8 // BSD-style license that can be found in the LICENSE file.
9 9
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 } 207 }
208 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 208 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
209 // for details. All rights reserved. Use of this source code is governed by a 209 // for details. All rights reserved. Use of this source code is governed by a
210 // BSD-style license that can be found in the LICENSE file. 210 // BSD-style license that can be found in the LICENSE file.
211 211
212 212
213 @DomName('IDBDatabase') 213 @DomName('IDBDatabase')
214 @SupportedBrowser(SupportedBrowser.CHROME) 214 @SupportedBrowser(SupportedBrowser.CHROME)
215 @SupportedBrowser(SupportedBrowser.FIREFOX, '15') 215 @SupportedBrowser(SupportedBrowser.FIREFOX, '15')
216 @SupportedBrowser(SupportedBrowser.IE, '10') 216 @SupportedBrowser(SupportedBrowser.IE, '10')
217 @Experimental() 217 @Experimental
218 class Database extends EventTarget native "*IDBDatabase" { 218 class Database extends EventTarget native "*IDBDatabase" {
219 219
220 Transaction transaction(storeName_OR_storeNames, String mode) { 220 Transaction transaction(storeName_OR_storeNames, String mode) {
221 if (mode != 'readonly' && mode != 'readwrite') { 221 if (mode != 'readonly' && mode != 'readwrite') {
222 throw new ArgumentError(mode); 222 throw new ArgumentError(mode);
223 } 223 }
224 224
225 // TODO(sra): Ensure storeName_OR_storeNames is a string or List<String>, 225 // TODO(sra): Ensure storeName_OR_storeNames is a string or List<String>,
226 // and copy to JavaScript array if necessary. 226 // and copy to JavaScript array if necessary.
227 227
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 } 335 }
336 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 336 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
337 // for details. All rights reserved. Use of this source code is governed by a 337 // for details. All rights reserved. Use of this source code is governed by a
338 // BSD-style license that can be found in the LICENSE file. 338 // BSD-style license that can be found in the LICENSE file.
339 339
340 340
341 @DomName('IDBFactory') 341 @DomName('IDBFactory')
342 @SupportedBrowser(SupportedBrowser.CHROME) 342 @SupportedBrowser(SupportedBrowser.CHROME)
343 @SupportedBrowser(SupportedBrowser.FIREFOX, '15') 343 @SupportedBrowser(SupportedBrowser.FIREFOX, '15')
344 @SupportedBrowser(SupportedBrowser.IE, '10') 344 @SupportedBrowser(SupportedBrowser.IE, '10')
345 @Experimental() 345 @Experimental
346 class IdbFactory native "*IDBFactory" { 346 class IdbFactory native "*IDBFactory" {
347 /** 347 /**
348 * Checks to see if Indexed DB is supported on the current platform. 348 * Checks to see if Indexed DB is supported on the current platform.
349 */ 349 */
350 static bool get supported { 350 static bool get supported {
351 return JS('bool', 351 return JS('bool',
352 '!!(window.indexedDB || ' 352 '!!(window.indexedDB || '
353 'window.webkitIndexedDB || ' 353 'window.webkitIndexedDB || '
354 'window.mozIndexedDB)'); 354 'window.mozIndexedDB)');
355 } 355 }
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 } 1266 }
1267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1268 // for details. All rights reserved. Use of this source code is governed by a 1268 // for details. All rights reserved. Use of this source code is governed by a
1269 // BSD-style license that can be found in the LICENSE file. 1269 // BSD-style license that can be found in the LICENSE file.
1270 1270
1271 1271
1272 @DocsEditable 1272 @DocsEditable
1273 @DomName('IDBAny') 1273 @DomName('IDBAny')
1274 class _Any native "*IDBAny" { 1274 class _Any native "*IDBAny" {
1275 } 1275 }
OLDNEW
« no previous file with comments | « sdk/lib/html/html_common/metadata.dart ('k') | sdk/lib/indexed_db/dartium/indexed_db_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698