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

Side by Side Diff: sdk/lib/web_sql/dartium/web_sql_dartium.dart

Issue 18054021: Fixing up DOM constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
OLDNEW
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 76
77 @DocsEditable 77 @DocsEditable
78 @DomName('Database') 78 @DomName('Database')
79 @SupportedBrowser(SupportedBrowser.CHROME) 79 @SupportedBrowser(SupportedBrowser.CHROME)
80 @SupportedBrowser(SupportedBrowser.SAFARI) 80 @SupportedBrowser(SupportedBrowser.SAFARI)
81 @Experimental 81 @Experimental
82 // http://www.w3.org/TR/webdatabase/#asynchronous-database-api 82 // http://www.w3.org/TR/webdatabase/#asynchronous-database-api
83 @Experimental // deprecated 83 @Experimental // deprecated
84 class SqlDatabase extends NativeFieldWrapperClass1 { 84 class SqlDatabase extends NativeFieldWrapperClass1 {
85 SqlDatabase.internal();
86 85
87 /// Checks if this type is supported on the current platform. 86 /// Checks if this type is supported on the current platform.
88 static bool get supported => true; 87 static bool get supported => true;
89 88
90 @DomName('Database.version') 89 @DomName('Database.version')
91 @DocsEditable 90 @DocsEditable
92 String get version native "Database_version_Getter"; 91 String get version native "Database_version_Getter";
93 92
94 /** 93 /**
95 * Atomically update the database version to [newVersion], asynchronously 94 * Atomically update the database version to [newVersion], asynchronously
(...skipping 25 matching lines...) Expand all
121 // BSD-style license that can be found in the LICENSE file. 120 // BSD-style license that can be found in the LICENSE file.
122 121
123 // WARNING: Do not edit - generated code. 122 // WARNING: Do not edit - generated code.
124 123
125 124
126 @DocsEditable 125 @DocsEditable
127 @DomName('SQLError') 126 @DomName('SQLError')
128 // http://www.w3.org/TR/webdatabase/#sqlerror 127 // http://www.w3.org/TR/webdatabase/#sqlerror
129 @Experimental // deprecated 128 @Experimental // deprecated
130 class SqlError extends NativeFieldWrapperClass1 { 129 class SqlError extends NativeFieldWrapperClass1 {
131 SqlError.internal();
132 130
133 @DomName('SQLError.CONSTRAINT_ERR') 131 @DomName('SQLError.CONSTRAINT_ERR')
134 @DocsEditable 132 @DocsEditable
135 static const int CONSTRAINT_ERR = 6; 133 static const int CONSTRAINT_ERR = 6;
136 134
137 @DomName('SQLError.DATABASE_ERR') 135 @DomName('SQLError.DATABASE_ERR')
138 @DocsEditable 136 @DocsEditable
139 static const int DATABASE_ERR = 1; 137 static const int DATABASE_ERR = 1;
140 138
141 @DomName('SQLError.QUOTA_ERR') 139 @DomName('SQLError.QUOTA_ERR')
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // BSD-style license that can be found in the LICENSE file. 174 // BSD-style license that can be found in the LICENSE file.
177 175
178 // WARNING: Do not edit - generated code. 176 // WARNING: Do not edit - generated code.
179 177
180 178
181 @DocsEditable 179 @DocsEditable
182 @DomName('SQLException') 180 @DomName('SQLException')
183 // http://www.w3.org/TR/webdatabase/#sqlexception 181 // http://www.w3.org/TR/webdatabase/#sqlexception
184 @Experimental // deprecated 182 @Experimental // deprecated
185 class SqlException extends NativeFieldWrapperClass1 { 183 class SqlException extends NativeFieldWrapperClass1 {
186 SqlException.internal();
187 184
188 @DomName('SQLException.CONSTRAINT_ERR') 185 @DomName('SQLException.CONSTRAINT_ERR')
189 @DocsEditable 186 @DocsEditable
190 static const int CONSTRAINT_ERR = 6; 187 static const int CONSTRAINT_ERR = 6;
191 188
192 @DomName('SQLException.DATABASE_ERR') 189 @DomName('SQLException.DATABASE_ERR')
193 @DocsEditable 190 @DocsEditable
194 static const int DATABASE_ERR = 1; 191 static const int DATABASE_ERR = 1;
195 192
196 @DomName('SQLException.QUOTA_ERR') 193 @DomName('SQLException.QUOTA_ERR')
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // BSD-style license that can be found in the LICENSE file. 228 // BSD-style license that can be found in the LICENSE file.
232 229
233 // WARNING: Do not edit - generated code. 230 // WARNING: Do not edit - generated code.
234 231
235 232
236 @DocsEditable 233 @DocsEditable
237 @DomName('SQLResultSet') 234 @DomName('SQLResultSet')
238 // http://www.w3.org/TR/webdatabase/#sqlresultset 235 // http://www.w3.org/TR/webdatabase/#sqlresultset
239 @Experimental // deprecated 236 @Experimental // deprecated
240 class SqlResultSet extends NativeFieldWrapperClass1 { 237 class SqlResultSet extends NativeFieldWrapperClass1 {
241 SqlResultSet.internal();
242 238
243 @DomName('SQLResultSet.insertId') 239 @DomName('SQLResultSet.insertId')
244 @DocsEditable 240 @DocsEditable
245 int get insertId native "SQLResultSet_insertId_Getter"; 241 int get insertId native "SQLResultSet_insertId_Getter";
246 242
247 @DomName('SQLResultSet.rows') 243 @DomName('SQLResultSet.rows')
248 @DocsEditable 244 @DocsEditable
249 SqlResultSetRowList get rows native "SQLResultSet_rows_Getter"; 245 SqlResultSetRowList get rows native "SQLResultSet_rows_Getter";
250 246
251 @DomName('SQLResultSet.rowsAffected') 247 @DomName('SQLResultSet.rowsAffected')
252 @DocsEditable 248 @DocsEditable
253 int get rowsAffected native "SQLResultSet_rowsAffected_Getter"; 249 int get rowsAffected native "SQLResultSet_rowsAffected_Getter";
254 250
255 } 251 }
256 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
257 // for details. All rights reserved. Use of this source code is governed by a 253 // for details. All rights reserved. Use of this source code is governed by a
258 // BSD-style license that can be found in the LICENSE file. 254 // BSD-style license that can be found in the LICENSE file.
259 255
260 // WARNING: Do not edit - generated code. 256 // WARNING: Do not edit - generated code.
261 257
262 258
263 @DocsEditable 259 @DocsEditable
264 @DomName('SQLResultSetRowList') 260 @DomName('SQLResultSetRowList')
265 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist 261 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist
266 @Experimental // deprecated 262 @Experimental // deprecated
267 class SqlResultSetRowList extends NativeFieldWrapperClass1 with ListMixin<Map>, ImmutableListMixin<Map> implements List<Map> { 263 class SqlResultSetRowList extends NativeFieldWrapperClass1 with ListMixin<Map>, ImmutableListMixin<Map> implements List<Map> {
268 SqlResultSetRowList.internal();
269 264
270 @DomName('SQLResultSetRowList.length') 265 @DomName('SQLResultSetRowList.length')
271 @DocsEditable 266 @DocsEditable
272 int get length native "SQLResultSetRowList_length_Getter"; 267 int get length native "SQLResultSetRowList_length_Getter";
273 268
274 Map operator[](int index) { 269 Map operator[](int index) {
275 if (index < 0 || index >= length) 270 if (index < 0 || index >= length)
276 throw new RangeError.range(index, 0, length); 271 throw new RangeError.range(index, 0, length);
277 return _nativeIndexedGetter(index); 272 return _nativeIndexedGetter(index);
278 } 273 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 324
330 325
331 @DocsEditable 326 @DocsEditable
332 @DomName('SQLTransaction') 327 @DomName('SQLTransaction')
333 @SupportedBrowser(SupportedBrowser.CHROME) 328 @SupportedBrowser(SupportedBrowser.CHROME)
334 @SupportedBrowser(SupportedBrowser.SAFARI) 329 @SupportedBrowser(SupportedBrowser.SAFARI)
335 @Experimental 330 @Experimental
336 // http://www.w3.org/TR/webdatabase/#sqltransaction 331 // http://www.w3.org/TR/webdatabase/#sqltransaction
337 @deprecated // deprecated 332 @deprecated // deprecated
338 class SqlTransaction extends NativeFieldWrapperClass1 { 333 class SqlTransaction extends NativeFieldWrapperClass1 {
339 SqlTransaction.internal();
340 334
341 @DomName('SQLTransaction.executeSql') 335 @DomName('SQLTransaction.executeSql')
342 @DocsEditable 336 @DocsEditable
343 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal lback, SqlStatementErrorCallback errorCallback]) native "SQLTransaction_executeS ql_Callback"; 337 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal lback, SqlStatementErrorCallback errorCallback]) native "SQLTransaction_executeS ql_Callback";
344 338
345 } 339 }
346 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 340 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
347 // for details. All rights reserved. Use of this source code is governed by a 341 // for details. All rights reserved. Use of this source code is governed by a
348 // BSD-style license that can be found in the LICENSE file. 342 // BSD-style license that can be found in the LICENSE file.
349 343
350 // WARNING: Do not edit - generated code. 344 // WARNING: Do not edit - generated code.
351 345
352 346
353 @DocsEditable 347 @DocsEditable
354 @DomName('SQLTransactionSync') 348 @DomName('SQLTransactionSync')
355 @SupportedBrowser(SupportedBrowser.CHROME) 349 @SupportedBrowser(SupportedBrowser.CHROME)
356 @SupportedBrowser(SupportedBrowser.SAFARI) 350 @SupportedBrowser(SupportedBrowser.SAFARI)
357 @Experimental 351 @Experimental
358 // http://www.w3.org/TR/webdatabase/#sqltransactionsync 352 // http://www.w3.org/TR/webdatabase/#sqltransactionsync
359 @Experimental // deprecated 353 @Experimental // deprecated
360 abstract class _SQLTransactionSync extends NativeFieldWrapperClass1 { 354 abstract class _SQLTransactionSync extends NativeFieldWrapperClass1 {
361 _SQLTransactionSync.internal();
362 355
363 } 356 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698