| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |