| OLD | NEW |
| 1 /** | 1 /** |
| 2 * An API for storing data in the browser that can be queried with SQL. | 2 * An API for storing data in the browser that can be queried with SQL. |
| 3 * | 3 * |
| 4 * **Caution:** this specification is no longer actively maintained by the Web | 4 * **Caution:** this specification is no longer actively maintained by the Web |
| 5 * Applications Working Group and may be removed at any time. | 5 * Applications Working Group and may be removed at any time. |
| 6 * See [the W3C Web SQL Database specification](http://www.w3.org/TR/webdatabase
/) | 6 * See [the W3C Web SQL Database specification](http://www.w3.org/TR/webdatabase
/) |
| 7 * for more information. | 7 * for more information. |
| 8 * | 8 * |
| 9 * The [dart:indexed_db] APIs is a recommended alternatives. | 9 * The [dart:indexed_db] APIs is a recommended alternatives. |
| 10 */ | 10 */ |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 | 63 |
| 64 typedef void SqlTransactionErrorCallback(SqlError error); | 64 typedef void SqlTransactionErrorCallback(SqlError error); |
| 65 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 65 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 66 // for details. All rights reserved. Use of this source code is governed by a | 66 // for details. All rights reserved. Use of this source code is governed by a |
| 67 // BSD-style license that can be found in the LICENSE file. | 67 // BSD-style license that can be found in the LICENSE file. |
| 68 | 68 |
| 69 // WARNING: Do not edit - generated code. | 69 // WARNING: Do not edit - generated code. |
| 70 | 70 |
| 71 | 71 |
| 72 typedef void SqlTransactionSyncCallback(SqlTransactionSync transaction); | 72 typedef void _SQLTransactionSyncCallback(_SQLTransactionSync transaction); |
| 73 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 73 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 74 // for details. All rights reserved. Use of this source code is governed by a | 74 // for details. All rights reserved. Use of this source code is governed by a |
| 75 // BSD-style license that can be found in the LICENSE file. | 75 // BSD-style license that can be found in the LICENSE file. |
| 76 | 76 |
| 77 // WARNING: Do not edit - generated code. | 77 // WARNING: Do not edit - generated code. |
| 78 | 78 |
| 79 | 79 |
| 80 @DocsEditable | 80 @DocsEditable |
| 81 @DomName('Database') | 81 @DomName('Database') |
| 82 @SupportedBrowser(SupportedBrowser.CHROME) | 82 @SupportedBrowser(SupportedBrowser.CHROME) |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 } | 119 } |
| 120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 121 // for details. All rights reserved. Use of this source code is governed by a | 121 // for details. All rights reserved. Use of this source code is governed by a |
| 122 // BSD-style license that can be found in the LICENSE file. | 122 // BSD-style license that can be found in the LICENSE file. |
| 123 | 123 |
| 124 // WARNING: Do not edit - generated code. | 124 // WARNING: Do not edit - generated code. |
| 125 | 125 |
| 126 | 126 |
| 127 @DocsEditable | 127 @DocsEditable |
| 128 @DomName('DatabaseSync') | |
| 129 @SupportedBrowser(SupportedBrowser.CHROME) | |
| 130 @SupportedBrowser(SupportedBrowser.SAFARI) | |
| 131 @Experimental | |
| 132 class SqlDatabaseSync extends NativeFieldWrapperClass1 { | |
| 133 SqlDatabaseSync.internal(); | |
| 134 | |
| 135 @DomName('DatabaseSync.lastErrorMessage') | |
| 136 @DocsEditable | |
| 137 String get lastErrorMessage native "DatabaseSync_lastErrorMessage_Getter"; | |
| 138 | |
| 139 @DomName('DatabaseSync.version') | |
| 140 @DocsEditable | |
| 141 String get version native "DatabaseSync_version_Getter"; | |
| 142 | |
| 143 @DomName('DatabaseSync.changeVersion') | |
| 144 @DocsEditable | |
| 145 void changeVersion(String oldVersion, String newVersion, [SqlTransactionSyncCa
llback callback]) native "DatabaseSync_changeVersion_Callback"; | |
| 146 | |
| 147 @DomName('DatabaseSync.readTransaction') | |
| 148 @DocsEditable | |
| 149 void readTransaction(SqlTransactionSyncCallback callback) native "DatabaseSync
_readTransaction_Callback"; | |
| 150 | |
| 151 @DomName('DatabaseSync.transaction') | |
| 152 @DocsEditable | |
| 153 void transaction(SqlTransactionSyncCallback callback) native "DatabaseSync_tra
nsaction_Callback"; | |
| 154 | |
| 155 } | |
| 156 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 157 // for details. All rights reserved. Use of this source code is governed by a | |
| 158 // BSD-style license that can be found in the LICENSE file. | |
| 159 | |
| 160 // WARNING: Do not edit - generated code. | |
| 161 | |
| 162 | |
| 163 @DocsEditable | |
| 164 @DomName('SQLError') | 128 @DomName('SQLError') |
| 165 class SqlError extends NativeFieldWrapperClass1 { | 129 class SqlError extends NativeFieldWrapperClass1 { |
| 166 SqlError.internal(); | 130 SqlError.internal(); |
| 167 | 131 |
| 168 static const int CONSTRAINT_ERR = 6; | 132 static const int CONSTRAINT_ERR = 6; |
| 169 | 133 |
| 170 static const int DATABASE_ERR = 1; | 134 static const int DATABASE_ERR = 1; |
| 171 | 135 |
| 172 static const int QUOTA_ERR = 4; | 136 static const int QUOTA_ERR = 4; |
| 173 | 137 |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 | 448 |
| 485 } | 449 } |
| 486 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 450 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 487 // for details. All rights reserved. Use of this source code is governed by a | 451 // for details. All rights reserved. Use of this source code is governed by a |
| 488 // BSD-style license that can be found in the LICENSE file. | 452 // BSD-style license that can be found in the LICENSE file. |
| 489 | 453 |
| 490 // WARNING: Do not edit - generated code. | 454 // WARNING: Do not edit - generated code. |
| 491 | 455 |
| 492 | 456 |
| 493 @DocsEditable | 457 @DocsEditable |
| 458 @DomName('DatabaseSync') |
| 459 @SupportedBrowser(SupportedBrowser.CHROME) |
| 460 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 461 @Experimental |
| 462 class _DatabaseSync extends NativeFieldWrapperClass1 { |
| 463 _DatabaseSync.internal(); |
| 464 |
| 465 } |
| 466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 467 // for details. All rights reserved. Use of this source code is governed by a |
| 468 // BSD-style license that can be found in the LICENSE file. |
| 469 |
| 470 // WARNING: Do not edit - generated code. |
| 471 |
| 472 |
| 473 @DocsEditable |
| 494 @DomName('SQLTransactionSync') | 474 @DomName('SQLTransactionSync') |
| 495 @SupportedBrowser(SupportedBrowser.CHROME) | 475 @SupportedBrowser(SupportedBrowser.CHROME) |
| 496 @SupportedBrowser(SupportedBrowser.SAFARI) | 476 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 497 @Experimental | 477 @Experimental |
| 498 class SqlTransactionSync extends NativeFieldWrapperClass1 { | 478 class _SQLTransactionSync extends NativeFieldWrapperClass1 { |
| 499 SqlTransactionSync.internal(); | 479 _SQLTransactionSync.internal(); |
| 500 | |
| 501 @DomName('SQLTransactionSync.executeSql') | |
| 502 @DocsEditable | |
| 503 SqlResultSet executeSql(String sqlStatement, List arguments) native "SQLTransa
ctionSync_executeSql_Callback"; | |
| 504 | 480 |
| 505 } | 481 } |
| OLD | NEW |