| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _DatabaseWrappingImplementation extends DOMWrapperBase implements Database
{ | 7 class _DatabaseWrappingImplementation extends DOMWrapperBase implements Database
{ |
| 8 _DatabaseWrappingImplementation() : super() {} | 8 _DatabaseWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__DatabaseWrappingImplementation() native { | 10 static create__DatabaseWrappingImplementation() native { |
| 11 return new _DatabaseWrappingImplementation(); | 11 return new _DatabaseWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 String get version() { return _get__Database_version(this); } | 14 String get version() { return _get_version(this); } |
| 15 static String _get__Database_version(var _this) native; | 15 static String _get_version(var _this) native; |
| 16 | 16 |
| 17 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba
ck callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallba
ck successCallback = null]) { | 17 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba
ck callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallba
ck successCallback = null]) { |
| 18 if (callback === null) { | 18 if (callback === null) { |
| 19 if (errorCallback === null) { | 19 if (errorCallback === null) { |
| 20 if (successCallback === null) { | 20 if (successCallback === null) { |
| 21 _changeVersion(this, oldVersion, newVersion); | 21 _changeVersion(this, oldVersion, newVersion); |
| 22 return; | 22 return; |
| 23 } | 23 } |
| 24 } | 24 } |
| 25 } else { | 25 } else { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 } | 82 } |
| 83 } | 83 } |
| 84 throw "Incorrect number or type of arguments"; | 84 throw "Incorrect number or type of arguments"; |
| 85 } | 85 } |
| 86 static void _transaction(receiver, callback) native; | 86 static void _transaction(receiver, callback) native; |
| 87 static void _transaction_2(receiver, callback, errorCallback) native; | 87 static void _transaction_2(receiver, callback, errorCallback) native; |
| 88 static void _transaction_3(receiver, callback, errorCallback, successCallback)
native; | 88 static void _transaction_3(receiver, callback, errorCallback, successCallback)
native; |
| 89 | 89 |
| 90 String get typeName() { return "Database"; } | 90 String get typeName() { return "Database"; } |
| 91 } | 91 } |
| OLD | NEW |