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

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

Issue 17063007: Making all DOM types abstract and removing superfluous Dartium constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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(); 85 // To suppress missing implicit constructor warnings.
86 factory SqlDatabase._() { throw new UnsupportedError("Not supported"); }
86 87
87 /// Checks if this type is supported on the current platform. 88 /// Checks if this type is supported on the current platform.
88 static bool get supported => true; 89 static bool get supported => true;
89 90
90 @DomName('Database.version') 91 @DomName('Database.version')
91 @DocsEditable 92 @DocsEditable
92 String get version native "Database_version_Getter"; 93 String get version native "Database_version_Getter";
93 94
94 /** 95 /**
95 * Atomically update the database version to [newVersion], asynchronously 96 * 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. 122 // BSD-style license that can be found in the LICENSE file.
122 123
123 // WARNING: Do not edit - generated code. 124 // WARNING: Do not edit - generated code.
124 125
125 126
126 @DocsEditable 127 @DocsEditable
127 @DomName('SQLError') 128 @DomName('SQLError')
128 // http://www.w3.org/TR/webdatabase/#sqlerror 129 // http://www.w3.org/TR/webdatabase/#sqlerror
129 @Experimental // deprecated 130 @Experimental // deprecated
130 class SqlError extends NativeFieldWrapperClass1 { 131 class SqlError extends NativeFieldWrapperClass1 {
131 SqlError.internal(); 132 // To suppress missing implicit constructor warnings.
133 factory SqlError._() { throw new UnsupportedError("Not supported"); }
132 134
133 @DomName('SQLError.CONSTRAINT_ERR') 135 @DomName('SQLError.CONSTRAINT_ERR')
134 @DocsEditable 136 @DocsEditable
135 static const int CONSTRAINT_ERR = 6; 137 static const int CONSTRAINT_ERR = 6;
136 138
137 @DomName('SQLError.DATABASE_ERR') 139 @DomName('SQLError.DATABASE_ERR')
138 @DocsEditable 140 @DocsEditable
139 static const int DATABASE_ERR = 1; 141 static const int DATABASE_ERR = 1;
140 142
141 @DomName('SQLError.QUOTA_ERR') 143 @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. 178 // BSD-style license that can be found in the LICENSE file.
177 179
178 // WARNING: Do not edit - generated code. 180 // WARNING: Do not edit - generated code.
179 181
180 182
181 @DocsEditable 183 @DocsEditable
182 @DomName('SQLException') 184 @DomName('SQLException')
183 // http://www.w3.org/TR/webdatabase/#sqlexception 185 // http://www.w3.org/TR/webdatabase/#sqlexception
184 @Experimental // deprecated 186 @Experimental // deprecated
185 class SqlException extends NativeFieldWrapperClass1 { 187 class SqlException extends NativeFieldWrapperClass1 {
186 SqlException.internal(); 188 // To suppress missing implicit constructor warnings.
189 factory SqlException._() { throw new UnsupportedError("Not supported"); }
187 190
188 @DomName('SQLException.CONSTRAINT_ERR') 191 @DomName('SQLException.CONSTRAINT_ERR')
189 @DocsEditable 192 @DocsEditable
190 static const int CONSTRAINT_ERR = 6; 193 static const int CONSTRAINT_ERR = 6;
191 194
192 @DomName('SQLException.DATABASE_ERR') 195 @DomName('SQLException.DATABASE_ERR')
193 @DocsEditable 196 @DocsEditable
194 static const int DATABASE_ERR = 1; 197 static const int DATABASE_ERR = 1;
195 198
196 @DomName('SQLException.QUOTA_ERR') 199 @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. 234 // BSD-style license that can be found in the LICENSE file.
232 235
233 // WARNING: Do not edit - generated code. 236 // WARNING: Do not edit - generated code.
234 237
235 238
236 @DocsEditable 239 @DocsEditable
237 @DomName('SQLResultSet') 240 @DomName('SQLResultSet')
238 // http://www.w3.org/TR/webdatabase/#sqlresultset 241 // http://www.w3.org/TR/webdatabase/#sqlresultset
239 @Experimental // deprecated 242 @Experimental // deprecated
240 class SqlResultSet extends NativeFieldWrapperClass1 { 243 class SqlResultSet extends NativeFieldWrapperClass1 {
241 SqlResultSet.internal(); 244 // To suppress missing implicit constructor warnings.
245 factory SqlResultSet._() { throw new UnsupportedError("Not supported"); }
242 246
243 @DomName('SQLResultSet.insertId') 247 @DomName('SQLResultSet.insertId')
244 @DocsEditable 248 @DocsEditable
245 int get insertId native "SQLResultSet_insertId_Getter"; 249 int get insertId native "SQLResultSet_insertId_Getter";
246 250
247 @DomName('SQLResultSet.rows') 251 @DomName('SQLResultSet.rows')
248 @DocsEditable 252 @DocsEditable
249 SqlResultSetRowList get rows native "SQLResultSet_rows_Getter"; 253 SqlResultSetRowList get rows native "SQLResultSet_rows_Getter";
250 254
251 @DomName('SQLResultSet.rowsAffected') 255 @DomName('SQLResultSet.rowsAffected')
252 @DocsEditable 256 @DocsEditable
253 int get rowsAffected native "SQLResultSet_rowsAffected_Getter"; 257 int get rowsAffected native "SQLResultSet_rowsAffected_Getter";
254 258
255 } 259 }
256 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 260 // 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 261 // 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. 262 // BSD-style license that can be found in the LICENSE file.
259 263
260 // WARNING: Do not edit - generated code. 264 // WARNING: Do not edit - generated code.
261 265
262 266
263 @DocsEditable 267 @DocsEditable
264 @DomName('SQLResultSetRowList') 268 @DomName('SQLResultSetRowList')
265 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist 269 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist
266 @Experimental // deprecated 270 @Experimental // deprecated
267 class SqlResultSetRowList extends NativeFieldWrapperClass1 with ListMixin<Map>, ImmutableListMixin<Map> implements List<Map> { 271 class SqlResultSetRowList extends NativeFieldWrapperClass1 with ListMixin<Map>, ImmutableListMixin<Map> implements List<Map> {
268 SqlResultSetRowList.internal(); 272 // To suppress missing implicit constructor warnings.
273 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); }
269 274
270 @DomName('SQLResultSetRowList.length') 275 @DomName('SQLResultSetRowList.length')
271 @DocsEditable 276 @DocsEditable
272 int get length native "SQLResultSetRowList_length_Getter"; 277 int get length native "SQLResultSetRowList_length_Getter";
273 278
274 Map operator[](int index) { 279 Map operator[](int index) {
275 if (index < 0 || index >= length) 280 if (index < 0 || index >= length)
276 throw new RangeError.range(index, 0, length); 281 throw new RangeError.range(index, 0, length);
277 return _nativeIndexedGetter(index); 282 return _nativeIndexedGetter(index);
278 } 283 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 334
330 335
331 @DocsEditable 336 @DocsEditable
332 @DomName('SQLTransaction') 337 @DomName('SQLTransaction')
333 @SupportedBrowser(SupportedBrowser.CHROME) 338 @SupportedBrowser(SupportedBrowser.CHROME)
334 @SupportedBrowser(SupportedBrowser.SAFARI) 339 @SupportedBrowser(SupportedBrowser.SAFARI)
335 @Experimental 340 @Experimental
336 // http://www.w3.org/TR/webdatabase/#sqltransaction 341 // http://www.w3.org/TR/webdatabase/#sqltransaction
337 @deprecated // deprecated 342 @deprecated // deprecated
338 class SqlTransaction extends NativeFieldWrapperClass1 { 343 class SqlTransaction extends NativeFieldWrapperClass1 {
339 SqlTransaction.internal(); 344 // To suppress missing implicit constructor warnings.
345 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); }
340 346
341 @DomName('SQLTransaction.executeSql') 347 @DomName('SQLTransaction.executeSql')
342 @DocsEditable 348 @DocsEditable
343 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal lback, SqlStatementErrorCallback errorCallback]) native "SQLTransaction_executeS ql_Callback"; 349 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal lback, SqlStatementErrorCallback errorCallback]) native "SQLTransaction_executeS ql_Callback";
344 350
345 } 351 }
346 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 352 // 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 353 // 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. 354 // BSD-style license that can be found in the LICENSE file.
349 355
350 // WARNING: Do not edit - generated code. 356 // WARNING: Do not edit - generated code.
351 357
352 358
353 @DocsEditable 359 @DocsEditable
354 @DomName('SQLTransactionSync') 360 @DomName('SQLTransactionSync')
355 @SupportedBrowser(SupportedBrowser.CHROME) 361 @SupportedBrowser(SupportedBrowser.CHROME)
356 @SupportedBrowser(SupportedBrowser.SAFARI) 362 @SupportedBrowser(SupportedBrowser.SAFARI)
357 @Experimental 363 @Experimental
358 // http://www.w3.org/TR/webdatabase/#sqltransactionsync 364 // http://www.w3.org/TR/webdatabase/#sqltransactionsync
359 @Experimental // deprecated 365 @Experimental // deprecated
360 abstract class _SQLTransactionSync extends NativeFieldWrapperClass1 { 366 abstract class _SQLTransactionSync extends NativeFieldWrapperClass1 {
361 _SQLTransactionSync.internal(); 367 // To suppress missing implicit constructor warnings.
368 factory _SQLTransactionSync._() { throw new UnsupportedError("Not supported"); }
362 369
363 } 370 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698