Chromium Code Reviews| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 | 63 |
| 64 | 64 |
| 65 typedef void SqlTransactionErrorCallback(SqlError error); | 65 typedef void SqlTransactionErrorCallback(SqlError error); |
| 66 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 66 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 67 // for details. All rights reserved. Use of this source code is governed by a | 67 // for details. All rights reserved. Use of this source code is governed by a |
| 68 // BSD-style license that can be found in the LICENSE file. | 68 // BSD-style license that can be found in the LICENSE file. |
| 69 | 69 |
| 70 // WARNING: Do not edit - generated code. | 70 // WARNING: Do not edit - generated code. |
| 71 | 71 |
| 72 | 72 |
| 73 typedef void SqlTransactionSyncCallback(SqlTransactionSync transaction); | 73 typedef void _SQLTransactionSyncCallback(_SQLTransactionSync transaction); |
|
Emily Fortuna
2013/04/05 16:21:08
why not delete these types instead of making them
blois
2013/04/05 16:43:09
Typedefs were treated as all other interfaces- ren
Emily Fortuna
2013/04/05 16:47:58
Yeah, this way we reduce the library size (very sl
| |
| 74 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 74 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 75 // for details. All rights reserved. Use of this source code is governed by a | 75 // for details. All rights reserved. Use of this source code is governed by a |
| 76 // BSD-style license that can be found in the LICENSE file. | 76 // BSD-style license that can be found in the LICENSE file. |
| 77 | 77 |
| 78 | 78 |
| 79 @DocsEditable | 79 @DocsEditable |
| 80 @DomName('Database') | 80 @DomName('Database') |
| 81 @SupportedBrowser(SupportedBrowser.CHROME) | 81 @SupportedBrowser(SupportedBrowser.CHROME) |
| 82 @SupportedBrowser(SupportedBrowser.SAFARI) | 82 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 83 @Experimental | 83 @Experimental |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 113 @DomName('Database.transaction') | 113 @DomName('Database.transaction') |
| 114 @DocsEditable | 114 @DocsEditable |
| 115 void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) native; | 115 void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) native; |
| 116 } | 116 } |
| 117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 118 // for details. All rights reserved. Use of this source code is governed by a | 118 // for details. All rights reserved. Use of this source code is governed by a |
| 119 // BSD-style license that can be found in the LICENSE file. | 119 // BSD-style license that can be found in the LICENSE file. |
| 120 | 120 |
| 121 | 121 |
| 122 @DocsEditable | 122 @DocsEditable |
| 123 @DomName('DatabaseSync') | |
| 124 @SupportedBrowser(SupportedBrowser.CHROME) | |
| 125 @SupportedBrowser(SupportedBrowser.SAFARI) | |
| 126 @Experimental | |
| 127 class SqlDatabaseSync native "*DatabaseSync" { | |
| 128 | |
| 129 @DomName('DatabaseSync.lastErrorMessage') | |
| 130 @DocsEditable | |
| 131 final String lastErrorMessage; | |
| 132 | |
| 133 @DomName('DatabaseSync.version') | |
| 134 @DocsEditable | |
| 135 final String version; | |
| 136 | |
| 137 @DomName('DatabaseSync.changeVersion') | |
| 138 @DocsEditable | |
| 139 void changeVersion(String oldVersion, String newVersion, [SqlTransactionSyncCa llback callback]) native; | |
| 140 | |
| 141 @DomName('DatabaseSync.readTransaction') | |
| 142 @DocsEditable | |
| 143 void readTransaction(SqlTransactionSyncCallback callback) native; | |
| 144 | |
| 145 @DomName('DatabaseSync.transaction') | |
| 146 @DocsEditable | |
| 147 void transaction(SqlTransactionSyncCallback callback) native; | |
| 148 } | |
| 149 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 150 // for details. All rights reserved. Use of this source code is governed by a | |
| 151 // BSD-style license that can be found in the LICENSE file. | |
| 152 | |
| 153 | |
| 154 @DocsEditable | |
| 155 @DomName('SQLError') | 123 @DomName('SQLError') |
| 156 class SqlError native "*SQLError" { | 124 class SqlError native "*SQLError" { |
| 157 | 125 |
| 158 static const int CONSTRAINT_ERR = 6; | 126 static const int CONSTRAINT_ERR = 6; |
| 159 | 127 |
| 160 static const int DATABASE_ERR = 1; | 128 static const int DATABASE_ERR = 1; |
| 161 | 129 |
| 162 static const int QUOTA_ERR = 4; | 130 static const int QUOTA_ERR = 4; |
| 163 | 131 |
| 164 static const int SYNTAX_ERR = 5; | 132 static const int SYNTAX_ERR = 5; |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 463 @DomName('SQLTransaction.executeSql') | 431 @DomName('SQLTransaction.executeSql') |
| 464 @DocsEditable | 432 @DocsEditable |
| 465 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal lback, SqlStatementErrorCallback errorCallback]) native; | 433 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal lback, SqlStatementErrorCallback errorCallback]) native; |
| 466 } | 434 } |
| 467 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 468 // for details. All rights reserved. Use of this source code is governed by a | 436 // for details. All rights reserved. Use of this source code is governed by a |
| 469 // BSD-style license that can be found in the LICENSE file. | 437 // BSD-style license that can be found in the LICENSE file. |
| 470 | 438 |
| 471 | 439 |
| 472 @DocsEditable | 440 @DocsEditable |
| 441 @DomName('DatabaseSync') | |
| 442 @SupportedBrowser(SupportedBrowser.CHROME) | |
| 443 @SupportedBrowser(SupportedBrowser.SAFARI) | |
| 444 @Experimental | |
| 445 class _DatabaseSync native "*DatabaseSync" { | |
| 446 } | |
| 447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 448 // for details. All rights reserved. Use of this source code is governed by a | |
| 449 // BSD-style license that can be found in the LICENSE file. | |
| 450 | |
| 451 | |
| 452 @DocsEditable | |
| 473 @DomName('SQLTransactionSync') | 453 @DomName('SQLTransactionSync') |
| 474 @SupportedBrowser(SupportedBrowser.CHROME) | 454 @SupportedBrowser(SupportedBrowser.CHROME) |
| 475 @SupportedBrowser(SupportedBrowser.SAFARI) | 455 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 476 @Experimental | 456 @Experimental |
| 477 class SqlTransactionSync native "*SQLTransactionSync" { | 457 class _SQLTransactionSync native "*SQLTransactionSync" { |
| 478 | |
| 479 @DomName('SQLTransactionSync.executeSql') | |
| 480 @DocsEditable | |
| 481 SqlResultSet executeSql(String sqlStatement, List arguments) native; | |
| 482 } | 458 } |
| OLD | NEW |