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

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

Issue 12320101: Fixing Indexed DB supported check. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « no previous file | tests/html/html.status » ('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:_js_helper' show Creates, Returns, JSName, Null; 6 import 'dart:_js_helper' show Creates, Returns, JSName, Null;
7 import 'dart:_foreign_helper' show JS; 7 import 'dart:_foreign_helper' show JS;
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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 return _completeRequest(request); 415 return _completeRequest(request);
416 } catch (e, stacktrace) { 416 } catch (e, stacktrace) {
417 return new Future.immediateError(e, stacktrace); 417 return new Future.immediateError(e, stacktrace);
418 } 418 }
419 } 419 }
420 420
421 /** 421 /**
422 * Checks to see if getDatabaseNames is supported by the current platform. 422 * Checks to see if getDatabaseNames is supported by the current platform.
423 */ 423 */
424 bool get supportsDatabaseNames { 424 bool get supportsDatabaseNames {
425 return JS('bool', '!!(#.getDatabaseNames || #.webkitGetDatabaseNames)', 425 return supported && JS('bool',
426 this, this); 426 '!!(#.getDatabaseNames || #.webkitGetDatabaseNames)', this, this);
427 } 427 }
428 428
429 429
430 @DomName('IDBFactory.cmp') 430 @DomName('IDBFactory.cmp')
431 @DocsEditable 431 @DocsEditable
432 int cmp(Object first, Object second) native; 432 int cmp(Object first, Object second) native;
433 433
434 @JSName('deleteDatabase') 434 @JSName('deleteDatabase')
435 @DomName('IDBFactory.deleteDatabase') 435 @DomName('IDBFactory.deleteDatabase')
436 @DocsEditable 436 @DocsEditable
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 } 1238 }
1239 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1239 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1240 // for details. All rights reserved. Use of this source code is governed by a 1240 // for details. All rights reserved. Use of this source code is governed by a
1241 // BSD-style license that can be found in the LICENSE file. 1241 // BSD-style license that can be found in the LICENSE file.
1242 1242
1243 1243
1244 @DocsEditable 1244 @DocsEditable
1245 @DomName('IDBAny') 1245 @DomName('IDBAny')
1246 class _IDBAny native "*IDBAny" { 1246 class _IDBAny native "*IDBAny" {
1247 } 1247 }
OLDNEW
« no previous file with comments | « no previous file | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698